Class Restriction
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.schema.model.Restriction
-
- All Implemented Interfaces:
SimpleDerivation
public class Restriction extends java.lang.Object implements SimpleDerivation
-
-
Constructor Summary
Constructors Constructor Description Restriction()Restriction(java.lang.String baseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPattern(java.lang.String regexp)AllgetAll()AnyAttributegetAnyAttribute()java.util.ListgetAttributes()java.lang.StringgetBaseType()ChoicegetChoice()java.util.ArrayListgetEnumerationFacets()java.lang.StringgetFractionDigits()java.lang.StringgetLength()java.lang.StringgetMaxExclusive()java.lang.StringgetMaxInclusive()java.lang.StringgetMaxLength()java.lang.StringgetMinExclusive()java.lang.StringgetMinInclusive()java.lang.StringgetMinLength()RestrictablegetOwner()java.lang.StringgetOwnerName()java.util.List<java.lang.String>getPatterns()SequencegetSequence()SimpleTypegetSimpleType()java.lang.StringgetTotalDigits()TypeDefParticlegetTypeDefParticle()voidmergeWith(Restriction restriction)Overwrites attributes of this restriction with attributes of the argument, if they are not null.voidsetAll(All all)voidsetAnyAttribute(AnyAttribute any)voidsetAttributes(java.util.List attributes)voidsetBaseType(java.lang.String baseType)voidsetChoice(Choice choice)voidsetEnumerationFacets(java.util.ArrayList values)voidsetFractionDigits(int fractionDigits)voidsetFractionDigits(java.lang.String fractionDigits)voidsetLength(int length)voidsetLength(java.lang.String length)voidsetMaxExclusive(java.lang.String maxExclusive)voidsetMaxInclusive(java.lang.String maxInclusive)voidsetMaxLength(int maxLength)voidsetMaxLength(java.lang.String maxLength)voidsetMinExclusive(java.lang.String minExclusive)voidsetMinInclusive(java.lang.String minInclusive)voidsetMinLength(int minLength)voidsetMinLength(java.lang.String minLength)voidsetOwner(Restrictable owner)voidsetPatterns(java.util.List<java.lang.String> patterns)voidsetSequence(Sequence sequence)voidsetSimpleType(SimpleType simpleType)voidsetTotalDigits(int totalDigits)voidsetTotalDigits(java.lang.String totalDigits)voidsetTypeDefParticle(TypeDefParticle typeDefParticle)
-
-
-
Method Detail
-
setMinInclusive
public void setMinInclusive(java.lang.String minInclusive)
-
getMinInclusive
public java.lang.String getMinInclusive()
-
setMaxInclusive
public void setMaxInclusive(java.lang.String maxInclusive)
-
getMaxInclusive
public java.lang.String getMaxInclusive()
-
setMinExclusive
public void setMinExclusive(java.lang.String minExclusive)
-
getMinExclusive
public java.lang.String getMinExclusive()
-
setMaxExclusive
public void setMaxExclusive(java.lang.String maxExclusive)
-
getMaxExclusive
public java.lang.String getMaxExclusive()
-
setBaseType
public void setBaseType(java.lang.String baseType)
-
getBaseType
public java.lang.String getBaseType()
-
setTypeDefParticle
public void setTypeDefParticle(TypeDefParticle typeDefParticle)
-
getTypeDefParticle
public TypeDefParticle getTypeDefParticle()
-
setChoice
public void setChoice(Choice choice)
-
getChoice
public Choice getChoice()
-
setSequence
public void setSequence(Sequence sequence)
-
getSequence
public Sequence getSequence()
-
setAll
public void setAll(All all)
-
getAll
public All getAll()
-
setSimpleType
public void setSimpleType(SimpleType simpleType)
-
getSimpleType
public SimpleType getSimpleType()
-
setAttributes
public void setAttributes(java.util.List attributes)
-
getAttributes
public java.util.List getAttributes()
-
getEnumerationFacets
public java.util.ArrayList getEnumerationFacets()
-
setEnumerationFacets
public void setEnumerationFacets(java.util.ArrayList values)
-
setOwner
public void setOwner(Restrictable owner)
-
getOwner
public Restrictable getOwner()
-
getOwnerName
public java.lang.String getOwnerName()
-
getAnyAttribute
public AnyAttribute getAnyAttribute()
-
setAnyAttribute
public void setAnyAttribute(AnyAttribute any)
-
getTotalDigits
public java.lang.String getTotalDigits()
-
setTotalDigits
public void setTotalDigits(java.lang.String totalDigits)
-
setTotalDigits
public void setTotalDigits(int totalDigits)
-
getFractionDigits
public java.lang.String getFractionDigits()
-
setFractionDigits
public void setFractionDigits(java.lang.String fractionDigits)
-
setFractionDigits
public void setFractionDigits(int fractionDigits)
-
getPatterns
public java.util.List<java.lang.String> getPatterns()
-
setPatterns
public void setPatterns(java.util.List<java.lang.String> patterns)
-
addPattern
public void addPattern(java.lang.String regexp)
-
getLength
public java.lang.String getLength()
-
setLength
public void setLength(java.lang.String length)
-
setLength
public void setLength(int length)
-
getMinLength
public java.lang.String getMinLength()
-
setMinLength
public void setMinLength(java.lang.String minLength)
-
setMinLength
public void setMinLength(int minLength)
-
getMaxLength
public java.lang.String getMaxLength()
-
setMaxLength
public void setMaxLength(java.lang.String maxLength)
-
setMaxLength
public void setMaxLength(int maxLength)
-
mergeWith
public void mergeWith(Restriction restriction)
Overwrites attributes of this restriction with attributes of the argument, if they are not null.- Parameters:
restriction-
-
-