-
- All Superinterfaces:
XSComponent
,XSContentType
,XSDeclaration
,XSSimpleType
,XSType
- All Known Implementing Classes:
RestrictionSimpleTypeImpl
,SchemaSetImpl.AnySimpleType
public interface XSRestrictionSimpleType extends XSSimpleType
Restriction simple type.- Author:
- Kohsuke Kawaguchi ([email protected])
-
-
Field Summary
-
Fields inherited from interface com.sun.xml.xsom.XSType
EXTENSION, RESTRICTION, SUBSTITUTION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XSFacet
getDeclaredFacet(String name)
Gets the declared facet object of the given name.Collection<? extends XSFacet>
getDeclaredFacets()
Gets all the facets that are declared on this restriction.List<XSFacet>
getDeclaredFacets(String name)
Gets the declared facets of the given name.Iterator<XSFacet>
iterateDeclaredFacets()
Iterates facets that are specified in this step of derivation.-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Methods inherited from interface com.sun.xml.xsom.XSContentType
apply, asEmpty, asParticle, asSimpleType, visit
-
Methods inherited from interface com.sun.xml.xsom.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
Methods inherited from interface com.sun.xml.xsom.XSSimpleType
apply, asList, asRestriction, asUnion, getBaseListType, getBaseUnionType, getFacet, getFacets, getPrimitiveType, getRedefinedBy, getSimpleBaseType, getVariety, isFinal, isList, isPrimitive, isRestriction, isUnion, visit
-
Methods inherited from interface com.sun.xml.xsom.XSType
asComplexType, asSimpleType, getBaseType, getDerivationMethod, getRedefinedCount, isComplexType, isDerivedFrom, isSimpleType, listSubstitutables
-
-
-
-
Method Detail
-
iterateDeclaredFacets
Iterator<XSFacet> iterateDeclaredFacets()
Iterates facets that are specified in this step of derivation.
-
getDeclaredFacets
Collection<? extends XSFacet> getDeclaredFacets()
Gets all the facets that are declared on this restriction.- Returns:
- Can be empty but always non-null.
-
getDeclaredFacet
XSFacet getDeclaredFacet(String name)
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.
- Returns:
- Null if the facet is not specified in the last step of derivation.
-
-