|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.schema.impl.SchemaComplexTypeImpl
public class SchemaComplexTypeImpl
Represents a XML Schema complex type. Holds an oracle XSD Node from the oracle Schema Parser (oracle.xml.parser.schema.XSDNode).
Field Summary |
---|
Fields inherited from interface com.jaxfront.core.schema.SchemaType |
---|
NO_NAME |
Constructor Summary | |
---|---|
SchemaComplexTypeImpl(java.lang.String nameSpace,
java.lang.String name,
XMLSchema schema,
SchemaNode element)
|
|
SchemaComplexTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSAttributeGroupDefinition attrGroup,
XMLSchema schema,
SchemaNode element)
Creates a SchemaComplexType based on a oracle XSDNode, a XMLSchema and a SchemaNode. |
|
SchemaComplexTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSModelGroup unnamedNode,
XMLSchema schema,
SchemaNode element)
Creates a SchemaComplexType based on a oracle XSDNode, a XMLSchema and a SchemaNode. |
|
SchemaComplexTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaComplexType based on a oracle XSDNode, a XMLSchema and a SchemaNode. |
|
SchemaComplexTypeImpl(org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaComplexType based on a oracle XSDNode, a XMLSchema and a SchemaNode. |
Method Summary | |
---|---|
void |
addRecursiveElement(SchemaNode element)
|
int |
countSubNodes()
Returns the number of subnodes. |
static java.lang.String |
createQName(java.lang.String nameSpace,
java.lang.String name)
|
SchemaNode[] |
getAttributeSet()
Returns all attributes which are defined for this complex type. |
java.lang.String |
getBaseName()
Returns the base name (if type is an extension or restriction) of the inherited type. |
SchemaNode |
getChild(java.lang.String name)
|
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. |
SchemaNode[] |
getElementSet()
Returns all agregated child elements. |
java.lang.String |
getName()
Returns the name of this type. |
java.lang.String |
getNamespace()
|
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. |
java.lang.String |
getRefName()
|
SchemaNode |
getSchemaElement()
Returns the holding Schema Element. |
SchemaSimpleType |
getSimpleContent()
Returns the simple text content of this complex type if available else return null. |
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 |
isAnonymous()
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaComplexTypeImpl(java.lang.String nameSpace, java.lang.String name, org.apache.xerces.xs.XSTypeDefinition node, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema Elementpublic SchemaComplexTypeImpl(java.lang.String nameSpace, java.lang.String name, org.apache.xerces.xs.XSModelGroup unnamedNode, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema Elementpublic SchemaComplexTypeImpl(java.lang.String nameSpace, java.lang.String name, org.apache.xerces.xs.XSAttributeGroupDefinition attrGroup, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema Elementpublic SchemaComplexTypeImpl(java.lang.String nameSpace, java.lang.String name, XMLSchema schema, SchemaNode element)
public SchemaComplexTypeImpl(org.apache.xerces.xs.XSTypeDefinition node, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema ElementMethod Detail |
---|
public SchemaNode[] getAttributeSet()
getAttributeSet
in interface SchemaComplexType
public java.lang.String getBaseName()
getBaseName
in interface SchemaType
public SchemaNode[] getElementSet()
getElementSet
in interface SchemaComplexType
public java.lang.String getQName()
getQName
in interface QName
getQName
in interface SchemaType
public java.lang.Object getParserXSDNode()
getParserXSDNode
in interface SchemaType
public void addRecursiveElement(SchemaNode element)
addRecursiveElement
in interface SchemaType
public SchemaNode[] getRecursiveElements()
getRecursiveElements
in interface SchemaType
public SchemaNode getChild(java.lang.String name)
public SchemaSimpleType getSimpleContent()
getSimpleContent
in interface SchemaComplexType
public Type getType()
getType
in interface SchemaType
public boolean hasBeenAnalysed()
hasBeenAnalysed
in interface SchemaType
public int getChoiceMinOccurs()
SchemaType
getChoiceMinOccurs
in interface SchemaType
public int getChoiceMaxOccurs()
SchemaType
getChoiceMaxOccurs
in interface SchemaType
public boolean isAnonymous()
public boolean isAbstract()
isAbstract
in interface SchemaType
public boolean isChoice()
isChoice
in interface SchemaType
public boolean isGroup()
isGroup
in interface SchemaType
public boolean isSimple()
isSimple
in interface SchemaType
public boolean isMixedContent()
isMixedContent
in interface SchemaType
public void setIsSimpleContent(boolean simpleContentFlag)
setIsSimpleContent
in interface SchemaType
public void setType(Type type)
setType
in interface SchemaType
public java.lang.String toString()
toString
in class java.lang.Object
public void release()
SchemaType
release
in interface SchemaType
SchemaType.release()
public boolean isGlobal()
SchemaType
isGlobal
in interface SchemaType
SchemaType.isGlobal()
public int countSubNodes()
SchemaType
countSubNodes
in interface SchemaType
public SchemaNode getSchemaElement()
SchemaType
getSchemaElement
in interface SchemaType
public boolean isEmptyComplexType()
SchemaType
isEmptyComplexType
in interface SchemaType
public boolean isRecursive()
isRecursive
in interface SchemaType
public java.lang.String[] getRecursiveElementNames()
getRecursiveElementNames
in interface SchemaType
public void setRecursive(boolean isRecursion)
setRecursive
in interface SchemaType
public java.lang.String getNamespace()
getNamespace
in interface QName
public java.lang.String getRefName()
getRefName
in interface QName
public static java.lang.String createQName(java.lang.String nameSpace, java.lang.String name)
public java.lang.String getName()
SchemaType
getName
in interface QName
getName
in interface SchemaType
public java.lang.String getNamespacePrefix()
getNamespacePrefix
in interface SchemaType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |