public final class SchemaTypeImpl extends Object implements SchemaType, TypeStoreUserFactory
SchemaType.RefATOMIC, BTC_ANY_SIMPLE, BTC_ANY_TYPE, BTC_ANY_URI, BTC_BASE_64_BINARY, BTC_BOOLEAN, BTC_BYTE, BTC_DATE, BTC_DATE_TIME, BTC_DECIMAL, BTC_DOUBLE, BTC_DURATION, BTC_ENTITIES, BTC_ENTITY, BTC_FIRST_PRIMITIVE, BTC_FLOAT, BTC_G_DAY, BTC_G_MONTH, BTC_G_MONTH_DAY, BTC_G_YEAR, BTC_G_YEAR_MONTH, BTC_HEX_BINARY, BTC_ID, BTC_IDREF, BTC_IDREFS, BTC_INT, BTC_INTEGER, BTC_LANGUAGE, BTC_LAST_BUILTIN, BTC_LAST_PRIMITIVE, BTC_LONG, BTC_NAME, BTC_NCNAME, BTC_NEGATIVE_INTEGER, BTC_NMTOKEN, BTC_NMTOKENS, BTC_NON_NEGATIVE_INTEGER, BTC_NON_POSITIVE_INTEGER, BTC_NORMALIZED_STRING, BTC_NOT_BUILTIN, BTC_NOTATION, BTC_POSITIVE_INTEGER, BTC_QNAME, BTC_SHORT, BTC_STRING, BTC_TIME, BTC_TOKEN, BTC_UNSIGNED_BYTE, BTC_UNSIGNED_INT, BTC_UNSIGNED_LONG, BTC_UNSIGNED_SHORT, DT_EXTENSION, DT_NOT_DERIVED, DT_RESTRICTION, ELEMENT_CONTENT, EMPTY_CONTENT, FACET_ENUMERATION, FACET_FRACTION_DIGITS, FACET_LENGTH, FACET_MAX_EXCLUSIVE, FACET_MAX_INCLUSIVE, FACET_MAX_LENGTH, FACET_MIN_EXCLUSIVE, FACET_MIN_INCLUSIVE, FACET_MIN_LENGTH, FACET_PATTERN, FACET_TOTAL_DIGITS, FACET_WHITE_SPACE, LAST_BASIC_FACET, LAST_FACET, LAST_PROPERTY, LIST, MIXED_CONTENT, NOT_COMPLEX_TYPE, NOT_DECIMAL, NOT_SIMPLE, PARTIAL_ORDER, PROPERTY_BOUNDED, PROPERTY_CARDINALITY, PROPERTY_NUMERIC, PROPERTY_ORDERED, SIMPLE_CONTENT, SIZE_BIG_DECIMAL, SIZE_BIG_INTEGER, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_SHORT, TOTAL_ORDER, UNION, UNORDERED, WS_COLLAPSE, WS_PRESERVE, WS_REPLACE, WS_UNSPECIFIEDANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE| Modifier and Type | Method and Description |
|---|---|
void |
addSubstitutionGroupMember(QName member) |
boolean |
blockExtension()
True if extensions of this type cannot be substituted for this type
|
boolean |
blockRestriction()
True if restrictions of this type cannot be substituted for this type
|
void |
copyEnumerationValues(SchemaTypeImpl baseImpl) |
XmlObject |
createAttributeType(QName attrName,
SchemaTypeLoader wildcardTypeLoader) |
XmlObject |
createElementType(QName eltName,
QName xsiType,
SchemaTypeLoader wildcardTypeLoader) |
TypeStoreUser |
createTypeStoreUser()
TypeStoreUserFactory implementation
|
XmlObject |
createUnwrappedNode() |
SchemaStringEnumEntry |
enumEntryForString(String s)
Returns the string enum entry corresponding to the given enumerated
string, or null if there is no match or this type is not
a string enumeration.
|
StringEnumAbstractBase |
enumForInt(int i)
Returns the string enum value corresponding to the given enumerated
string, or null if there is no match or this type is not
a string enumeration.
|
StringEnumAbstractBase |
enumForString(String s)
Returns the string enum value corresponding to the given enumerated
string, or null if there is no match or this type is not
a string enumeration.
|
boolean |
finalExtension()
True if other types cannot extend this type (only for complex types)
|
boolean |
finalList()
True if list derivation of this type is prohibited (only for simple types)
|
boolean |
finalRestriction()
True if other types cannot restrict this type
|
boolean |
finalUnion()
True if union derivation of this type is prohibited (only for simple types)
|
void |
finishJavaizing() |
void |
finishLoading() |
void |
finishResolving() |
void |
finishResolvingSGs() |
SchemaAnnotation |
getAnnotation()
Returns the Schema annotation object or null if none present
|
SchemaType[] |
getAnonymousTypes()
The array of inner (anonymous) types defined
within this type.
|
int |
getAnonymousUnionMemberOrdinal()
For anonymous types defined inside a union only: gets
the integer indicating the declaration order of this
type within the outer union type, or zero if this is
not applicable.
|
String |
getAttFormDefault() |
SchemaAttributeModel |
getAttributeModel()
Returns the attribute model for this complex type (with simple or complex content).
|
SchemaProperty[] |
getAttributeProperties()
Returns all the SchemaProperties corresponding to attributes.
|
SchemaProperty |
getAttributeProperty(QName attrName)
Returns a SchemaProperty corresponding to an attribute within this
complex type by looking up the attribute name.
|
SchemaType |
getAttributeType(QName attrName,
SchemaTypeLoader wildcardTypeLoader)
Returns the type of an attribute based on the attribute name and
the type system within which (wildcard) names are resolved.
|
QName |
getAttributeTypeAttributeName()
Returns the attribute qname if this is a attribute type,
or null otherwise.
|
int |
getBaseDepth() |
SchemaType |
getBaseEnumType()
If this is a string enumeration, returns the most basic base schema
type that this enuemration is based on.
|
SchemaType |
getBaseType()
Returns base restriction or extension type.
|
XmlAnySimpleType[] |
getBasicFacets() |
int |
getBuiltinTypeCode()
Returns an integer for builtin types that can be used
for quick comparison.
|
String |
getChameleonNamespace() |
SchemaType |
getCommonBaseType(SchemaType type)
Returns common base type with the given type.
|
SchemaComponent.Ref |
getComponentRef()
Used for on-demand loading of schema components.
|
int |
getComponentType()
Returns the type code for the schema object, either
SchemaComponent.TYPE,
SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP,
SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION. |
SchemaField |
getContainerField()
The parent schema element.
|
SchemaType |
getContentBasedOnType()
For complex types with simple content returns the base type for this
type's content.
|
SchemaParticle |
getContentModel()
Returns the complex content model for this complex type (with complex content).
|
int |
getContentType()
Returns
SchemaType.EMPTY_CONTENT, SchemaType.SIMPLE_CONTENT, SchemaType.ELEMENT_CONTENT, or
SchemaType.MIXED_CONTENT for complex types. |
int |
getDecimalSize()
For atomic numeric restrictions of decimal only: the
numeric size category.
|
int |
getDerivationType()
Returns an integer for the derivation type, either
SchemaType.DT_EXTENSION, SchemaType.DT_RESTRICTION, SchemaType.DT_NOT_DERIVED. |
SchemaProperty[] |
getDerivedProperties()
Returns the SchemaProperties defined by this complex type,
exclusive of the base type (if any).
|
String |
getDocumentation()
returns user specified documentation
|
QName |
getDocumentElementName()
Returns the document element name if this is a document type,
or null otherwise.
|
SchemaProperty[] |
getElementProperties()
Returns all the SchemaProperties corresponding to elements.
|
SchemaProperty |
getElementProperty(QName eltName)
Returns a SchemaProperty corresponding to an element within this
complex type by looking up the element name.
|
SchemaTypeElementSequencer |
getElementSequencer()
Returns a
SchemaTypeElementSequencer object, which can then
be used to validate complex content inside this element. |
SchemaType |
getElementType(QName eltName,
QName xsiType,
SchemaTypeLoader wildcardTypeLoader)
Returns the type of a child element based on the element name and
an xsi:type attribute (and the type system within which names are
resolved).
|
String |
getElemFormDefault() |
XmlAnySimpleType[] |
getEnumerationValues()
Returns the array of valid objects from the
enumeration facet, null if no enumeration defined.
|
Class<? extends StringEnumAbstractBase> |
getEnumJavaClass()
The Java class corresponding to the enumeration type for this schema type,
if applicable (or null if not an enumeration).
|
XmlAnySimpleType |
getFacet(int facetCode)
Returns the value of the given facet, or null if
none is set.
|
boolean[] |
getFixedFacets() |
String |
getFullJavaImplName()
The fully-qualified Java type name of the implementation class.
|
String |
getFullJavaName()
The fully-qualified Java type name of the class.
|
int |
getIndexForLocalAttribute(SchemaLocalAttribute attr) |
int |
getIndexForLocalElement(SchemaLocalElement elt) |
InterfaceExtension[] |
getInterfaceExtensions() |
Class<? extends XmlObject> |
getJavaClass()
The Java class corresponding to this schema type.
|
Class<? extends XmlObjectBase> |
getJavaImplClass() |
Constructor<? extends XmlObjectBase> |
getJavaImplConstructor() |
Constructor<? extends XmlObjectBase> |
getJavaImplConstructor2() |
SchemaType |
getListItemType()
For list types only: get the item type.
|
SchemaLocalElement |
getLocalElementByIndex(int i) |
QName |
getName()
The name used to describe the type in the schema.
|
SchemaType |
getOuterType()
The outer schema type.
|
XmlObject |
getParseObject() |
RegularExpression[] |
getPatternExpressions() |
String[] |
getPatterns()
True
|
PrePostExtension |
getPrePostExtension() |
SchemaType |
getPrimitiveType()
For atomic types only: get the primitive type underlying this one.
|
SchemaProperty[] |
getProperties()
Returns all the SchemaProperties within this complex type,
elements followed by attributes.
|
SchemaType.Ref |
getRef()
Retruns a SchemaType.Ref pointing to this schema type itself.
|
String |
getShortJavaImplName()
The short unqualified Java name for the implementation class.
|
String |
getShortJavaName()
The short unqualified Java name for the class.
|
int |
getSimpleVariety()
Returns whether the simple type is ATOMIC, UNION, or LIST.
|
String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
SchemaStringEnumEntry[] |
getStringEnumEntries()
Returns the array of SchemaStringEnumEntries for this type: this
array includes information about the java constant names used for
each string enum entry.
|
QName |
getSubstitutionGroup() |
QName[] |
getSubstitutionGroupMembers() |
String |
getTargetNamespace() |
SchemaTypeSystem |
getTypeSystem()
Returns the SchemaTypeLoader in which this type was defined.
|
SchemaType |
getUnionCommonBaseType()
For union types only: get the most specific common base
type of the constituent member types.
|
SchemaType[] |
getUnionConstituentTypes()
For union types only: get the constituent member types.
|
SchemaType[] |
getUnionMemberTypes()
For union types only: get the shallow member types.
|
SchemaType[] |
getUnionSubTypes()
For union types only: gets the full tree of member types.
|
Object |
getUserData()
Returns user-specific information.
|
String |
getUserTypeHandlerName() |
String |
getUserTypeName() |
int |
getWhiteSpaceRule()
For nonunion simple types: get the whitespace rule.
|
boolean |
hasAllContent()
True if the complex content model for this complex type is an "all" group.
|
boolean |
hasAttributeWildcards()
True if this type permits wildcard attributes.
|
boolean |
hasElementWildcards()
True if this type permits element wildcards.
|
boolean |
hasPatternFacet()
True if there are regex pattern facents
|
boolean |
hasStringEnumValues()
True if this is a string enum where an integer
is assigned to each enumerated value.
|
boolean |
isAbstract()
True if this type cannot be used directly in instances
|
boolean |
isAnonymousType()
True if the Xsd type is anonymous (i.e., not top-level).
|
boolean |
isAssignableFrom(SchemaType type)
True if the specified type derives from this type (or if
it is the same type).
|
boolean |
isAttributeType()
True if this is a attribute type.
|
boolean |
isBounded()
True if bounded.
|
boolean |
isBuiltinType()
True for any of the 40+ built-in types.
|
boolean |
isChameleon() |
boolean |
isCompiled()
True if this schema type was compiled to have a corresponding
Java class.
|
boolean |
isDocumentType()
True if this is a document type.
|
boolean |
isFacetFixed(int facetCode)
True if the given facet is fixed.
|
boolean |
isFinite()
True if finite.
|
boolean |
isJavaized() |
boolean |
isNoType()
True for the type object that represents a the absence of a determined type.
|
boolean |
isNumeric()
True if numeric.
|
boolean |
isOrderSensitive()
True if particles have same defaults, nillability, etc, that are
invariant when order changes.
|
boolean |
isPrimitiveType()
True for any of the 20 primitive types (plus anySimpleType)
|
boolean |
isRedefinition() |
boolean |
isResolved() |
boolean |
isResolving() |
boolean |
isSGResolved() |
boolean |
isSGResolving() |
boolean |
isSimpleType()
True for the anySimpleType and any restrictions/unions/lists.
|
boolean |
isSkippedAnonymousType()
True if this anonymous type has no corresponding Java type.
|
boolean |
isUnionOfLists() |
boolean |
isUnjavaized() |
boolean |
isUnloaded() |
boolean |
isURType()
True for anyType and anySimpleType.
|
boolean |
isValidSubstitution(QName name)
For document types, true if the given name can be substituted for the
document element name.
|
boolean |
matchPatternFacet(String s)
True if the given string matches the pattern facets.
|
XmlAnySimpleType |
newValidatingValue(Object obj) |
XmlAnySimpleType |
newValue(Object obj)
Creates an immutable simple value.
|
XmlAnySimpleType |
newValue(Object obj,
boolean validateOnSet) |
int |
ordered()
True if ordered.
|
QNameSet |
qnameSetForWildcardAttributes()
Returns a QNameSet of attributes that may exist in wildcard
buchets and are not explicitly defined in this schema type.
|
QNameSet |
qnameSetForWildcardElements()
Returns a QNameSet of elements that may exist in wildcard
buchets and are not explicitly defined in this schema type.
|
void |
setAnnotation(SchemaAnnotation ann) |
void |
setAnonymousTypeRefs(SchemaType.Ref[] anonymousTyperefs) |
void |
setAnonymousUnionMemberOrdinal(int i) |
void |
setAttributeType(boolean isAttribute) |
void |
setBaseDepth(int depth) |
void |
setBaseEnumTypeRef(SchemaType.Ref baseEnumTyperef) |
void |
setBaseTypeRef(SchemaType.Ref typeref) |
void |
setBasicFacets(XmlValueRef[] values,
boolean[] fixed) |
void |
setBounded(boolean f) |
void |
setBuiltinTypeCode(int builtinTypeCode) |
void |
setCompiled(boolean f) |
void |
setComplexTypeVariety(int complexTypeVariety) |
void |
setContainerField(SchemaField field) |
void |
setContainerFieldIndex(short code,
int index) |
void |
setContainerFieldRef(SchemaComponent.Ref ref) |
void |
setContentBasedOnTypeRef(SchemaType.Ref typeref) |
void |
setContentModel(SchemaParticle contentModel,
SchemaAttributeModel attrModel,
Map<QName,SchemaProperty> propertyModelByElementName,
Map<QName,SchemaProperty> propertyModelByAttributeName,
boolean isAll) |
void |
setDecimalSize(int bits) |
void |
setDerivationType(int type) |
void |
setDocumentType(boolean isDocument) |
void |
setEnumerationValues(XmlValueRef[] a) |
void |
setFilename(String filename) |
void |
setFinite(boolean f) |
void |
setFullJavaImplName(String name) |
void |
setFullJavaName(String name) |
void |
setInterfaceExtensions(InterfaceExtension[] interfaces) |
void |
setJavaClass(Class<? extends XmlObject> javaClass) |
void |
setListItemTypeRef(SchemaType.Ref typeref) |
void |
setName(QName name) |
void |
setNumeric(boolean f) |
void |
setOrdered(int ordering) |
void |
setOrderSensitive(boolean sensitive) |
void |
setOuterSchemaTypeRef(SchemaType.Ref typeref) |
void |
setParseContext(XmlObject parseObject,
String targetNamespace,
boolean chameleon,
String elemFormDefault,
String attFormDefault,
boolean redefinition) |
void |
setPatternFacet(boolean hasPatterns) |
void |
setPatterns(RegularExpression[] list) |
void |
setPrePostExtension(PrePostExtension prepost) |
void |
setPrimitiveTypeRef(SchemaType.Ref typeref) |
void |
setShortJavaImplName(String name) |
void |
setShortJavaName(String name) |
void |
setSimpleType(boolean f) |
void |
setSimpleTypeVariety(int variety) |
void |
setStringEnumEntries(SchemaStringEnumEntry[] sEnums) |
void |
setSubstitutionGroup(QName sg) |
void |
setUnionMemberTypeRefs(SchemaType.Ref[] typerefs) |
void |
setUnionOfLists(boolean f) |
void |
setUserData(Object data) |
void |
setUserTypeHandlerName(String typeHandler) |
void |
setUserTypeName(String userTypeName) |
void |
setWhiteSpaceRule(int ws) |
void |
setWildcardSummary(QNameSet elementSet,
boolean haswcElt,
QNameSet attributeSet,
boolean haswcAtt) |
void |
startJavaizing() |
void |
startResolving() |
void |
startResolvingSGs() |
String |
toString() |
public boolean isUnloaded()
public void finishLoading()
public boolean isSGResolved()
public boolean isSGResolving()
public boolean isResolved()
public boolean isResolving()
public boolean isUnjavaized()
public boolean isJavaized()
public void startResolvingSGs()
public void finishResolvingSGs()
public void startResolving()
public void finishResolving()
public void startJavaizing()
public void finishJavaizing()
public QName getName()
SchemaTypegetName in interface SchemaComponentgetName in interface SchemaTypepublic void setName(QName name)
public String getSourceName()
SchemaComponentSchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName in interface SchemaComponentpublic void setFilename(String filename)
public int getComponentType()
SchemaComponentSchemaComponent.TYPE,
SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP,
SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION.getComponentType in interface SchemaComponentpublic boolean isAnonymousType()
SchemaTypeisAnonymousType in interface SchemaTypepublic boolean isDocumentType()
SchemaTypeDocument types are generated for every global element. A document type is an unnamed complex type that contains exactly one element: we define these types, because they are the types of the "documents" which contain the defined global elements, and they all turn into Java types. (Named ElementnameDocument.)
isDocumentType in interface SchemaTypepublic boolean isAttributeType()
SchemaTypeAttribute types are generated for every global attribute. An attribute type is an unnamed complex type that contains exactly one attribute: we define these types, because they are the types of the "attribute documents" which contain the defined global attribute, and they all turn into Java types. (Named AttributenameAttribute.)
isAttributeType in interface SchemaTypepublic QName getDocumentElementName()
SchemaTypegetDocumentElementName in interface SchemaTypepublic QName getAttributeTypeAttributeName()
SchemaTypegetAttributeTypeAttributeName in interface SchemaTypepublic void setAnnotation(SchemaAnnotation ann)
public SchemaAnnotation getAnnotation()
SchemaAnnotatedgetAnnotation in interface SchemaAnnotatedpublic void setDocumentType(boolean isDocument)
public void setAttributeType(boolean isAttribute)
public int getContentType()
SchemaTypeSchemaType.EMPTY_CONTENT, SchemaType.SIMPLE_CONTENT, SchemaType.ELEMENT_CONTENT, or
SchemaType.MIXED_CONTENT for complex types. For noncomplex types, returns
SchemaType.NOT_COMPLEX_TYPE.getContentType in interface SchemaTypepublic void setComplexTypeVariety(int complexTypeVariety)
public SchemaTypeElementSequencer getElementSequencer()
SchemaTypeSchemaTypeElementSequencer object, which can then
be used to validate complex content inside this element. This is useful
for example for trying out different names and see which one would be
valid as a child of this element.getElementSequencer in interface SchemaTypepublic boolean blockRestriction()
SchemaTypeblockRestriction in interface SchemaTypepublic boolean blockExtension()
SchemaTypeblockExtension in interface SchemaTypepublic boolean isAbstract()
SchemaTypeisAbstract in interface SchemaTypepublic boolean finalExtension()
SchemaTypefinalExtension in interface SchemaTypepublic boolean finalRestriction()
SchemaTypefinalRestriction in interface SchemaTypepublic boolean finalList()
SchemaTypefinalList in interface SchemaTypepublic boolean finalUnion()
SchemaTypefinalUnion in interface SchemaTypepublic SchemaField getContainerField()
SchemaTypegetContainerField in interface SchemaTypepublic void setContainerField(SchemaField field)
public void setContainerFieldRef(SchemaComponent.Ref ref)
public void setContainerFieldIndex(short code,
int index)
public SchemaType getOuterType()
SchemaTypegetOuterType in interface SchemaTypepublic void setOuterSchemaTypeRef(SchemaType.Ref typeref)
public boolean isCompiled()
SchemaTypeisCompiled in interface SchemaTypepublic void setCompiled(boolean f)
public boolean isSkippedAnonymousType()
SchemaTypeisSkippedAnonymousType in interface SchemaTypepublic String getShortJavaName()
SchemaTypegetShortJavaName in interface SchemaTypepublic void setShortJavaName(String name)
public String getFullJavaName()
SchemaTypegetFullJavaName in interface SchemaTypepublic void setFullJavaName(String name)
public void setShortJavaImplName(String name)
public void setFullJavaImplName(String name)
public String getFullJavaImplName()
SchemaTypegetFullJavaImplName in interface SchemaTypepublic String getShortJavaImplName()
SchemaTypegetShortJavaImplName in interface SchemaTypepublic String getUserTypeName()
public void setUserTypeName(String userTypeName)
public String getUserTypeHandlerName()
public void setUserTypeHandlerName(String typeHandler)
public void setInterfaceExtensions(InterfaceExtension[] interfaces)
public InterfaceExtension[] getInterfaceExtensions()
public void setPrePostExtension(PrePostExtension prepost)
public PrePostExtension getPrePostExtension()
public Object getUserData()
SchemaTypegetUserData in interface SchemaTypeSchemaBookmarkpublic void setUserData(Object data)
public SchemaTypeSystem getTypeSystem()
SchemaTypegetTypeSystem in interface SchemaComponentgetTypeSystem in interface SchemaTypepublic SchemaParticle getContentModel()
SchemaTypegetContentModel in interface SchemaTypepublic SchemaLocalElement getLocalElementByIndex(int i)
public int getIndexForLocalElement(SchemaLocalElement elt)
public int getIndexForLocalAttribute(SchemaLocalAttribute attr)
public SchemaAttributeModel getAttributeModel()
SchemaTypegetAttributeModel in interface SchemaTypepublic SchemaProperty[] getProperties()
SchemaTypegetProperties in interface SchemaTypepublic SchemaProperty[] getDerivedProperties()
SchemaTypegetDerivedProperties in interface SchemaTypepublic SchemaProperty[] getElementProperties()
SchemaTypegetElementProperties in interface SchemaTypepublic SchemaProperty[] getAttributeProperties()
SchemaTypegetAttributeProperties in interface SchemaTypepublic SchemaProperty getElementProperty(QName eltName)
SchemaTypegetElementProperty in interface SchemaTypepublic SchemaProperty getAttributeProperty(QName attrName)
SchemaTypegetAttributeProperty in interface SchemaTypepublic boolean hasAllContent()
SchemaTypehasAllContent in interface SchemaTypepublic boolean isOrderSensitive()
SchemaTypeisOrderSensitive in interface SchemaTypepublic void setOrderSensitive(boolean sensitive)
public void setContentModel(SchemaParticle contentModel, SchemaAttributeModel attrModel, Map<QName,SchemaProperty> propertyModelByElementName, Map<QName,SchemaProperty> propertyModelByAttributeName, boolean isAll)
public boolean hasAttributeWildcards()
SchemaTypehasAttributeWildcards in interface SchemaTypepublic boolean hasElementWildcards()
SchemaTypehasElementWildcards in interface SchemaTypepublic boolean isValidSubstitution(QName name)
SchemaTypeisValidSubstitution in interface SchemaTypepublic SchemaType getElementType(QName eltName, QName xsiType, SchemaTypeLoader wildcardTypeLoader)
SchemaTypegetElementType in interface SchemaTypepublic SchemaType getAttributeType(QName attrName, SchemaTypeLoader wildcardTypeLoader)
SchemaTypegetAttributeType in interface SchemaTypepublic XmlObject createElementType(QName eltName, QName xsiType, SchemaTypeLoader wildcardTypeLoader)
public XmlObject createAttributeType(QName attrName, SchemaTypeLoader wildcardTypeLoader)
public void setWildcardSummary(QNameSet elementSet, boolean haswcElt, QNameSet attributeSet, boolean haswcAtt)
public SchemaType[] getAnonymousTypes()
SchemaTypegetAnonymousTypes in interface SchemaTypepublic void setAnonymousTypeRefs(SchemaType.Ref[] anonymousTyperefs)
public void setSimpleTypeVariety(int variety)
public int getSimpleVariety()
SchemaTypeSchemaType.NOT_SIMPLE, SchemaType.ATOMIC, SchemaType.UNION,
or SchemaType.LIST.getSimpleVariety in interface SchemaTypepublic boolean isURType()
SchemaTypeisURType in interface SchemaTypepublic boolean isNoType()
SchemaTypeisNoType in interface SchemaTypepublic boolean isSimpleType()
SchemaTypeisSimpleType in interface SchemaTypepublic void setSimpleType(boolean f)
public boolean isUnionOfLists()
public void setUnionOfLists(boolean f)
public SchemaType getPrimitiveType()
SchemaTypeReturns null if this is not an atomic type.
getPrimitiveType in interface SchemaTypepublic void setPrimitiveTypeRef(SchemaType.Ref typeref)
public int getDecimalSize()
SchemaType
Returns either SchemaType.NOT_DECIMAL,
SchemaType.SIZE_BYTE, SchemaType.SIZE_SHORT, SchemaType.SIZE_INT,
SchemaType.SIZE_LONG, SchemaType.SIZE_BIG_INTEGER, or
SchemaType.SIZE_BIG_DECIMAL.
getDecimalSize in interface SchemaTypepublic void setDecimalSize(int bits)
public SchemaType getBaseType()
SchemaTypegetBaseType in interface SchemaTypepublic void setBaseTypeRef(SchemaType.Ref typeref)
public int getBaseDepth()
public void setBaseDepth(int depth)
public SchemaType getContentBasedOnType()
SchemaTypegetContentBasedOnType in interface SchemaTypepublic void setContentBasedOnTypeRef(SchemaType.Ref typeref)
public int getDerivationType()
SchemaTypeSchemaType.DT_EXTENSION, SchemaType.DT_RESTRICTION, SchemaType.DT_NOT_DERIVED.getDerivationType in interface SchemaTypepublic void setDerivationType(int type)
public SchemaType getListItemType()
SchemaTypeReturns null if this type is not a list.
getListItemType in interface SchemaTypepublic void setListItemTypeRef(SchemaType.Ref typeref)
public SchemaType[] getUnionMemberTypes()
SchemaTypeReturns null if this type is not a union.
getUnionMemberTypes in interface SchemaTypepublic void setUnionMemberTypeRefs(SchemaType.Ref[] typerefs)
public int getAnonymousUnionMemberOrdinal()
SchemaTypegetAnonymousUnionMemberOrdinal in interface SchemaTypepublic void setAnonymousUnionMemberOrdinal(int i)
public SchemaType[] getUnionConstituentTypes()
SchemaTypeReturns null if this type is not a union.
getUnionConstituentTypes in interface SchemaTypepublic SchemaType[] getUnionSubTypes()
SchemaTypeReturns null if this type is not a union.
getUnionSubTypes in interface SchemaTypepublic SchemaType getUnionCommonBaseType()
SchemaTypeReturns null if this type is not a union.
getUnionCommonBaseType in interface SchemaTypepublic QName getSubstitutionGroup()
public void setSubstitutionGroup(QName sg)
public void addSubstitutionGroupMember(QName member)
public QName[] getSubstitutionGroupMembers()
public int getWhiteSpaceRule()
SchemaTypeSchemaType.WS_PRESERVE, SchemaType.WS_REPLACE, or
SchemaType.WS_COLLAPSE. Returns SchemaType.WS_UNSPECIFIED
for unions and complex types.getWhiteSpaceRule in interface SchemaTypepublic void setWhiteSpaceRule(int ws)
public XmlAnySimpleType getFacet(int facetCode)
SchemaTypegetFacet in interface SchemaTypepublic boolean isFacetFixed(int facetCode)
SchemaTypeisFacetFixed in interface SchemaTypepublic XmlAnySimpleType[] getBasicFacets()
public boolean[] getFixedFacets()
public void setBasicFacets(XmlValueRef[] values, boolean[] fixed)
public int ordered()
SchemaTypeSchemaType.UNORDERED,
SchemaType.PARTIAL_ORDER, or SchemaType.TOTAL_ORDER.ordered in interface SchemaTypepublic void setOrdered(int ordering)
public boolean isBounded()
SchemaTypeisBounded in interface SchemaTypepublic void setBounded(boolean f)
public boolean isFinite()
SchemaTypeisFinite in interface SchemaTypepublic void setFinite(boolean f)
public boolean isNumeric()
SchemaTypeisNumeric in interface SchemaTypepublic void setNumeric(boolean f)
public boolean hasPatternFacet()
SchemaTypehasPatternFacet in interface SchemaTypepublic void setPatternFacet(boolean hasPatterns)
public boolean matchPatternFacet(String s)
SchemaTypematchPatternFacet in interface SchemaTypepublic String[] getPatterns()
SchemaTypegetPatterns in interface SchemaTypepublic RegularExpression[] getPatternExpressions()
public void setPatterns(RegularExpression[] list)
public XmlAnySimpleType[] getEnumerationValues()
SchemaTypegetEnumerationValues in interface SchemaTypepublic void setEnumerationValues(XmlValueRef[] a)
public StringEnumAbstractBase enumForString(String s)
SchemaTypeenumForString in interface SchemaTypepublic StringEnumAbstractBase enumForInt(int i)
SchemaTypeenumForInt in interface SchemaTypepublic SchemaStringEnumEntry enumEntryForString(String s)
SchemaTypeenumEntryForString in interface SchemaTypepublic SchemaType getBaseEnumType()
SchemaTypegetBaseEnumType in interface SchemaTypepublic void setBaseEnumTypeRef(SchemaType.Ref baseEnumTyperef)
public SchemaStringEnumEntry[] getStringEnumEntries()
SchemaTypegetStringEnumEntries in interface SchemaTypepublic void setStringEnumEntries(SchemaStringEnumEntry[] sEnums)
public boolean hasStringEnumValues()
SchemaTypehasStringEnumValues in interface SchemaTypepublic void copyEnumerationValues(SchemaTypeImpl baseImpl)
public int getBuiltinTypeCode()
SchemaTypegetBuiltinTypeCode in interface SchemaTypepublic void setBuiltinTypeCode(int builtinTypeCode)
public Class<? extends XmlObject> getJavaClass()
SchemaTypegetJavaClass in interface SchemaTypepublic Class<? extends XmlObjectBase> getJavaImplClass()
public Constructor<? extends XmlObjectBase> getJavaImplConstructor()
public Constructor<? extends XmlObjectBase> getJavaImplConstructor2()
public Class<? extends StringEnumAbstractBase> getEnumJavaClass()
SchemaTypegetEnumJavaClass in interface SchemaTypepublic boolean isPrimitiveType()
SchemaTypeisPrimitiveType in interface SchemaTypepublic boolean isBuiltinType()
SchemaTypeisBuiltinType in interface SchemaTypepublic XmlObject createUnwrappedNode()
public TypeStoreUser createTypeStoreUser()
createTypeStoreUser in interface TypeStoreUserFactorypublic XmlAnySimpleType newValidatingValue(Object obj)
public XmlAnySimpleType newValue(Object obj)
newValue in interface SchemaTypepublic XmlAnySimpleType newValue(Object obj, boolean validateOnSet)
public SchemaType getCommonBaseType(SchemaType type)
SchemaTypegetCommonBaseType in interface SchemaTypepublic boolean isAssignableFrom(SchemaType type)
SchemaTypeNote that XmlObject.type (the anyType) is assignable from all type, and the XmlBeans.noType (the absence of a type) is assignable to all types.
isAssignableFrom in interface SchemaTypepublic void setParseContext(XmlObject parseObject, String targetNamespace, boolean chameleon, String elemFormDefault, String attFormDefault, boolean redefinition)
public XmlObject getParseObject()
public String getTargetNamespace()
public boolean isChameleon()
public String getElemFormDefault()
public String getAttFormDefault()
public String getChameleonNamespace()
public boolean isRedefinition()
public SchemaType.Ref getRef()
SchemaTypegetRef in interface SchemaTypepublic SchemaComponent.Ref getComponentRef()
SchemaComponentgetComponentRef in interface SchemaComponentpublic QNameSet qnameSetForWildcardElements()
<xs:complexType name="exampleType">
<xs:sequence>
<xs:element name="someElement" type='xs:string' />
<xs:any namespace="##targetNamespace" />
</xs:sequence>
</xs:complexType>
the returned QNameSet will not contain the qname of 'someElement'.qnameSetForWildcardElements in interface SchemaTypepublic QNameSet qnameSetForWildcardAttributes()
<xs:complexType name="exampleType">
...
<xs:attribute name='someAttribute' type='xs:string' />
<xs:anyAttribute namespace="##targetNamespace" />
</xs:complexType>
the returned QNameSet will not contain the qname of 'someAttribute'.qnameSetForWildcardAttributes in interface SchemaTypepublic String getDocumentation()
SchemaType
<xs:complexType ...>
<xs:annotation>
<xs:documentation>
getDocumentation method will return whatever stuff here.
</xs:docmentation>
</xs:annotation>
</xs complexType>
getDocumentation in interface SchemaType