Class SchemaTypeImpl
- All Implemented Interfaces:
TypeStoreUserFactory,SchemaAnnotated,SchemaComponent,SchemaType
-
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, TYPEFields inherited from interface org.apache.xmlbeans.SchemaType
ATOMIC, 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_UNSPECIFIED -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubstitutionGroupMember(QName member) booleanTrue if extensions of this type cannot be substituted for this typebooleanTrue if restrictions of this type cannot be substituted for this typevoidcopyEnumerationValues(SchemaTypeImpl baseImpl) createAttributeType(QName attrName, SchemaTypeLoader wildcardTypeLoader) createElementType(QName eltName, QName xsiType, SchemaTypeLoader wildcardTypeLoader) TypeStoreUserFactory implementationReturns 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.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.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.booleanTrue if other types cannot extend this type (only for complex types)booleanTrue if list derivation of this type is prohibited (only for simple types)booleanTrue if other types cannot restrict this typebooleanTrue if union derivation of this type is prohibited (only for simple types)voidvoidvoidvoidReturns the Schema annotation object or null if none presentThe array of inner (anonymous) types defined within this type.intFor 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.Returns the attribute model for this complex type (with simple or complex content).Returns all the SchemaProperties corresponding to attributes.getAttributeProperty(QName attrName) Returns a SchemaProperty corresponding to an attribute within this complex type by looking up the attribute name.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.Returns the attribute qname if this is a attribute type, or null otherwise.intIf this is a string enumeration, returns the most basic base schema type that this enuemration is based on.Returns base restriction or extension type.intReturns an integer for builtin types that can be used for quick comparison.getCommonBaseType(SchemaType type) Returns common base type with the given type.Used for on-demand loading of schema components.intReturns the type code for the schema object, eitherSchemaComponent.TYPE,SchemaComponent.ELEMENT,SchemaComponent.ATTRIBUTE,SchemaComponent.ATTRIBUTE_GROUP,SchemaComponent.MODEL_GROUP,SchemaComponent.IDENTITY_CONSTRAINT, orSchemaComponent.NOTATION.The parent schema element.For complex types with simple content returns the base type for this type's content.Returns the complex content model for this complex type (with complex content).intReturnsSchemaType.EMPTY_CONTENT,SchemaType.SIMPLE_CONTENT,SchemaType.ELEMENT_CONTENT, orSchemaType.MIXED_CONTENTfor complex types.intFor atomic numeric restrictions of decimal only: the numeric size category.intReturns an integer for the derivation type, eitherSchemaType.DT_EXTENSION,SchemaType.DT_RESTRICTION,SchemaType.DT_NOT_DERIVED.Returns the SchemaProperties defined by this complex type, exclusive of the base type (if any).returns user specified documentationReturns the document element name if this is a document type, or null otherwise.Returns all the SchemaProperties corresponding to elements.getElementProperty(QName eltName) Returns a SchemaProperty corresponding to an element within this complex type by looking up the element name.Returns aSchemaTypeElementSequencerobject, which can then be used to validate complex content inside this element.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).Returns the array of valid objects from the enumeration facet, null if no enumeration defined.Class<? extends StringEnumAbstractBase> The Java class corresponding to the enumeration type for this schema type, if applicable (or null if not an enumeration).getFacet(int facetCode) Returns the value of the given facet, or null if none is set.boolean[]The fully-qualified Java type name of the implementation class.The fully-qualified Java type name of the class.intintThe Java class corresponding to this schema type.Class<? extends XmlObjectBase> Constructor<? extends XmlObjectBase> Constructor<? extends XmlObjectBase> For list types only: get the item type.getLocalElementByIndex(int i) getName()The name used to describe the type in the schema.The outer schema type.String[]TrueFor atomic types only: get the primitive type underlying this one.Returns all the SchemaProperties within this complex type, elements followed by attributes.getRef()Retruns a SchemaType.Ref pointing to this schema type itself.The short unqualfiied Java name for the implementation class.The short unqualfiied Java name for the class.intReturns whether the simple type is ATOMIC, UNION, or LIST.The name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:Returns the array of SchemaStringEnumEntries for this type: this array includes information about the java constant names used for each string enum entry.QName[]Returns the SchemaTypeLoader in which this type was defined.For union types only: get the most specific common base type of the constituent member types.For union types only: get the constituent member types.For union types only: get the shallow member types.For union types only: gets the full tree of member types.Returns user-specific information.intFor nonunion simple types: get the whitespace rule.booleanTrue if the complex content model for this complex type is an "all" group.booleanTrue if this type permits wildcard attributes.booleanTrue if this type permits element wildcards.booleanTrue if there are regex pattern facentsbooleanTrue if this is a string enum where an integer is assigned to each enumerated value.booleanTrue if this type cannot be used directly in instancesbooleanTrue if the Xsd type is anonymous (i.e., not top-level).booleanisAssignableFrom(SchemaType type) True if the specified type derives from this type (or if it is the same type).booleanTrue if this is a attribute type.booleanTrue if bounded.booleanTrue for any of the 40+ built-in types.booleanbooleanTrue if this schema type was compiled to have a corresponding Java class.booleanTrue if this is a document type.booleanisFacetFixed(int facetCode) True if the given facet is fixed.booleanisFinite()True if finite.booleanbooleanisNoType()True for the type object that represents a the absence of a determined type.booleanTrue if numeric.booleanTrue if particles have same defaults, nillability, etc, that are invariant when order changes.booleanTrue for any of the 20 primitive types (plus anySimpleType)booleanbooleanbooleanbooleanbooleanbooleanTrue for the anySimpleType and any restrictions/unions/lists.booleanTrue if this anonymous type has no corresponding Java type.booleanbooleanbooleanbooleanisURType()True for anyType and anySimpleType.booleanisValidSubstitution(QName name) For document types, true if the given name can be substituted for the document element name.booleanTrue if the given string matches the pattern facets.newValidatingValue(Object obj) Creates an immutable simple value.intordered()True if ordered.Returns a QNameSet of attributes that may exist in wildcard buchets and are not explicitly defined in this schema type.Returns a QNameSet of elements that may exist in wildcard buchets and are not explicitly defined in this schema type.voidvoidsetAnonymousTypeRefs(SchemaType.Ref[] anonymousTyperefs) voidvoidsetAttributeType(boolean isAttribute) voidsetBaseDepth(int depth) voidsetBaseEnumTypeRef(SchemaType.Ref baseEnumTyperef) voidsetBaseTypeRef(SchemaType.Ref typeref) voidsetBasicFacets(XmlValueRef[] values, boolean[] fixed) voidsetBounded(boolean f) voidsetBuiltinTypeCode(int builtinTypeCode) voidsetCompiled(boolean f) voidsetComplexTypeVariety(int complexTypeVariety) voidsetContainerField(SchemaField field) voidsetContainerFieldIndex(short code, int index) voidvoidsetContentBasedOnTypeRef(SchemaType.Ref typeref) voidsetContentModel(SchemaParticle contentModel, SchemaAttributeModel attrModel, Map<QName, SchemaProperty> propertyModelByElementName, Map<QName, SchemaProperty> propertyModelByAttributeName, boolean isAll) voidsetDecimalSize(int bits) voidsetDerivationType(int type) voidsetDocumentType(boolean isDocument) voidvoidsetFilename(String filename) voidsetFinite(boolean f) voidsetFullJavaImplName(String name) voidsetFullJavaName(String name) voidsetInterfaceExtensions(InterfaceExtension[] interfaces) voidsetJavaClass(Class<? extends XmlObject> javaClass) voidsetListItemTypeRef(SchemaType.Ref typeref) voidvoidsetNumeric(boolean f) voidsetOrdered(int ordering) voidsetOrderSensitive(boolean sensitive) voidsetOuterSchemaTypeRef(SchemaType.Ref typeref) voidsetParseContext(XmlObject parseObject, String targetNamespace, boolean chameleon, String elemFormDefault, String attFormDefault, boolean redefinition) voidsetPatternFacet(boolean hasPatterns) voidsetPatterns(RegularExpression[] list) voidsetPrePostExtension(PrePostExtension prepost) voidsetPrimitiveTypeRef(SchemaType.Ref typeref) voidsetShortJavaImplName(String name) voidsetShortJavaName(String name) voidsetSimpleType(boolean f) voidsetSimpleTypeVariety(int variety) voidsetStringEnumEntries(SchemaStringEnumEntry[] sEnums) voidvoidsetUnionMemberTypeRefs(SchemaType.Ref[] typerefs) voidsetUnionOfLists(boolean f) voidsetUserData(Object data) voidsetUserTypeHandlerName(String typeHandler) voidsetUserTypeName(String userTypeName) voidsetWhiteSpaceRule(int ws) voidsetWildcardSummary(QNameSet elementSet, boolean haswcElt, QNameSet attributeSet, boolean haswcAtt) voidvoidvoidtoString()
-
Method Details
-
isUnloaded
public boolean isUnloaded() -
finishLoading
public void finishLoading() -
isSGResolved
public boolean isSGResolved() -
isSGResolving
public boolean isSGResolving() -
isResolved
public boolean isResolved() -
isResolving
public boolean isResolving() -
isUnjavaized
public boolean isUnjavaized() -
isJavaized
public boolean isJavaized() -
startResolvingSGs
public void startResolvingSGs() -
finishResolvingSGs
public void finishResolvingSGs() -
startResolving
public void startResolving() -
finishResolving
public void finishResolving() -
startJavaizing
public void startJavaizing() -
finishJavaizing
public void finishJavaizing() -
getName
Description copied from interface:SchemaTypeThe name used to describe the type in the schema. Null if the type is anonymous (nested), or if it is a document type.- Specified by:
getNamein interfaceSchemaComponent- Specified by:
getNamein interfaceSchemaType
-
setName
-
getSourceName
Description copied from interface:SchemaComponentThe name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
- Specified by:
getSourceNamein interfaceSchemaComponent
-
setFilename
-
getComponentType
public int getComponentType()Description copied from interface:SchemaComponentReturns the type code for the schema object, eitherSchemaComponent.TYPE,SchemaComponent.ELEMENT,SchemaComponent.ATTRIBUTE,SchemaComponent.ATTRIBUTE_GROUP,SchemaComponent.MODEL_GROUP,SchemaComponent.IDENTITY_CONSTRAINT, orSchemaComponent.NOTATION.- Specified by:
getComponentTypein interfaceSchemaComponent
-
isAnonymousType
public boolean isAnonymousType()Description copied from interface:SchemaTypeTrue if the Xsd type is anonymous (i.e., not top-level).- Specified by:
isAnonymousTypein interfaceSchemaType
-
isDocumentType
public boolean isDocumentType()Description copied from interface:SchemaTypeTrue if this is a document type.Document 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.)
- Specified by:
isDocumentTypein interfaceSchemaType
-
isAttributeType
public boolean isAttributeType()Description copied from interface:SchemaTypeTrue if this is a attribute type.Attribute 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.)
- Specified by:
isAttributeTypein interfaceSchemaType
-
getDocumentElementName
Description copied from interface:SchemaTypeReturns the document element name if this is a document type, or null otherwise.- Specified by:
getDocumentElementNamein interfaceSchemaType
-
getAttributeTypeAttributeName
Description copied from interface:SchemaTypeReturns the attribute qname if this is a attribute type, or null otherwise.- Specified by:
getAttributeTypeAttributeNamein interfaceSchemaType
-
setAnnotation
-
getAnnotation
Description copied from interface:SchemaAnnotatedReturns the Schema annotation object or null if none present- Specified by:
getAnnotationin interfaceSchemaAnnotated
-
setDocumentType
public void setDocumentType(boolean isDocument) -
setAttributeType
public void setAttributeType(boolean isAttribute) -
getContentType
public int getContentType()Description copied from interface:SchemaTypeReturnsSchemaType.EMPTY_CONTENT,SchemaType.SIMPLE_CONTENT,SchemaType.ELEMENT_CONTENT, orSchemaType.MIXED_CONTENTfor complex types. For noncomplex types, returnsSchemaType.NOT_COMPLEX_TYPE.- Specified by:
getContentTypein interfaceSchemaType
-
setComplexTypeVariety
public void setComplexTypeVariety(int complexTypeVariety) -
getElementSequencer
Description copied from interface:SchemaTypeReturns aSchemaTypeElementSequencerobject, 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.- Specified by:
getElementSequencerin interfaceSchemaType
-
blockRestriction
public boolean blockRestriction()Description copied from interface:SchemaTypeTrue if restrictions of this type cannot be substituted for this type- Specified by:
blockRestrictionin interfaceSchemaType
-
blockExtension
public boolean blockExtension()Description copied from interface:SchemaTypeTrue if extensions of this type cannot be substituted for this type- Specified by:
blockExtensionin interfaceSchemaType
-
isAbstract
public boolean isAbstract()Description copied from interface:SchemaTypeTrue if this type cannot be used directly in instances- Specified by:
isAbstractin interfaceSchemaType
-
finalExtension
public boolean finalExtension()Description copied from interface:SchemaTypeTrue if other types cannot extend this type (only for complex types)- Specified by:
finalExtensionin interfaceSchemaType
-
finalRestriction
public boolean finalRestriction()Description copied from interface:SchemaTypeTrue if other types cannot restrict this type- Specified by:
finalRestrictionin interfaceSchemaType
-
finalList
public boolean finalList()Description copied from interface:SchemaTypeTrue if list derivation of this type is prohibited (only for simple types)- Specified by:
finalListin interfaceSchemaType
-
finalUnion
public boolean finalUnion()Description copied from interface:SchemaTypeTrue if union derivation of this type is prohibited (only for simple types)- Specified by:
finalUnionin interfaceSchemaType
-
getContainerField
Description copied from interface:SchemaTypeThe parent schema element. Null for top-level (named) types and document types.- Specified by:
getContainerFieldin interfaceSchemaType
-
setContainerField
-
setContainerFieldRef
-
setContainerFieldIndex
public void setContainerFieldIndex(short code, int index) -
getOuterType
Description copied from interface:SchemaTypeThe outer schema type. Null for top-level (named) types.- Specified by:
getOuterTypein interfaceSchemaType
-
setOuterSchemaTypeRef
-
isCompiled
public boolean isCompiled()Description copied from interface:SchemaTypeTrue if this schema type was compiled to have a corresponding Java class.- Specified by:
isCompiledin interfaceSchemaType
-
setCompiled
public void setCompiled(boolean f) -
isSkippedAnonymousType
public boolean isSkippedAnonymousType()Description copied from interface:SchemaTypeTrue if this anonymous type has no corresponding Java type. True for anonymous types nested within simple type restrictions.- Specified by:
isSkippedAnonymousTypein interfaceSchemaType
-
getShortJavaName
Description copied from interface:SchemaTypeThe short unqualfiied Java name for the class.- Specified by:
getShortJavaNamein interfaceSchemaType
-
setShortJavaName
-
getFullJavaName
Description copied from interface:SchemaTypeThe fully-qualified Java type name of the class.- Specified by:
getFullJavaNamein interfaceSchemaType
-
setFullJavaName
-
setShortJavaImplName
-
setFullJavaImplName
-
getFullJavaImplName
Description copied from interface:SchemaTypeThe fully-qualified Java type name of the implementation class.- Specified by:
getFullJavaImplNamein interfaceSchemaType
-
getShortJavaImplName
Description copied from interface:SchemaTypeThe short unqualfiied Java name for the implementation class.- Specified by:
getShortJavaImplNamein interfaceSchemaType
-
getUserTypeName
-
setUserTypeName
-
getUserTypeHandlerName
-
setUserTypeHandlerName
-
setInterfaceExtensions
-
getInterfaceExtensions
-
setPrePostExtension
-
getPrePostExtension
-
getUserData
Description copied from interface:SchemaTypeReturns user-specific information.- Specified by:
getUserDatain interfaceSchemaType- See Also:
-
setUserData
-
getTypeSystem
Description copied from interface:SchemaTypeReturns the SchemaTypeLoader in which this type was defined. Complex types are defined and used in exactly one schema type system, but simple types are defined in one type system and can be used in any number of type systems. The most common case is the builtin types, which are defined in the builtin type system and used elsewhere.- Specified by:
getTypeSystemin interfaceSchemaComponent- Specified by:
getTypeSystemin interfaceSchemaType
-
getContentModel
Description copied from interface:SchemaTypeReturns the complex content model for this complex type (with complex content).- Specified by:
getContentModelin interfaceSchemaType
-
getLocalElementByIndex
-
getIndexForLocalElement
-
getIndexForLocalAttribute
-
getAttributeModel
Description copied from interface:SchemaTypeReturns the attribute model for this complex type (with simple or complex content).- Specified by:
getAttributeModelin interfaceSchemaType
-
getProperties
Description copied from interface:SchemaTypeReturns all the SchemaProperties within this complex type, elements followed by attributes.- Specified by:
getPropertiesin interfaceSchemaType
-
getDerivedProperties
Description copied from interface:SchemaTypeReturns the SchemaProperties defined by this complex type, exclusive of the base type (if any).- Specified by:
getDerivedPropertiesin interfaceSchemaType
-
getElementProperties
Description copied from interface:SchemaTypeReturns all the SchemaProperties corresponding to elements.- Specified by:
getElementPropertiesin interfaceSchemaType
-
getAttributeProperties
Description copied from interface:SchemaTypeReturns all the SchemaProperties corresponding to attributes.- Specified by:
getAttributePropertiesin interfaceSchemaType
-
getElementProperty
Description copied from interface:SchemaTypeReturns a SchemaProperty corresponding to an element within this complex type by looking up the element name.- Specified by:
getElementPropertyin interfaceSchemaType
-
getAttributeProperty
Description copied from interface:SchemaTypeReturns a SchemaProperty corresponding to an attribute within this complex type by looking up the attribute name.- Specified by:
getAttributePropertyin interfaceSchemaType
-
hasAllContent
public boolean hasAllContent()Description copied from interface:SchemaTypeTrue if the complex content model for this complex type is an "all" group.- Specified by:
hasAllContentin interfaceSchemaType
-
isOrderSensitive
public boolean isOrderSensitive()Description copied from interface:SchemaTypeTrue if particles have same defaults, nillability, etc, that are invariant when order changes. Computed only for Javaized types.- Specified by:
isOrderSensitivein interfaceSchemaType
-
setOrderSensitive
public void setOrderSensitive(boolean sensitive) -
setContentModel
public void setContentModel(SchemaParticle contentModel, SchemaAttributeModel attrModel, Map<QName, SchemaProperty> propertyModelByElementName, Map<QName, SchemaProperty> propertyModelByAttributeName, boolean isAll) -
hasAttributeWildcards
public boolean hasAttributeWildcards()Description copied from interface:SchemaTypeTrue if this type permits wildcard attributes. See the attribute model for more information about which wildcards are allowed.- Specified by:
hasAttributeWildcardsin interfaceSchemaType
-
hasElementWildcards
public boolean hasElementWildcards()Description copied from interface:SchemaTypeTrue if this type permits element wildcards. See the content model for more information about which wildcards are allowed, and where.- Specified by:
hasElementWildcardsin interfaceSchemaType
-
isValidSubstitution
Description copied from interface:SchemaTypeFor document types, true if the given name can be substituted for the document element name.- Specified by:
isValidSubstitutionin interfaceSchemaType
-
getElementType
Description copied from interface:SchemaTypeReturns 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).- Specified by:
getElementTypein interfaceSchemaType
-
getAttributeType
Description copied from interface:SchemaTypeReturns the type of an attribute based on the attribute name and the type system within which (wildcard) names are resolved.- Specified by:
getAttributeTypein interfaceSchemaType
-
createElementType
public XmlObject createElementType(QName eltName, QName xsiType, SchemaTypeLoader wildcardTypeLoader) -
createAttributeType
-
setWildcardSummary
-
getAnonymousTypes
Description copied from interface:SchemaTypeThe array of inner (anonymous) types defined within this type.- Specified by:
getAnonymousTypesin interfaceSchemaType
-
setAnonymousTypeRefs
-
setSimpleTypeVariety
public void setSimpleTypeVariety(int variety) -
getSimpleVariety
public int getSimpleVariety()Description copied from interface:SchemaTypeReturns whether the simple type is ATOMIC, UNION, or LIST. ReturnsSchemaType.NOT_SIMPLE,SchemaType.ATOMIC,SchemaType.UNION, orSchemaType.LIST.- Specified by:
getSimpleVarietyin interfaceSchemaType
-
isURType
public boolean isURType()Description copied from interface:SchemaTypeTrue for anyType and anySimpleType.- Specified by:
isURTypein interfaceSchemaType
-
isNoType
public boolean isNoType()Description copied from interface:SchemaTypeTrue for the type object that represents a the absence of a determined type. XML Objects whose type isNoType() are never valid.- Specified by:
isNoTypein interfaceSchemaType
-
isSimpleType
public boolean isSimpleType()Description copied from interface:SchemaTypeTrue for the anySimpleType and any restrictions/unions/lists.- Specified by:
isSimpleTypein interfaceSchemaType
-
setSimpleType
public void setSimpleType(boolean f) -
isUnionOfLists
public boolean isUnionOfLists() -
setUnionOfLists
public void setUnionOfLists(boolean f) -
getPrimitiveType
Description copied from interface:SchemaTypeFor atomic types only: get the primitive type underlying this one.Returns null if this is not an atomic type.
- Specified by:
getPrimitiveTypein interfaceSchemaType
-
setPrimitiveTypeRef
-
getDecimalSize
public int getDecimalSize()Description copied from interface:SchemaTypeFor atomic numeric restrictions of decimal only: the numeric size category. Takes into account min and max restrictions as well as totalDigits and fractionDigits facets.Returns either
SchemaType.NOT_DECIMAL,SchemaType.SIZE_BYTE,SchemaType.SIZE_SHORT,SchemaType.SIZE_INT,SchemaType.SIZE_LONG,SchemaType.SIZE_BIG_INTEGER, orSchemaType.SIZE_BIG_DECIMAL.- Specified by:
getDecimalSizein interfaceSchemaType
-
setDecimalSize
public void setDecimalSize(int bits) -
getBaseType
Description copied from interface:SchemaTypeReturns base restriction or extension type. Unions and lists return the anySimpleType.- Specified by:
getBaseTypein interfaceSchemaType
-
setBaseTypeRef
-
getBaseDepth
public int getBaseDepth() -
setBaseDepth
public void setBaseDepth(int depth) -
getContentBasedOnType
Description copied from interface:SchemaTypeFor complex types with simple content returns the base type for this type's content. In most cases, this is the same as the base type, but it can also be an anonymous type.- Specified by:
getContentBasedOnTypein interfaceSchemaType
-
setContentBasedOnTypeRef
-
getDerivationType
public int getDerivationType()Description copied from interface:SchemaTypeReturns an integer for the derivation type, eitherSchemaType.DT_EXTENSION,SchemaType.DT_RESTRICTION,SchemaType.DT_NOT_DERIVED.- Specified by:
getDerivationTypein interfaceSchemaType
-
setDerivationType
public void setDerivationType(int type) -
getListItemType
Description copied from interface:SchemaTypeFor list types only: get the item type. This is the atomic or union type that is the type of every entry in the list.Returns null if this type is not a list.
- Specified by:
getListItemTypein interfaceSchemaType
-
setListItemTypeRef
-
getUnionMemberTypes
Description copied from interface:SchemaTypeFor union types only: get the shallow member types. This returns the declared member types of the union, so, for example if the type contains another union, the nested members of that union are NOT returned here.Returns null if this type is not a union.
- Specified by:
getUnionMemberTypesin interfaceSchemaType
-
setUnionMemberTypeRefs
-
getAnonymousUnionMemberOrdinal
public int getAnonymousUnionMemberOrdinal()Description copied from interface:SchemaTypeFor 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. The first anonymous union member within a union type is numbered "1". Used to differentiate between different anonymous types.- Specified by:
getAnonymousUnionMemberOrdinalin interfaceSchemaType
-
setAnonymousUnionMemberOrdinal
public void setAnonymousUnionMemberOrdinal(int i) -
getUnionConstituentTypes
Description copied from interface:SchemaTypeFor union types only: get the constituent member types. This returns only non-union types, so, for example, for unions of unions, this returns the flattened list of individual member types within the innermost unions.Returns null if this type is not a union.
- Specified by:
getUnionConstituentTypesin interfaceSchemaType
-
getUnionSubTypes
Description copied from interface:SchemaTypeFor union types only: gets the full tree of member types. This computes the closure of the set returned by getUnionMemberTypes(), so, for example, it returns all the types nested within unions of unions as well as the top-level members; the set also includes the type itself. If you are seeking only the basic non-union consituents, use getUnionConstituentTypes.Returns null if this type is not a union.
- Specified by:
getUnionSubTypesin interfaceSchemaType
-
getUnionCommonBaseType
Description copied from interface:SchemaTypeFor union types only: get the most specific common base type of the constituent member types. May return a UR type.Returns null if this type is not a union.
- Specified by:
getUnionCommonBaseTypein interfaceSchemaType
-
getSubstitutionGroup
-
setSubstitutionGroup
-
addSubstitutionGroupMember
-
getSubstitutionGroupMembers
-
getWhiteSpaceRule
public int getWhiteSpaceRule()Description copied from interface:SchemaTypeFor nonunion simple types: get the whitespace rule. This is eitherSchemaType.WS_PRESERVE,SchemaType.WS_REPLACE, orSchemaType.WS_COLLAPSE. ReturnsSchemaType.WS_UNSPECIFIEDfor unions and complex types.- Specified by:
getWhiteSpaceRulein interfaceSchemaType
-
setWhiteSpaceRule
public void setWhiteSpaceRule(int ws) -
getFacet
Description copied from interface:SchemaTypeReturns the value of the given facet, or null if none is set.- Specified by:
getFacetin interfaceSchemaType
-
isFacetFixed
public boolean isFacetFixed(int facetCode) Description copied from interface:SchemaTypeTrue if the given facet is fixed.- Specified by:
isFacetFixedin interfaceSchemaType
-
getBasicFacets
-
getFixedFacets
public boolean[] getFixedFacets() -
setBasicFacets
-
ordered
public int ordered()Description copied from interface:SchemaTypeTrue if ordered. Returns eitherSchemaType.UNORDERED,SchemaType.PARTIAL_ORDER, orSchemaType.TOTAL_ORDER.- Specified by:
orderedin interfaceSchemaType
-
setOrdered
public void setOrdered(int ordering) -
isBounded
public boolean isBounded()Description copied from interface:SchemaTypeTrue if bounded.- Specified by:
isBoundedin interfaceSchemaType
-
setBounded
public void setBounded(boolean f) -
isFinite
public boolean isFinite()Description copied from interface:SchemaTypeTrue if finite.- Specified by:
isFinitein interfaceSchemaType
-
setFinite
public void setFinite(boolean f) -
isNumeric
public boolean isNumeric()Description copied from interface:SchemaTypeTrue if numeric.- Specified by:
isNumericin interfaceSchemaType
-
setNumeric
public void setNumeric(boolean f) -
hasPatternFacet
public boolean hasPatternFacet()Description copied from interface:SchemaTypeTrue if there are regex pattern facents- Specified by:
hasPatternFacetin interfaceSchemaType
-
setPatternFacet
public void setPatternFacet(boolean hasPatterns) -
matchPatternFacet
Description copied from interface:SchemaTypeTrue if the given string matches the pattern facets. Always true if there are no pattern facets.- Specified by:
matchPatternFacetin interfaceSchemaType
-
getPatterns
Description copied from interface:SchemaTypeTrue- Specified by:
getPatternsin interfaceSchemaType
-
getPatternExpressions
-
setPatterns
-
getEnumerationValues
Description copied from interface:SchemaTypeReturns the array of valid objects from the enumeration facet, null if no enumeration defined.- Specified by:
getEnumerationValuesin interfaceSchemaType
-
setEnumerationValues
-
enumForString
Description copied from interface:SchemaTypeReturns 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.- Specified by:
enumForStringin interfaceSchemaType
-
enumForInt
Description copied from interface:SchemaTypeReturns 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.- Specified by:
enumForIntin interfaceSchemaType
-
enumEntryForString
Description copied from interface:SchemaTypeReturns 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.- Specified by:
enumEntryForStringin interfaceSchemaType
-
getBaseEnumType
Description copied from interface:SchemaTypeIf this is a string enumeration, returns the most basic base schema type that this enuemration is based on. Otherwise returns null.- Specified by:
getBaseEnumTypein interfaceSchemaType
-
setBaseEnumTypeRef
-
getStringEnumEntries
Description copied from interface:SchemaTypeReturns the array of SchemaStringEnumEntries for this type: this array includes information about the java constant names used for each string enum entry.- Specified by:
getStringEnumEntriesin interfaceSchemaType
-
setStringEnumEntries
-
hasStringEnumValues
public boolean hasStringEnumValues()Description copied from interface:SchemaTypeTrue if this is a string enum where an integer is assigned to each enumerated value.- Specified by:
hasStringEnumValuesin interfaceSchemaType
-
copyEnumerationValues
-
getBuiltinTypeCode
public int getBuiltinTypeCode()Description copied from interface:SchemaTypeReturns an integer for builtin types that can be used for quick comparison.- Specified by:
getBuiltinTypeCodein interfaceSchemaType
-
setBuiltinTypeCode
public void setBuiltinTypeCode(int builtinTypeCode) -
getJavaClass
Description copied from interface:SchemaTypeThe Java class corresponding to this schema type.- Specified by:
getJavaClassin interfaceSchemaType
-
getJavaImplClass
-
getJavaImplConstructor
-
getJavaImplConstructor2
-
getEnumJavaClass
Description copied from interface:SchemaTypeThe Java class corresponding to the enumeration type for this schema type, if applicable (or null if not an enumeration).- Specified by:
getEnumJavaClassin interfaceSchemaType
-
setJavaClass
-
isPrimitiveType
public boolean isPrimitiveType()Description copied from interface:SchemaTypeTrue for any of the 20 primitive types (plus anySimpleType)- Specified by:
isPrimitiveTypein interfaceSchemaType
-
isBuiltinType
public boolean isBuiltinType()Description copied from interface:SchemaTypeTrue for any of the 40+ built-in types.- Specified by:
isBuiltinTypein interfaceSchemaType
-
createUnwrappedNode
-
createTypeStoreUser
TypeStoreUserFactory implementation- Specified by:
createTypeStoreUserin interfaceTypeStoreUserFactory
-
newValidatingValue
-
newValue
Creates an immutable simple value.- Specified by:
newValuein interfaceSchemaType
-
newValue
-
getCommonBaseType
Description copied from interface:SchemaTypeReturns common base type with the given type. The returned type is the most specific declared base type of both types.- Specified by:
getCommonBaseTypein interfaceSchemaType
-
isAssignableFrom
Description copied from interface:SchemaTypeTrue if the specified type derives from this type (or if it is the same type).Note that XmlObject.type (the anyType) is assignable from all type, and the XmlBeans.noType (the absence of a type) is assignable to all types.
- Specified by:
isAssignableFromin interfaceSchemaType
-
toString
-
setParseContext
-
getParseObject
-
getTargetNamespace
-
isChameleon
public boolean isChameleon() -
getElemFormDefault
-
getAttFormDefault
-
getChameleonNamespace
-
isRedefinition
public boolean isRedefinition() -
getRef
Description copied from interface:SchemaTypeRetruns a SchemaType.Ref pointing to this schema type itself.- Specified by:
getRefin interfaceSchemaType
-
getComponentRef
Description copied from interface:SchemaComponentUsed for on-demand loading of schema components.- Specified by:
getComponentRefin interfaceSchemaComponent
-
qnameSetForWildcardElements
Returns a QNameSet of elements that may exist in wildcard buchets and are not explicitly defined in this schema type. Note: In this example:
the returned QNameSet will not contain the qname of 'someElement'.<xs:complexType name="exampleType"> <xs:sequence> <xs:element name="someElement" type='xs:string' /> <xs:any namespace="##targetNamespace" /> </xs:sequence> </xs:complexType>- Specified by:
qnameSetForWildcardElementsin interfaceSchemaType- Returns:
- the constructed QNameSet
-
qnameSetForWildcardAttributes
Returns a QNameSet of attributes that may exist in wildcard buchets and are not explicitly defined in this schema type. Note: In this example:
the returned QNameSet will not contain the qname of 'someAttribute'.<xs:complexType name="exampleType"> ... <xs:attribute name='someAttribute' type='xs:string' /> <xs:anyAttribute namespace="##targetNamespace" /> </xs:complexType>- Specified by:
qnameSetForWildcardAttributesin interfaceSchemaType- Returns:
- the constructed QNameSet
-
getDocumentation
Description copied from interface:SchemaTypereturns user specified documentation<xs:complexType ...> <xs:annotation> <xs:documentation> getDocumentation method will return whatever stuff here. </xs:docmentation> </xs:annotation> </xs complexType>- Specified by:
getDocumentationin interfaceSchemaType
-