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
 
Fields inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
unhandledAttributes
 
Constructor Summary
XmlSchemaElement()
          Creates new XmlSchemaElement
 
Method Summary
 XmlSchemaDerivationMethod getBlock()
           
 XmlSchemaDerivationMethod getBlockResolved()
           
 XmlSchemaObjectCollection getConstraints()
          Returns a collection of constraints on the element.
 String getDefaultValue()
           
 Object getElementType()
           
 XmlSchemaDerivationMethod getFinal()
           
 String getFixedValue()
           
 XmlSchemaForm getForm()
           
 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(String defaultValue)
           
 void setFinal(XmlSchemaDerivationMethod finalDerivation)
           
 void setFixedValue(String fixedValue)
           
 void setForm(XmlSchemaForm form)
           
 void setName(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)
           
 String toString(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, toString
 
Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlSchemaElement

public XmlSchemaElement()
Creates new XmlSchemaElement

Method Detail

getConstraints

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


getDefaultValue

public String getDefaultValue()

setDefaultValue

public void setDefaultValue(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 String getFixedValue()

setFixedValue

public void setFixedValue(String fixedValue)

getElementType

public 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 String getName()

setName

public void setName(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 String toString(String prefix,
                       int tab)
Overrides:
toString in class XmlSchemaObject

setType

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


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.