Package org.apache.ws.commons.schema
Class XmlSchemaType
java.lang.Object
org.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchemaType
- All Implemented Interfaces:
XmlSchemaNamed,XmlSchemaObjectBase
- Direct Known Subclasses:
XmlSchemaComplexType,XmlSchemaSimpleType
The base class for all simple types and complex types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XmlSchemaDerivationMethodprivate XmlSchemaDerivationMethodprivate XmlSchemaDerivationMethodprivate booleanprivate XmlSchemaNamedImplFields inherited from class org.apache.ws.commons.schema.XmlSchemaObject
lineNumber, linePosition, sourceURI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmlSchemaType(XmlSchema schema, boolean topLevel) Creates new XmlSchemaType -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFinal()getName()Retrieve the name.Retrieve the parent schema.getQName()Get the QName for this object.inthashCode()booleanbooleanisMixed()booleanvoidsetDeriveBy(XmlSchemaDerivationMethod deriveBy) voidsetFinal(XmlSchemaDerivationMethod finalDerivationValue) voidsetFinalDerivation(XmlSchemaDerivationMethod finalDerivation) (package private) voidsetFinalResolved(XmlSchemaDerivationMethod finalResolved) voidsetMixed(boolean isMixedValue) voidSet the name.toString()Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributesMethods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
-
Field Details
-
deriveBy
-
finalDerivation
-
finalResolved
-
isMixed
private boolean isMixed -
namedDelegate
-
-
Constructor Details
-
XmlSchemaType
Creates new XmlSchemaType
-
-
Method Details
-
equals
- Overrides:
equalsin classXmlSchemaObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classXmlSchemaObject
-
getDeriveBy
-
getFinal
-
setFinal
-
getFinalResolved
-
isMixed
public boolean isMixed() -
setMixed
public void setMixed(boolean isMixedValue) -
toString
- Overrides:
toStringin classXmlSchemaAnnotated
-
getName
Description copied from interface:XmlSchemaNamedRetrieve the name.- Specified by:
getNamein interfaceXmlSchemaNamed- Returns:
- the local name of this object within its schema.
-
getParent
Description copied from interface:XmlSchemaNamedRetrieve the parent schema.- Specified by:
getParentin interfaceXmlSchemaNamed- Returns:
- the containing schema.
-
getQName
Description copied from interface:XmlSchemaNamedGet the QName for this object. This is always the formal name that identifies this item in the schema. If the item has a form (an element or attribute), and the form is 'unqualified', this is not the appropriate QName in an instance document. For those items, the getWiredName method returns the appropriate QName for an instance document.- Specified by:
getQNamein interfaceXmlSchemaNamed- Returns:
- The qualified name of this object.
- See Also:
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceXmlSchemaNamed- Returns:
- true if this object has no name.
-
isTopLevel
public boolean isTopLevel()- Specified by:
isTopLevelin interfaceXmlSchemaNamed- Returns:
- true if this item is a top-level item of the schema; false if this item is nested inside of some other schema object.
-
setName
Description copied from interface:XmlSchemaNamedSet the name. Set to null to render the object anonymous, or to prepare to change it to refer to some other object.- Specified by:
setNamein interfaceXmlSchemaNamed- Parameters:
name- the name.
-
setFinalResolved
-
setFinalDerivation
-
getFinalDerivation
-
setDeriveBy
-