|
||||||||||
| 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 Element
public 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 Element
public 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 Element
public 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 Element| Method Detail |
|---|
public SchemaNode[] getAttributeSet()
getAttributeSet in interface SchemaComplexTypepublic java.lang.String getBaseName()
getBaseName in interface SchemaTypepublic SchemaNode[] getElementSet()
getElementSet in interface SchemaComplexTypepublic java.lang.String getQName()
getQName in interface QNamegetQName in interface SchemaTypepublic java.lang.Object getParserXSDNode()
getParserXSDNode in interface SchemaTypepublic void addRecursiveElement(SchemaNode element)
addRecursiveElement in interface SchemaTypepublic SchemaNode[] getRecursiveElements()
getRecursiveElements in interface SchemaTypepublic SchemaNode getChild(java.lang.String name)
public SchemaSimpleType getSimpleContent()
getSimpleContent in interface SchemaComplexTypepublic Type getType()
getType in interface SchemaTypepublic boolean hasBeenAnalysed()
hasBeenAnalysed in interface SchemaTypepublic int getChoiceMinOccurs()
SchemaType
getChoiceMinOccurs in interface SchemaTypepublic int getChoiceMaxOccurs()
SchemaType
getChoiceMaxOccurs in interface SchemaTypepublic boolean isAnonymous()
public boolean isAbstract()
isAbstract in interface SchemaTypepublic boolean isChoice()
isChoice in interface SchemaTypepublic boolean isGroup()
isGroup in interface SchemaTypepublic boolean isSimple()
isSimple in interface SchemaTypepublic boolean isMixedContent()
isMixedContent in interface SchemaTypepublic void setIsSimpleContent(boolean simpleContentFlag)
setIsSimpleContent in interface SchemaTypepublic void setType(Type type)
setType in interface SchemaTypepublic java.lang.String toString()
toString in class java.lang.Objectpublic void release()
SchemaType
release in interface SchemaTypeSchemaType.release()public boolean isGlobal()
SchemaType
isGlobal in interface SchemaTypeSchemaType.isGlobal()public int countSubNodes()
SchemaType
countSubNodes in interface SchemaTypepublic SchemaNode getSchemaElement()
SchemaType
getSchemaElement in interface SchemaTypepublic boolean isEmptyComplexType()
SchemaType
isEmptyComplexType in interface SchemaTypepublic boolean isRecursive()
isRecursive in interface SchemaTypepublic java.lang.String[] getRecursiveElementNames()
getRecursiveElementNames in interface SchemaTypepublic void setRecursive(boolean isRecursion)
setRecursive in interface SchemaTypepublic java.lang.String getNamespace()
getNamespace in interface QNamepublic 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 QNamegetName in interface SchemaTypepublic java.lang.String getNamespacePrefix()
getNamespacePrefix in interface SchemaType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||