org.apache.ws.commons.schema.utils
Class XmlSchemaNamedWithFormImpl

java.lang.Object
  extended by org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
      extended by org.apache.ws.commons.schema.utils.XmlSchemaNamedWithFormImpl
All Implemented Interfaces:
XmlSchemaNamed, XmlSchemaNamedWithForm, XmlSchemaObjectBase

public class XmlSchemaNamedWithFormImpl
extends XmlSchemaNamedImpl
implements XmlSchemaNamedWithForm


Field Summary
 
Fields inherited from class org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
parentSchema, refTwin
 
Constructor Summary
XmlSchemaNamedWithFormImpl(XmlSchema parent, boolean topLevel, boolean element)
          Delegate object for managing names for attributes and elements.
 
Method Summary
 boolean equals(Object what)
           
 XmlSchemaForm getForm()
          Return the effective 'form' for this item.
 QName getWireName()
          The name of this item as it is sent 'over the wire' or stored in an XML file.
 int hashCode()
           
 boolean isFormSpecified()
          True if this item has a specified form, false if it inherits from the parent schema.
 void setForm(XmlSchemaForm form)
          Set the schema form.
 void setName(String name)
          Set the name.
 
Methods inherited from class org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
getName, getParent, getQName, isAnonymous, isTopLevel, setRefObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.commons.schema.utils.XmlSchemaNamed
getName, getParent, getQName, isAnonymous, isTopLevel
 

Constructor Detail

XmlSchemaNamedWithFormImpl

public XmlSchemaNamedWithFormImpl(XmlSchema parent,
                                  boolean topLevel,
                                  boolean element)
Delegate object for managing names for attributes and elements.

Parameters:
parent - containing schema.
topLevel - if this object is global.
element - true for an element, false for an attribute.
Method Detail

equals

public boolean equals(Object what)
Overrides:
equals in class XmlSchemaNamedImpl

hashCode

public int hashCode()
Overrides:
hashCode in class XmlSchemaNamedImpl

getForm

public XmlSchemaForm getForm()
Return the effective 'form' for this item. If the item has an explicit form declaration, this returns that declared form. If not, it returns the appropriate default form from the containing schema.

Specified by:
getForm in interface XmlSchemaNamedWithForm
Returns:
XmlSchemaForm.QUALIFIED or XmlSchemaForm.UNQUALIFIED.

isFormSpecified

public boolean isFormSpecified()
True if this item has a specified form, false if it inherits from the parent schema.

Specified by:
isFormSpecified in interface XmlSchemaNamedWithForm
Returns:

setForm

public void setForm(XmlSchemaForm form)
Set the schema form.

Specified by:
setForm in interface XmlSchemaNamedWithForm
Parameters:
form - Schema form. Pass in XmlSchemaForm.NONE to inherit from the parent schema.

setName

public void setName(String name)
Set the name. Set to null to render the object anonymous, or to prepare to change it to refer to some other object.

Specified by:
setName in interface XmlSchemaNamed
Overrides:
setName in class XmlSchemaNamedImpl
Parameters:
name - the name.

getWireName

public QName getWireName()
The name of this item as it is sent 'over the wire' or stored in an XML file. If the form is unqualified, this has "" for a namespaceURI. Otherwise, it is the same as getQName().

Specified by:
getWireName in interface XmlSchemaNamedWithForm
Returns:


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