Class XmlSchemaNamedWithFormImpl
java.lang.Object
org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
org.apache.ws.commons.schema.utils.XmlSchemaNamedWithFormImpl
- All Implemented Interfaces:
XmlSchemaNamed,XmlSchemaNamedWithForm,XmlSchemaObjectBase
public class XmlSchemaNamedWithFormImpl
extends XmlSchemaNamedImpl
implements XmlSchemaNamedWithForm
-
Field Summary
FieldsFields inherited from class org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
parentSchema, refTwin -
Constructor Summary
ConstructorsConstructorDescriptionXmlSchemaNamedWithFormImpl(XmlSchema parent, boolean topLevel, boolean element) Delegate object for managing names for attributes and elements. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetForm()Return the effective 'form' for this item.The name of this item as it is sent 'over the wire' or stored in an XML file.inthashCode()booleanTrue if this item has a specified form, false if it inherits from the parent schema.voidsetForm(XmlSchemaForm form) Set the schema form.voidSet the name.Methods inherited from class org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
getName, getParent, getQName, isAnonymous, isTopLevel, setRefObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ws.commons.schema.utils.XmlSchemaNamed
getName, getParent, getQName, isAnonymous, isTopLevel
-
Field Details
-
form
-
element
private boolean element -
wireName
-
-
Constructor Details
-
XmlSchemaNamedWithFormImpl
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 Details
-
equals
- Overrides:
equalsin classXmlSchemaNamedImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classXmlSchemaNamedImpl
-
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:
getFormin interfaceXmlSchemaNamedWithForm- Returns:
XmlSchemaForm.QUALIFIEDorXmlSchemaForm.UNQUALIFIED.
-
isFormSpecified
public boolean isFormSpecified()True if this item has a specified form, false if it inherits from the parent schema.- Specified by:
isFormSpecifiedin interfaceXmlSchemaNamedWithForm- Returns:
-
setForm
Set the schema form.- Specified by:
setFormin interfaceXmlSchemaNamedWithForm- Parameters:
form- Schema form. Pass in XmlSchemaForm.NONE to inherit from the parent schema.
-
setName
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:
setNamein interfaceXmlSchemaNamed- Overrides:
setNamein classXmlSchemaNamedImpl- Parameters:
name- the name.
-
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:
getWireNamein interfaceXmlSchemaNamedWithForm- Returns:
-