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 void
addPattern(java.lang.String regexp)
All
getAll()
AnyAttribute
getAnyAttribute()
java.util.List
getAttributes()
java.lang.String
getBaseType()
Choice
getChoice()
java.util.ArrayList
getEnumerationFacets()
java.lang.String
getFractionDigits()
java.lang.String
getLength()
java.lang.String
getMaxExclusive()
java.lang.String
getMaxInclusive()
java.lang.String
getMaxLength()
java.lang.String
getMinExclusive()
java.lang.String
getMinInclusive()
java.lang.String
getMinLength()
Restrictable
getOwner()
java.lang.String
getOwnerName()
java.util.List<java.lang.String>
getPatterns()
Sequence
getSequence()
SimpleType
getSimpleType()
java.lang.String
getTotalDigits()
TypeDefParticle
getTypeDefParticle()
void
mergeWith(Restriction restriction)
Overwrites attributes of this restriction with attributes of the argument, if they are not null.void
setAll(All all)
void
setAnyAttribute(AnyAttribute any)
void
setAttributes(java.util.List attributes)
void
setBaseType(java.lang.String baseType)
void
setChoice(Choice choice)
void
setEnumerationFacets(java.util.ArrayList values)
void
setFractionDigits(int fractionDigits)
void
setFractionDigits(java.lang.String fractionDigits)
void
setLength(int length)
void
setLength(java.lang.String length)
void
setMaxExclusive(java.lang.String maxExclusive)
void
setMaxInclusive(java.lang.String maxInclusive)
void
setMaxLength(int maxLength)
void
setMaxLength(java.lang.String maxLength)
void
setMinExclusive(java.lang.String minExclusive)
void
setMinInclusive(java.lang.String minInclusive)
void
setMinLength(int minLength)
void
setMinLength(java.lang.String minLength)
void
setOwner(Restrictable owner)
void
setPatterns(java.util.List<java.lang.String> patterns)
void
setSequence(Sequence sequence)
void
setSimpleType(SimpleType simpleType)
void
setTotalDigits(int totalDigits)
void
setTotalDigits(java.lang.String totalDigits)
void
setTypeDefParticle(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
-
-
-