org.apache.ws.commons.schema
Class XmlSchemaElement

java.lang.Object
  extended by org.apache.ws.commons.schema.XmlSchemaObject
      extended by org.apache.ws.commons.schema.XmlSchemaAnnotated
          extended by org.apache.ws.commons.schema.XmlSchemaParticle
              extended by org.apache.ws.commons.schema.XmlSchemaElement
All Implemented Interfaces:
TypeReceiver

public class XmlSchemaElement
extends XmlSchemaParticle
implements TypeReceiver

Class for elements. Represents the World Wide Web Consortium (W3C) element element.


Field Summary
(package private)  XmlSchemaDerivationMethod block
          Attribute used to block a type derivation.
(package private)  XmlSchemaDerivationMethod blockResolved
          The value after an element has been compiled to post-schema infoset.
(package private)  XmlSchemaObjectCollection constraints
           
(package private)  java.lang.String defaultValue
          Provides the default value of the element if its content is a simple type or the element's content is textOnly.
(package private)  java.lang.Object elementType
          Returns the correct common runtime library object based upon the SchemaType for the element.
(package private)  XmlSchemaDerivationMethod finalDerivation
           
(package private)  XmlSchemaDerivationMethod finalDerivationResolved
           
(package private)  java.lang.String fixedValue
           
(package private)  XmlSchemaForm form
          The default value is the value of the elementFormDefault attribute for the schema element containing the attribute.
(package private)  boolean isAbstract
           
(package private)  boolean isNillable
           
(package private)  java.lang.String name
           
(package private)  javax.xml.namespace.QName qualifiedName
           
(package private)  javax.xml.namespace.QName refName
           
(package private)  XmlSchemaType schemaType
          Returns the type of the element.
(package private)  javax.xml.namespace.QName schemaTypeName
          QName of a built-in data type defined in this schema or another schema indicated by the specified namespace.
(package private)  javax.xml.namespace.QName substitutionGroup
          QName of an element that can be a substitute for this element.
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
maxOccurs, maxOccursString, minOccurs, minOccursString
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
annotation, id, unhandledAttributes
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaObject
lineNumber, linePosition, sourceURI
 
Constructor Summary
XmlSchemaElement()
          Creates new XmlSchemaElement
 
Method Summary
 XmlSchemaDerivationMethod getBlock()
           
 XmlSchemaDerivationMethod getBlockResolved()
           
 XmlSchemaObjectCollection getConstraints()
          Returns a collection of constraints on the element.
 java.lang.String getDefaultValue()
           
 java.lang.Object getElementType()
           
 XmlSchemaDerivationMethod getFinal()
           
 java.lang.String getFixedValue()
           
 XmlSchemaForm getForm()
           
 java.lang.String getName()
           
 javax.xml.namespace.QName getQName()
           
 javax.xml.namespace.QName getRefName()
           
 XmlSchemaType getSchemaType()
           
 javax.xml.namespace.QName getSchemaTypeName()
           
 javax.xml.namespace.QName getSubstitutionGroup()
           
 boolean isAbstract()
           
 boolean isNillable()
           
 void setAbstract(boolean isAbstract)
           
 void setBlock(XmlSchemaDerivationMethod block)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setFinal(XmlSchemaDerivationMethod finalDerivation)
           
 void setFixedValue(java.lang.String fixedValue)
           
 void setForm(XmlSchemaForm form)
           
 void setName(java.lang.String name)
           
 void setNillable(boolean isNillable)
           
 void setQName(javax.xml.namespace.QName qualifiedName)
           
 void setRefName(javax.xml.namespace.QName refName)
           
 void setSchemaType(XmlSchemaType schemaType)
           
 void setSchemaTypeName(javax.xml.namespace.QName schemaTypeName)
           
 void setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)
           
 void setType(XmlSchemaType type)
           
 java.lang.String toString(java.lang.String prefix, int tab)
           
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaParticle
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
equals, getLineNumber, getLinePosition, getSourceURI, setLineNumber, setLinePosition, setSourceURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

block

XmlSchemaDerivationMethod block
Attribute used to block a type derivation.


blockResolved

XmlSchemaDerivationMethod blockResolved
The value after an element has been compiled to post-schema infoset. This value is either from the type itself or, if not defined on the type, taken from the schema element.


constraints

XmlSchemaObjectCollection constraints

defaultValue

java.lang.String defaultValue
Provides the default value of the element if its content is a simple type or the element's content is textOnly.


fixedValue

java.lang.String fixedValue

elementType

java.lang.Object elementType
Returns the correct common runtime library object based upon the SchemaType for the element.


finalDerivation

XmlSchemaDerivationMethod finalDerivation

finalDerivationResolved

XmlSchemaDerivationMethod finalDerivationResolved

form

XmlSchemaForm form
The default value is the value of the elementFormDefault attribute for the schema element containing the attribute. The default is Unqualified.


isAbstract

boolean isAbstract

isNillable

boolean isNillable

name

java.lang.String name

qualifiedName

javax.xml.namespace.QName qualifiedName

refName

javax.xml.namespace.QName refName

schemaType

XmlSchemaType schemaType
Returns the type of the element. This can either be a complex type or a simple type.


schemaTypeName

javax.xml.namespace.QName schemaTypeName
QName of a built-in data type defined in this schema or another schema indicated by the specified namespace.


substitutionGroup

javax.xml.namespace.QName substitutionGroup
QName of an element that can be a substitute for this element.

Constructor Detail

XmlSchemaElement

public XmlSchemaElement()
Creates new XmlSchemaElement

Method Detail

getConstraints

public XmlSchemaObjectCollection getConstraints()
Returns a collection of constraints on the element.


getDefaultValue

public java.lang.String getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

getBlock

public XmlSchemaDerivationMethod getBlock()

setBlock

public void setBlock(XmlSchemaDerivationMethod block)

getFinal

public XmlSchemaDerivationMethod getFinal()

setFinal

public void setFinal(XmlSchemaDerivationMethod finalDerivation)

getBlockResolved

public XmlSchemaDerivationMethod getBlockResolved()

getFixedValue

public java.lang.String getFixedValue()

setFixedValue

public void setFixedValue(java.lang.String fixedValue)

getElementType

public java.lang.Object getElementType()

getForm

public XmlSchemaForm getForm()

setForm

public void setForm(XmlSchemaForm form)

isAbstract

public boolean isAbstract()

setAbstract

public void setAbstract(boolean isAbstract)

isNillable

public boolean isNillable()

setNillable

public void setNillable(boolean isNillable)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getRefName

public javax.xml.namespace.QName getRefName()

setRefName

public void setRefName(javax.xml.namespace.QName refName)

getQName

public javax.xml.namespace.QName getQName()

setQName

public void setQName(javax.xml.namespace.QName qualifiedName)

getSchemaType

public XmlSchemaType getSchemaType()

setSchemaType

public void setSchemaType(XmlSchemaType schemaType)

getSchemaTypeName

public javax.xml.namespace.QName getSchemaTypeName()

setSchemaTypeName

public void setSchemaTypeName(javax.xml.namespace.QName schemaTypeName)

getSubstitutionGroup

public javax.xml.namespace.QName getSubstitutionGroup()

setSubstitutionGroup

public void setSubstitutionGroup(javax.xml.namespace.QName substitutionGroup)

toString

public java.lang.String toString(java.lang.String prefix,
                                 int tab)
Overrides:
toString in class XmlSchemaObject

setType

public void setType(XmlSchemaType type)
Specified by:
setType in interface TypeReceiver


Copyright 2004-2004-2006 Apache Software Foundation. All Rights Reserved.