oracle.xml.parser.schema
Class XSDElement

oracle.xml.parser.schema.XSDElement

public class XSDElement

XSDElement class. Represents XMLSchema and


Method Summary
 XSDElement findEquivClass(java.lang.String ns, java.lang.String nm)
          Find the equiv class corresponding to this class
 java.lang.String getDefaultVal()
          Get the value of 'default' attr in case of element, and the value of 'value' attr based on 'use' attribute
 java.lang.String getEquivClassRef()
          Get the local name of the resolved equiv class
 java.lang.String getFixedVal()
          Get the value of 'fixed' attr in case of element, and the value of 'value' attr based on 'use' attribute
 XSDIdentity[] getIdentities()
          Returns the set of identities
 int getMaxOccurs()
          Get the maxOccurs
 int getMinOccurs()
          Get the minOccurs
 java.lang.String getName()
          Get the name of the node
 java.lang.String getRefLocalname()
          Get the local name of the resolved 'ref' attribute
 java.lang.String getRefNamespace()
          Get the namespace of the resolved 'ref' attribute
 int getRefState()
          Get refState.
 java.util.Vector getSubstitutionGroup()
          Get the substitutionGroup
 java.lang.String getTargetNS()
          Get target namespace
 XSDNode getType()
          Get the node type
 boolean isAbstract()
           
 boolean isNullable()
           
 void setMaxOccurs(int max)
          Set the maxOccurs
 void setMinOccurs(int min)
          Set the minOccurs
 

Method Detail

isAbstract

public boolean isAbstract()

getIdentities

public XSDIdentity[] getIdentities()
Returns the set of identities
Returns:
array of identities

getEquivClassRef

public java.lang.String getEquivClassRef()
Get the local name of the resolved equiv class
Returns:
equivRefLocalname

getRefState

public int getRefState()
Get refState. The return value is one of the following: TYPE_UNRESOLVED, TYPE_RESOLVED, REF_UNRESOLVED, REF_RESOLVED
Returns:
refstate value

getMinOccurs

public int getMinOccurs()
Get the minOccurs
Returns:
minOccurs value

getMaxOccurs

public int getMaxOccurs()
Get the maxOccurs
Returns:
maxOccurs

setMinOccurs

public void setMinOccurs(int min)
Set the minOccurs
Parameters:
minOccurs - value

setMaxOccurs

public void setMaxOccurs(int max)
Set the maxOccurs
Parameters:
maxOccurs - value

getSubstitutionGroup

public java.util.Vector getSubstitutionGroup()
Get the substitutionGroup

findEquivClass

public XSDElement findEquivClass(java.lang.String ns,
                                 java.lang.String nm)
Find the equiv class corresponding to this class
Returns:
XSDElement

isNullable

public boolean isNullable()

getDefaultVal

public java.lang.String getDefaultVal()
Get the value of 'default' attr in case of element, and the value of 'value' attr based on 'use' attribute
Returns:
defalutVal

getFixedVal

public java.lang.String getFixedVal()
Get the value of 'fixed' attr in case of element, and the value of 'value' attr based on 'use' attribute
Returns:
defalutVal

getName

public java.lang.String getName()
Get the name of the node
Returns:
name

getRefNamespace

public java.lang.String getRefNamespace()
Get the namespace of the resolved 'ref' attribute
Returns:
refNamespace

getRefLocalname

public java.lang.String getRefLocalname()
Get the local name of the resolved 'ref' attribute
Returns:
refLocalname

getTargetNS

public java.lang.String getTargetNS()
Get target namespace

getType

public XSDNode getType()
Get the node type
Returns:
nodeType which is either simpleTypeor complexType