| com.sun.xml.internal.xsom.XSSimpleType
All known Subclasses: com.sun.xml.internal.xsom.impl.SimpleTypeImpl,
XSSimpleType | public interface XSSimpleType extends XSType,XSContentType(Code) | | Simple type.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
Method Summary | |
T | apply(XSSimpleTypeFunction<T> function) | XSListSimpleType | asList() | XSRestrictionSimpleType | asRestriction() | XSUnionSimpleType | asUnion() | XSFacet | getFacet(String name) 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.
If this datatype has a facet of the given name,return that object. | public XSSimpleType | getRedefinedBy() If this
XSSimpleType is redefined by another simple type,
return that component. | XSSimpleType | getSimpleBaseType() Gets the base type as XSSimpleType.
Equivalent to
(XSSimpleType)getBaseType()
Since this is a simple type, we know that the base type
is also a simple type.
The only exception is xs:anySimpleType, which has xs:anyType
as the base type.
null if this is xs:anySimpleType. | XSVariety | getVariety() Gets the variety of this simple type. | boolean | isFinal(XSVariety v) Returns true if this type definition is marked as 'final'
with respect to the given
XSVariety . | boolean | isList() Returns true if this instanceof XSListSimpleType . | boolean | isRestriction() Returns true if this instanceof XSRestrictionSimpleType . | boolean | isUnion() Returns true if this instanceof XSUnionSimpleType . | void | visit(XSSimpleTypeVisitor visitor) |
getFacet | XSFacet getFacet(String name)(Code) | | 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.
If this datatype has a facet of the given name,return that object. If the facet is not specifiedanywhere in its derivation chain, null will be returned. |
getRedefinedBy | public XSSimpleType getRedefinedBy()(Code) | | If this
XSSimpleType is redefined by another simple type,
return that component.
nullif this component has not been redefined. |
getSimpleBaseType | XSSimpleType getSimpleBaseType()(Code) | | Gets the base type as XSSimpleType.
Equivalent to
(XSSimpleType)getBaseType()
Since this is a simple type, we know that the base type
is also a simple type.
The only exception is xs:anySimpleType, which has xs:anyType
as the base type.
null if this is xs:anySimpleType. Otherwise non-null. |
getVariety | XSVariety getVariety()(Code) | | Gets the variety of this simple type.
|
isFinal | boolean isFinal(XSVariety v)(Code) | | Returns true if this type definition is marked as 'final'
with respect to the given
XSVariety .
true if the type is marked final. |
isList | boolean isList()(Code) | | Returns true if this instanceof XSListSimpleType .
|
isRestriction | boolean isRestriction()(Code) | | Returns true if this instanceof XSRestrictionSimpleType .
|
isUnion | boolean isUnion()(Code) | | Returns true if this instanceof XSUnionSimpleType .
|
|
|