org.apache.ws.commons.schema
Class XmlSchemaType

java.lang.Object
  extended by org.apache.ws.commons.schema.XmlSchemaObject
      extended by org.apache.ws.commons.schema.XmlSchemaAnnotated
          extended by org.apache.ws.commons.schema.XmlSchemaType
All Implemented Interfaces:
XmlSchemaNamed, XmlSchemaObjectBase
Direct Known Subclasses:
XmlSchemaComplexType, XmlSchemaSimpleType

public abstract class XmlSchemaType
extends XmlSchemaAnnotated
implements XmlSchemaNamed

The base class for all simple types and complex types.


Constructor Summary
protected XmlSchemaType(XmlSchema schema, boolean topLevel)
          Creates new XmlSchemaType
 
Method Summary
 boolean equals(Object what)
           
 XmlSchemaDerivationMethod getDeriveBy()
           
 XmlSchemaDerivationMethod getFinal()
           
 XmlSchemaDerivationMethod getFinalDerivation()
           
 XmlSchemaDerivationMethod getFinalResolved()
           
 String getName()
          Retrieve the name.
 XmlSchema getParent()
          Retrieve the parent schema.
 QName getQName()
          Get the QName for this object.
 int hashCode()
           
 boolean isAnonymous()
           
 boolean isMixed()
           
 boolean isTopLevel()
           
 void setDeriveBy(XmlSchemaDerivationMethod deriveBy)
           
 void setFinal(XmlSchemaDerivationMethod finalDerivationValue)
           
 void setFinalDerivation(XmlSchemaDerivationMethod finalDerivation)
           
 void setMixed(boolean isMixedValue)
           
 void setName(String name)
          Set the name.
 String toString()
           
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlSchemaType

protected XmlSchemaType(XmlSchema schema,
                        boolean topLevel)
Creates new XmlSchemaType

Method Detail

equals

public boolean equals(Object what)
Overrides:
equals in class XmlSchemaObject

hashCode

public int hashCode()
Overrides:
hashCode in class XmlSchemaObject

getDeriveBy

public XmlSchemaDerivationMethod getDeriveBy()

getFinal

public XmlSchemaDerivationMethod getFinal()

setFinal

public void setFinal(XmlSchemaDerivationMethod finalDerivationValue)

getFinalResolved

public XmlSchemaDerivationMethod getFinalResolved()

isMixed

public boolean isMixed()

setMixed

public void setMixed(boolean isMixedValue)

toString

public String toString()
Overrides:
toString in class XmlSchemaAnnotated

getName

public String getName()
Description copied from interface: XmlSchemaNamed
Retrieve the name.

Specified by:
getName in interface XmlSchemaNamed
Returns:
the local name of this object within its schema.

getParent

public XmlSchema getParent()
Description copied from interface: XmlSchemaNamed
Retrieve the parent schema.

Specified by:
getParent in interface XmlSchemaNamed
Returns:
the containing schema.

getQName

public QName getQName()
Description copied from interface: XmlSchemaNamed
Get 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:
getQName in interface XmlSchemaNamed
Returns:
The qualified name of this object.
See Also:
XmlSchemaNamedWithForm.getWireName()

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface XmlSchemaNamed
Returns:
true if this object has no name.

isTopLevel

public boolean isTopLevel()
Specified by:
isTopLevel in interface XmlSchemaNamed
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

public void setName(String name)
Description copied from interface: XmlSchemaNamed
Set the name. Set to null to render the object anonymous, or to prepare to change it to refer to some other object.

Specified by:
setName in interface XmlSchemaNamed
Parameters:
name - the name.

setFinalDerivation

public void setFinalDerivation(XmlSchemaDerivationMethod finalDerivation)

getFinalDerivation

public XmlSchemaDerivationMethod getFinalDerivation()

setDeriveBy

public void setDeriveBy(XmlSchemaDerivationMethod deriveBy)


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.