com.jaxfront.core.schema
Interface SchemaType

All Superinterfaces:
QName
All Known Subinterfaces:
SchemaComplexType, SchemaSimpleType
All Known Implementing Classes:
SchemaComplexTypeImpl, SchemaSimpleTypeImpl

public interface SchemaType
extends QName

Represent an abstract XML schema type (for complex or simple types).


Field Summary
static java.lang.String NO_NAME
           
 
Method Summary
 void addRecursiveElement(SchemaNode schemaElement)
           
 int countSubNodes()
          Returns the number of subnodes.
 java.lang.String getBaseName()
          Returns the base name (if type is an extension or restriction) of the inherited type.
 int getChoiceMaxOccurs()
          Returns the max occurs of a choice element defined in xsd schema.
 int getChoiceMinOccurs()
          Returns the min occurs of a choice element defined in xsd schema.
 java.lang.String getName()
          Returns the name of this type.
 java.lang.String getNamespacePrefix()
           
 java.lang.Object getParserXSDNode()
          Returns the XML Schema node from an underlying schema parser. e.q.: oracle.xml.parser.schema.XSDNode
 java.lang.String getQName()
          Returns the name of this type.
 java.lang.String[] getRecursiveElementNames()
          Returns the name of the recursive start element if any otherwise return null.
 SchemaNode[] getRecursiveElements()
          Returns a recursive start element or null.
 SchemaNode getSchemaElement()
          Returns the holding Schema Element.
 Type getType()
          Returns the analysed JAXFront Type.
 boolean hasBeenAnalysed()
          Indicates if this schema type has been analysed yet.
 boolean isAbstract()
          Indicates if this schema type is abstract.
 boolean isChoice()
          Returns true if this schema type is a choice.
 boolean isEmptyComplexType()
          Returns true if this type is an empty complex type.
 boolean isGlobal()
          Returns true if this type is a global type.
 boolean isGroup()
          Returns true if this schema type is a group.
 boolean isMixedContent()
          Returns true if this schema type is a simple text content.
 boolean isRecursive()
           
 boolean isSimple()
          Returns true if this schema type is simple.
 void release()
          Releases all allocated resources for this type.
 void setIsSimpleContent(boolean simpleContentFlag)
          Marks this schema type as a simple content text.
 void setRecursive(boolean isRecursion)
           
 void setType(Type type)
          Sets the analysed JAXFront type.
 
Methods inherited from interface com.jaxfront.core.schema.QName
getNamespace, getRefName
 

Field Detail

NO_NAME

static final java.lang.String NO_NAME
See Also:
Constant Field Values
Method Detail

addRecursiveElement

void addRecursiveElement(SchemaNode schemaElement)

countSubNodes

int countSubNodes()
Returns the number of subnodes.


getBaseName

java.lang.String getBaseName()
Returns the base name (if type is an extension or restriction) of the inherited type.


getChoiceMaxOccurs

int getChoiceMaxOccurs()
Returns the max occurs of a choice element defined in xsd schema.


getChoiceMinOccurs

int getChoiceMinOccurs()
Returns the min occurs of a choice element defined in xsd schema.


getName

java.lang.String getName()
Returns the name of this type.

Specified by:
getName in interface QName

getNamespacePrefix

java.lang.String getNamespacePrefix()

getParserXSDNode

java.lang.Object getParserXSDNode()
Returns the XML Schema node from an underlying schema parser. e.q.: oracle.xml.parser.schema.XSDNode


getQName

java.lang.String getQName()
Returns the name of this type.

Specified by:
getQName in interface QName

getRecursiveElementNames

java.lang.String[] getRecursiveElementNames()
Returns the name of the recursive start element if any otherwise return null.


getRecursiveElements

SchemaNode[] getRecursiveElements()
Returns a recursive start element or null.


getSchemaElement

SchemaNode getSchemaElement()
Returns the holding Schema Element.


getType

Type getType()
Returns the analysed JAXFront Type.


hasBeenAnalysed

boolean hasBeenAnalysed()
Indicates if this schema type has been analysed yet.


isAbstract

boolean isAbstract()
Indicates if this schema type is abstract.


isChoice

boolean isChoice()
Returns true if this schema type is a choice.


isEmptyComplexType

boolean isEmptyComplexType()
Returns true if this type is an empty complex type.


isGlobal

boolean isGlobal()
Returns true if this type is a global type.


isGroup

boolean isGroup()
Returns true if this schema type is a group.


isMixedContent

boolean isMixedContent()
Returns true if this schema type is a simple text content.


isRecursive

boolean isRecursive()

isSimple

boolean isSimple()
Returns true if this schema type is simple.


release

void release()
Releases all allocated resources for this type.


setIsSimpleContent

void setIsSimpleContent(boolean simpleContentFlag)
Marks this schema type as a simple content text.


setRecursive

void setRecursive(boolean isRecursion)

setType

void setType(Type type)
Sets the analysed JAXFront type.