com.jaxfront.core.xpath.schema
Class DummySchemaRoot

java.lang.Object
  extended by com.jaxfront.core.schema.impl.SchemaNodeImpl
      extended by com.jaxfront.core.xpath.schema.DummySchemaRoot
All Implemented Interfaces:
QName, SchemaNode

public class DummySchemaRoot
extends SchemaNodeImpl


Field Summary
 
Fields inherited from class com.jaxfront.core.schema.impl.SchemaNodeImpl
GLOBAL_ATTRIBUTE, GLOBAL_ATTRIBUTEGROUP, GLOBAL_ELEMENT, GLOBAL_GROUP, GLOBAL_TYPE, UNNAMED_ELEMENT
 
Fields inherited from interface com.jaxfront.core.schema.SchemaNode
NODE_ELEMENT, NODE_TYPE
 
Constructor Summary
DummySchemaRoot(XMLSchema schema, java.lang.String name, java.util.List childs)
           
DummySchemaRoot(org.apache.xerces.xs.XSObject node, XMLSchema schema, int minOccurs, int maxOccurs, int unnamedCounter, SchemaNode parent)
           
 
Method Summary
 SchemaNode[] getElementSet()
          Returns the element set from the underlying schematype.
 java.lang.String getName()
          Returns the name specified in the XML Schema (without namespace prefix)
 java.lang.String getQName()
          Returns the name specified in the XML Schema (including namespace prefix).
 java.lang.String getTargetNS()
          Returns the target namespace.
 boolean isSimple()
          Returns true if this element is a leaf.
 
Methods inherited from class com.jaxfront.core.schema.impl.SchemaNodeImpl
createQName, finalAnalyse, getAnnotation, getAnonymousGroupIndex, getDefaultValue, getFixedValue, getLocation, getMaxOccurs, getMinOccurs, getNamespace, getNamespacePrefix, getNode, getParent, getRefName, getRoot, getSchema, getSchemaKeyRefs, getSchemaKeys, getSchemaType, getSubElement, getXPath, getXPath, hasExtension, hasSchemaKeyRefs, hasSchemaKeys, hasType, hasUnnamedOptionalParent, isAnonymous, isChoice, isGlobal, isGlobalAttribute, isGlobalAttributeGroup, isGlobalElement, isGlobalGroup, isGlobalReference, isGlobalType, isGroup, isReferenceToGlobalElement, isReferenceToGlobalGroup, isReferenceToGlobalType, isReferenceWithNoExtension, isRequired, markAsOptional, markAsUnnamedOptionalParent, putSchemaKey, putSchemaKeyRef, release, setAnonymousGroupIndex, setGroupRefName, setName, setSchemaType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummySchemaRoot

public DummySchemaRoot(org.apache.xerces.xs.XSObject node,
                       XMLSchema schema,
                       int minOccurs,
                       int maxOccurs,
                       int unnamedCounter,
                       SchemaNode parent)

DummySchemaRoot

public DummySchemaRoot(XMLSchema schema,
                       java.lang.String name,
                       java.util.List childs)
Method Detail

getElementSet

public SchemaNode[] getElementSet()
Description copied from interface: SchemaNode
Returns the element set from the underlying schematype.

Specified by:
getElementSet in interface SchemaNode
Overrides:
getElementSet in class SchemaNodeImpl

getName

public java.lang.String getName()
Description copied from interface: SchemaNode
Returns the name specified in the XML Schema (without namespace prefix)

Specified by:
getName in interface QName
Specified by:
getName in interface SchemaNode
Overrides:
getName in class SchemaNodeImpl
Returns:
the name specified in the XML Schema (without namespace prefix)
See Also:
SchemaNode.getName()

getQName

public java.lang.String getQName()
Description copied from interface: SchemaNode
Returns the name specified in the XML Schema (including namespace prefix).

Specified by:
getQName in interface QName
Specified by:
getQName in interface SchemaNode
Overrides:
getQName in class SchemaNodeImpl
Returns:
the name specified in the XML Schema (including namespace prefix)

isSimple

public boolean isSimple()
Description copied from class: SchemaNodeImpl
Returns true if this element is a leaf.

Specified by:
isSimple in interface SchemaNode
Overrides:
isSimple in class SchemaNodeImpl

getTargetNS

public java.lang.String getTargetNS()
Description copied from class: SchemaNodeImpl
Returns the target namespace.

Specified by:
getTargetNS in interface SchemaNode
Overrides:
getTargetNS in class SchemaNodeImpl