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).

Version:
1.60

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.
 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

getBaseName

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


getQName

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

Specified by:
getQName in interface QName

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


getRecursiveElements

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


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.


getChoiceMinOccurs

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


getChoiceMaxOccurs

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


isGroup

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


isSimple

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


isMixedContent

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


setIsSimpleContent

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


setType

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


release

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


isGlobal

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


countSubNodes

int countSubNodes()
Returns the number of subnodes.


getSchemaElement

SchemaNode getSchemaElement()
Returns the holding Schema Element.


isEmptyComplexType

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


isRecursive

boolean isRecursive()

setRecursive

void setRecursive(boolean isRecursion)

addRecursiveElement

void addRecursiveElement(SchemaNode schemaElement)

getRecursiveElementNames

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