Interface XmlSchemaNamedWithForm
- All Superinterfaces:
XmlSchemaNamed,XmlSchemaObjectBase
- All Known Implementing Classes:
XmlSchemaAttribute,XmlSchemaElement,XmlSchemaNamedWithFormImpl
Attributes and elements have names that are influenced by their form.
Essentially, the 'form' has three possible values: qualified,
unqualified, and 'inherit from parent' (= unspecified).
-
Method Summary
Modifier and TypeMethodDescriptiongetForm()Get the current form, which may be inherited from the parent schema.The name of this item as it is sent 'over the wire' or stored in an XML file.booleanTrue if this item has a specified form, false if it inherits from the parent schema.voidsetForm(XmlSchemaForm form) Set the schema form.Methods inherited from interface org.apache.ws.commons.schema.utils.XmlSchemaNamed
getName, getParent, getQName, isAnonymous, isTopLevel, setName
-
Method Details
-
getForm
XmlSchemaForm getForm()Get the current form, which may be inherited from the parent schema. This will never return XmlSchemaForm.NONE.- Returns:
-
setForm
Set the schema form.- Parameters:
form- Schema form. Pass in XmlSchemaForm.NONE to inherit from the parent schema.
-
isFormSpecified
boolean isFormSpecified()True if this item has a specified form, false if it inherits from the parent schema.- Returns:
-
getWireName
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().- Returns:
-