| Access | Constructor and Description |
|---|---|
| public | RestrictionSimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public <T> T | |
| public XSRestrictionSimpleType | |
| public XSFacet | getDeclaredFacet(String name)
Implements com. Gets the declared facet object of the given name. |
| public Collection | getDeclaredFacets()
Implements com. Gets all the facets that are declared on this restriction. |
| public List | getDeclaredFacets(String name)
Implements com. Gets the declared facets of the given name. |
| public XSFacet | getFacet(String name)
Implements com. Gets the effective facet object of the given name. |
| public List | getFacets(String name)
Implements com. For multi-valued facets (enumeration and pattern), obtain all values. |
| public XSSimpleType | getPrimitiveType()
Implements com. Gets the ancestor primitive if
this type is |
| public XSVariety | getVariety()
Implements com. Gets the variety of this simple type. |
| public boolean | isPrimitive()
Overrides com. Implements com. Returns true if this is a primitive built-in simple type (that directly derives from xs:anySimpleType, by definition.) |
| public boolean | isRestriction()
Overrides com. Implements com. Returns true if |
| public Iterator | iterateDeclaredFacets()
Implements com. Iterates facets that are specified in this step of derivation. |
| public void |
| facets | back to summary |
|---|---|
| private final List<XSFacet> facets | |
| RestrictionSimpleTypeImpl | back to summary |
|---|---|
| public RestrictionSimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref. | |
| addFacet | back to summary |
|---|---|
| public void addFacet(XSFacet facet) | |
| apply | back to summary |
|---|---|
| public <T> T apply(XSSimpleTypeFunction<T> function) Implements com. | |
| asRestriction | back to summary |
|---|---|
| public XSRestrictionSimpleType asRestriction() Overrides com. Implements com. | |
| getDeclaredFacet | back to summary |
|---|---|
| public XSFacet getDeclaredFacet(String name) Implements com. Doc from com. Gets the declared facet object of the given name. This method returns a facet object that is added in this type and does not recursively check the ancestors. For those facets that can have multiple values (pattern facets and enumeration facets), this method will return only the first one. | |
| getDeclaredFacets | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Gets all the facets that are declared on this restriction. | |
| getDeclaredFacets | back to summary |
|---|---|
| public List Implements com. Doc from com. Gets the declared facets of the given name. This method is for those facets (such as 'pattern') that can be specified multiple times on a simple type. | |
| getFacet | back to summary |
|---|---|
| public XSFacet getFacet(String name) Implements com. Doc from com. Gets the effective facet object of the given name. For example, if a simple type "foo" is derived from xs:string by restriction with the "maxLength" facet and another simple type "bar" is derived from "foo" by restriction with another "maxLength" facet, this method will return the latter one, because that is the most restrictive, effective facet. For those facets that can have multiple values (pattern facets and enumeration facets), this method will return only the first one. Todo allow clients to access all of them by some means. | |
| getFacets | back to summary |
|---|---|
| public List Implements com. Doc from com. For multi-valued facets (enumeration and pattern), obtain all values. | |
| getPrimitiveType | back to summary |
|---|---|
| public XSSimpleType getPrimitiveType() Implements com. Doc from com. Gets the ancestor primitive if
this type is | |
| getVariety | back to summary |
|---|---|
| public XSVariety getVariety() Implements com. Doc from com. Gets the variety of this simple type. | |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Overrides com. Implements com. Doc from com. Returns true if this is a primitive built-in simple type (that directly derives from xs:anySimpleType, by definition.) | |
| isRestriction | back to summary |
|---|---|
| public boolean isRestriction() Overrides com. Implements com. Doc from com. Returns true if | |
| iterateDeclaredFacets | back to summary |
|---|---|
| public Iterator Implements com. Doc from com. Iterates facets that are specified in this step of derivation. | |
| visit | back to summary |
|---|---|
| public void visit(XSSimpleTypeVisitor visitor) Implements com. | |