|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xmlbeans.impl.schema.SchemaTypeImpl
public final class SchemaTypeImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaType |
|---|
SchemaType.Ref |
| Field Summary |
|---|
| Fields inherited from interface org.apache.xmlbeans.SchemaComponent |
|---|
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE |
| Method Summary | |
|---|---|
void |
addSubstitutionGroupMember(javax.xml.namespace.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(javax.xml.namespace.QName attrName,
SchemaTypeLoader wildcardTypeLoader)
|
XmlObject |
createElementType(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType,
SchemaTypeLoader wildcardTypeLoader)
|
TypeStoreUser |
createTypeStoreUser()
TypeStoreUserFactory implementation |
XmlObject |
createUnwrappedNode()
|
SchemaStringEnumEntry |
enumEntryForString(java.lang.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(java.lang.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. |
java.lang.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(javax.xml.namespace.QName attrName)
Returns a SchemaProperty corresponding to an attribute within this complex type by looking up the attribute name. |
SchemaType |
getAttributeType(javax.xml.namespace.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. |
javax.xml.namespace.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. |
java.lang.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). |
javax.xml.namespace.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(javax.xml.namespace.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(javax.xml.namespace.QName eltName,
javax.xml.namespace.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). |
java.lang.String |
getElemFormDefault()
|
XmlAnySimpleType[] |
getEnumerationValues()
Returns the array of valid objects from the enumeration facet, null if no enumeration defined. |
java.lang.Class |
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()
|
java.lang.String |
getFullJavaImplName()
The fully-qualified Java type name of the implementation class. |
java.lang.String |
getFullJavaName()
The fully-qualified Java type name of the class. |
int |
getIndexForLocalAttribute(SchemaLocalAttribute attr)
|
int |
getIndexForLocalElement(SchemaLocalElement elt)
|
InterfaceExtension[] |
getInterfaceExtensions()
|
java.lang.Class |
getJavaClass()
The Java class corresponding to this schema type. |
java.lang.Class |
getJavaImplClass()
|
java.lang.reflect.Constructor |
getJavaImplConstructor()
|
java.lang.reflect.Constructor |
getJavaImplConstructor2()
|
SchemaType |
getListItemType()
For list types only: get the item type. |
SchemaLocalElement |
getLocalElementByIndex(int i)
|
javax.xml.namespace.QName |
getName()
The name used to describe the type in the schema. |
SchemaType |
getOuterType()
The outer schema type. |
XmlObject |
getParseObject()
|
RegularExpression[] |
getPatternExpressions()
|
java.lang.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. |
java.lang.String |
getShortJavaImplName()
The short unqualfiied Java name for the implementation class. |
java.lang.String |
getShortJavaName()
The short unqualfiied Java name for the class. |
int |
getSimpleVariety()
Returns whether the simple type is ATOMIC, UNION, or LIST. |
java.lang.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. |
javax.xml.namespace.QName |
getSubstitutionGroup()
|
javax.xml.namespace.QName[] |
getSubstitutionGroupMembers()
|
java.lang.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. |
java.lang.Object |
getUserData()
Returns user-specific information. |
java.lang.Class |
getUserTypeClass()
|
java.lang.Class |
getUserTypeHandlerClass()
|
java.lang.String |
getUserTypeHandlerName()
|
java.lang.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(javax.xml.namespace.QName name)
For document types, true if the given name can be substituted for the document element name. |
boolean |
matchPatternFacet(java.lang.String s)
True if the given string matches the pattern facets. |
XmlAnySimpleType |
newValidatingValue(java.lang.Object obj)
|
XmlAnySimpleType |
newValue(java.lang.Object obj)
Creates an immutable simple value. |
XmlAnySimpleType |
newValue(java.lang.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,
java.util.Map propertyModelByElementName,
java.util.Map propertyModelByAttributeName,
boolean isAll)
|
void |
setDecimalSize(int bits)
|
void |
setDerivationType(int type)
|
void |
setDocumentType(boolean isDocument)
|
void |
setEnumerationValues(XmlValueRef[] a)
|
void |
setFilename(java.lang.String filename)
|
void |
setFinite(boolean f)
|
void |
setFullJavaImplName(java.lang.String name)
|
void |
setFullJavaName(java.lang.String name)
|
void |
setInterfaceExtensions(InterfaceExtension[] interfaces)
|
void |
setJavaClass(java.lang.Class javaClass)
|
void |
setListItemTypeRef(SchemaType.Ref typeref)
|
void |
setName(javax.xml.namespace.QName name)
|
void |
setNumeric(boolean f)
|
void |
setOrdered(int ordering)
|
void |
setOrderSensitive(boolean sensitive)
|
void |
setOuterSchemaTypeRef(SchemaType.Ref typeref)
|
void |
setParseContext(XmlObject parseObject,
java.lang.String targetNamespace,
boolean chameleon,
java.lang.String elemFormDefault,
java.lang.String attFormDefault,
boolean redefinition)
|
void |
setPatternFacet(boolean hasPatterns)
|
void |
setPatterns(RegularExpression[] list)
|
void |
setPrePostExtension(PrePostExtension prepost)
|
void |
setPrimitiveTypeRef(SchemaType.Ref typeref)
|
void |
setShortJavaImplName(java.lang.String name)
|
void |
setShortJavaName(java.lang.String name)
|
void |
setSimpleType(boolean f)
|
void |
setSimpleTypeVariety(int variety)
|
void |
setStringEnumEntries(SchemaStringEnumEntry[] sEnums)
|
void |
setSubstitutionGroup(javax.xml.namespace.QName sg)
|
void |
setUnionMemberTypeRefs(SchemaType.Ref[] typerefs)
|
void |
setUnionOfLists(boolean f)
|
void |
setUserData(java.lang.Object data)
|
void |
setUserTypeHandlerName(java.lang.String typeHandler)
|
void |
setUserTypeName(java.lang.String userTypeName)
|
void |
setWhiteSpaceRule(int ws)
|
void |
setWildcardSummary(QNameSet elementSet,
boolean haswcElt,
QNameSet attributeSet,
boolean haswcAtt)
|
void |
startJavaizing()
|
void |
startResolving()
|
void |
startResolvingSGs()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 javax.xml.namespace.QName getName()
SchemaType
getName in interface SchemaComponentgetName in interface SchemaTypepublic void setName(javax.xml.namespace.QName name)
public java.lang.String getSourceName()
SchemaComponentSchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName in interface SchemaComponentpublic void setFilename(java.lang.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()
SchemaType
isAnonymousType 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 javax.xml.namespace.QName getDocumentElementName()
SchemaType
getDocumentElementName in interface SchemaTypepublic javax.xml.namespace.QName getAttributeTypeAttributeName()
SchemaType
getAttributeTypeAttributeName in interface SchemaTypepublic void setAnnotation(SchemaAnnotation ann)
public SchemaAnnotation getAnnotation()
SchemaAnnotated
getAnnotation 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()
SchemaType
blockRestriction in interface SchemaTypepublic boolean blockExtension()
SchemaType
blockExtension in interface SchemaTypepublic boolean isAbstract()
SchemaType
isAbstract in interface SchemaTypepublic boolean finalExtension()
SchemaType
finalExtension in interface SchemaTypepublic boolean finalRestriction()
SchemaType
finalRestriction in interface SchemaTypepublic boolean finalList()
SchemaType
finalList in interface SchemaTypepublic boolean finalUnion()
SchemaType
finalUnion in interface SchemaTypepublic SchemaField getContainerField()
SchemaType
getContainerField in interface SchemaTypepublic void setContainerField(SchemaField field)
public void setContainerFieldRef(SchemaComponent.Ref ref)
public void setContainerFieldIndex(short code,
int index)
public SchemaType getOuterType()
SchemaType
getOuterType in interface SchemaTypepublic void setOuterSchemaTypeRef(SchemaType.Ref typeref)
public boolean isCompiled()
SchemaType
isCompiled in interface SchemaTypepublic void setCompiled(boolean f)
public boolean isSkippedAnonymousType()
SchemaType
isSkippedAnonymousType in interface SchemaTypepublic java.lang.String getShortJavaName()
SchemaType
getShortJavaName in interface SchemaTypepublic void setShortJavaName(java.lang.String name)
public java.lang.String getFullJavaName()
SchemaType
getFullJavaName in interface SchemaTypepublic void setFullJavaName(java.lang.String name)
public void setShortJavaImplName(java.lang.String name)
public void setFullJavaImplName(java.lang.String name)
public java.lang.String getFullJavaImplName()
SchemaType
getFullJavaImplName in interface SchemaTypepublic java.lang.String getShortJavaImplName()
SchemaType
getShortJavaImplName in interface SchemaTypepublic java.lang.String getUserTypeName()
public void setUserTypeName(java.lang.String userTypeName)
public java.lang.String getUserTypeHandlerName()
public void setUserTypeHandlerName(java.lang.String typeHandler)
public void setInterfaceExtensions(InterfaceExtension[] interfaces)
public InterfaceExtension[] getInterfaceExtensions()
public void setPrePostExtension(PrePostExtension prepost)
public PrePostExtension getPrePostExtension()
public java.lang.Object getUserData()
SchemaType
getUserData in interface SchemaTypeSchemaBookmarkpublic void setUserData(java.lang.Object data)
public SchemaTypeSystem getTypeSystem()
SchemaType
getTypeSystem in interface SchemaComponentgetTypeSystem in interface SchemaTypepublic SchemaParticle getContentModel()
SchemaType
getContentModel in interface SchemaTypepublic SchemaLocalElement getLocalElementByIndex(int i)
public int getIndexForLocalElement(SchemaLocalElement elt)
public int getIndexForLocalAttribute(SchemaLocalAttribute attr)
public SchemaAttributeModel getAttributeModel()
SchemaType
getAttributeModel in interface SchemaTypepublic SchemaProperty[] getProperties()
SchemaType
getProperties in interface SchemaTypepublic SchemaProperty[] getDerivedProperties()
SchemaType
getDerivedProperties in interface SchemaTypepublic SchemaProperty[] getElementProperties()
SchemaType
getElementProperties in interface SchemaTypepublic SchemaProperty[] getAttributeProperties()
SchemaType
getAttributeProperties in interface SchemaTypepublic SchemaProperty getElementProperty(javax.xml.namespace.QName eltName)
SchemaType
getElementProperty in interface SchemaTypepublic SchemaProperty getAttributeProperty(javax.xml.namespace.QName attrName)
SchemaType
getAttributeProperty in interface SchemaTypepublic boolean hasAllContent()
SchemaType
hasAllContent in interface SchemaTypepublic boolean isOrderSensitive()
SchemaType
isOrderSensitive in interface SchemaTypepublic void setOrderSensitive(boolean sensitive)
public void setContentModel(SchemaParticle contentModel,
SchemaAttributeModel attrModel,
java.util.Map propertyModelByElementName,
java.util.Map propertyModelByAttributeName,
boolean isAll)
public boolean hasAttributeWildcards()
SchemaType
hasAttributeWildcards in interface SchemaTypepublic boolean hasElementWildcards()
SchemaType
hasElementWildcards in interface SchemaTypepublic boolean isValidSubstitution(javax.xml.namespace.QName name)
SchemaType
isValidSubstitution in interface SchemaType
public SchemaType getElementType(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType,
SchemaTypeLoader wildcardTypeLoader)
SchemaType
getElementType in interface SchemaType
public SchemaType getAttributeType(javax.xml.namespace.QName attrName,
SchemaTypeLoader wildcardTypeLoader)
SchemaType
getAttributeType in interface SchemaType
public XmlObject createElementType(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType,
SchemaTypeLoader wildcardTypeLoader)
public XmlObject createAttributeType(javax.xml.namespace.QName attrName,
SchemaTypeLoader wildcardTypeLoader)
public void setWildcardSummary(QNameSet elementSet,
boolean haswcElt,
QNameSet attributeSet,
boolean haswcAtt)
public SchemaType[] getAnonymousTypes()
SchemaType
getAnonymousTypes 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()
SchemaType
isURType in interface SchemaTypepublic boolean isNoType()
SchemaType
isNoType in interface SchemaTypepublic boolean isSimpleType()
SchemaType
isSimpleType 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()
SchemaType
getBaseType in interface SchemaTypepublic void setBaseTypeRef(SchemaType.Ref typeref)
public int getBaseDepth()
public void setBaseDepth(int depth)
public SchemaType getContentBasedOnType()
SchemaType
getContentBasedOnType 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()
SchemaType
getAnonymousUnionMemberOrdinal 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 javax.xml.namespace.QName getSubstitutionGroup()
public void setSubstitutionGroup(javax.xml.namespace.QName sg)
public void addSubstitutionGroupMember(javax.xml.namespace.QName member)
public javax.xml.namespace.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)
SchemaType
getFacet in interface SchemaTypepublic boolean isFacetFixed(int facetCode)
SchemaType
isFacetFixed 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()
SchemaType
isBounded in interface SchemaTypepublic void setBounded(boolean f)
public boolean isFinite()
SchemaType
isFinite in interface SchemaTypepublic void setFinite(boolean f)
public boolean isNumeric()
SchemaType
isNumeric in interface SchemaTypepublic void setNumeric(boolean f)
public boolean hasPatternFacet()
SchemaType
hasPatternFacet in interface SchemaTypepublic void setPatternFacet(boolean hasPatterns)
public boolean matchPatternFacet(java.lang.String s)
SchemaType
matchPatternFacet in interface SchemaTypepublic java.lang.String[] getPatterns()
SchemaType
getPatterns in interface SchemaTypepublic RegularExpression[] getPatternExpressions()
public void setPatterns(RegularExpression[] list)
public XmlAnySimpleType[] getEnumerationValues()
SchemaType
getEnumerationValues in interface SchemaTypepublic void setEnumerationValues(XmlValueRef[] a)
public StringEnumAbstractBase enumForString(java.lang.String s)
SchemaType
enumForString in interface SchemaTypepublic StringEnumAbstractBase enumForInt(int i)
SchemaType
enumForInt in interface SchemaTypepublic SchemaStringEnumEntry enumEntryForString(java.lang.String s)
SchemaType
enumEntryForString in interface SchemaTypepublic SchemaType getBaseEnumType()
SchemaType
getBaseEnumType in interface SchemaTypepublic void setBaseEnumTypeRef(SchemaType.Ref baseEnumTyperef)
public SchemaStringEnumEntry[] getStringEnumEntries()
SchemaType
getStringEnumEntries in interface SchemaTypepublic void setStringEnumEntries(SchemaStringEnumEntry[] sEnums)
public boolean hasStringEnumValues()
SchemaType
hasStringEnumValues in interface SchemaTypepublic void copyEnumerationValues(SchemaTypeImpl baseImpl)
public int getBuiltinTypeCode()
SchemaType
getBuiltinTypeCode in interface SchemaTypepublic void setBuiltinTypeCode(int builtinTypeCode)
public java.lang.Class getJavaClass()
SchemaType
getJavaClass in interface SchemaTypepublic java.lang.Class getJavaImplClass()
public java.lang.Class getUserTypeClass()
public java.lang.Class getUserTypeHandlerClass()
public java.lang.reflect.Constructor getJavaImplConstructor()
public java.lang.reflect.Constructor getJavaImplConstructor2()
public java.lang.Class getEnumJavaClass()
SchemaType
getEnumJavaClass in interface SchemaTypepublic void setJavaClass(java.lang.Class javaClass)
public boolean isPrimitiveType()
SchemaType
isPrimitiveType in interface SchemaTypepublic boolean isBuiltinType()
SchemaType
isBuiltinType in interface SchemaTypepublic XmlObject createUnwrappedNode()
public TypeStoreUser createTypeStoreUser()
createTypeStoreUser in interface TypeStoreUserFactorypublic XmlAnySimpleType newValidatingValue(java.lang.Object obj)
public XmlAnySimpleType newValue(java.lang.Object obj)
newValue in interface SchemaType
public XmlAnySimpleType newValue(java.lang.Object obj,
boolean validateOnSet)
public SchemaType getCommonBaseType(SchemaType type)
SchemaType
getCommonBaseType in interface SchemaTypepublic boolean isAssignableFrom(SchemaType type)
SchemaType
isAssignableFrom in interface SchemaTypepublic java.lang.String toString()
toString in class java.lang.Object
public void setParseContext(XmlObject parseObject,
java.lang.String targetNamespace,
boolean chameleon,
java.lang.String elemFormDefault,
java.lang.String attFormDefault,
boolean redefinition)
public XmlObject getParseObject()
public java.lang.String getTargetNamespace()
public boolean isChameleon()
public java.lang.String getElemFormDefault()
public java.lang.String getAttFormDefault()
public java.lang.String getChameleonNamespace()
public boolean isRedefinition()
public SchemaType.Ref getRef()
SchemaType
getRef in interface SchemaTypepublic SchemaComponent.Ref getComponentRef()
SchemaComponent
getComponentRef in interface SchemaComponentpublic QNameSet qnameSetForWildcardElements()
qnameSetForWildcardElements in interface SchemaTypepublic QNameSet qnameSetForWildcardAttributes()
qnameSetForWildcardAttributes in interface SchemaType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||