public interface XML extends Constructible, Extensible<XML>
Modifier and Type | Method and Description |
---|---|
default XML |
attribute(java.lang.Boolean attribute)
This method sets the attribute property of XML instance to the given Boolean argument and returns the modified instance.
|
java.lang.Boolean |
getAttribute()
This method returns the attribute property of XML instance.
|
java.lang.String |
getName()
This method returns the name property from XML instance.
|
java.lang.String |
getNamespace()
This method returns the namespace property of XML instance.
|
java.lang.String |
getPrefix()
This method returns the prefix property of XML instance.
|
java.lang.Boolean |
getWrapped()
This method returns the wrapped property of XML instance.
|
default XML |
name(java.lang.String name)
This method sets the name property of XML instance to the given String argument and returns the modified instance.
|
default XML |
namespace(java.lang.String namespace)
This method sets the namespace property of XML instance to the given String argument and returns the modified instance.
|
default XML |
prefix(java.lang.String prefix)
This method sets the prefix property of XML instance to the given String argument and returns the modified instance.
|
void |
setAttribute(java.lang.Boolean attribute)
This method sets the attribute property of XML instance to the given Boolean argument.
|
void |
setName(java.lang.String name)
This method sets the name property of XML instance to the given String argument.
|
void |
setNamespace(java.lang.String namespace)
This method sets the namespace property of XML instance to the given String argument.
|
void |
setPrefix(java.lang.String prefix)
This method sets the prefix property of XML instance to the given String argument.
|
void |
setWrapped(java.lang.Boolean wrapped)
This method sets the wrapped property of XML instance to the given Boolean argument.
|
default XML |
wrapped(java.lang.Boolean wrapped)
This method sets the wrapped property of XML instance to the given Boolean argument and returns the modified instance.
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
java.lang.String getName()
The name property replaces the name of the element/attribute used for the described schema property.
void setName(java.lang.String name)
The name property replaces the name of the element/attribute used for the described schema property.
name
- the name of this XML instancedefault XML name(java.lang.String name)
The name property replaces the name of the element/attribute used for the described schema property.
name
- the name of this XML instancejava.lang.String getNamespace()
The namespace property is the URI of the namespace definition. Value MUST be in the form of an absolute URI.
void setNamespace(java.lang.String namespace)
The namespace property is the URI of the namespace definition. Value MUST be in the form of an absolute URI.
namespace
- the URI of the namespace definitiondefault XML namespace(java.lang.String namespace)
The namespace property is the URI of the namespace definition. Value MUST be in the form of an absolute URI.
namespace
- the URI of the namespace definitionjava.lang.String getPrefix()
This property is a String prefix to be used for the name.
void setPrefix(java.lang.String prefix)
This property is a String prefix to be used for the name.
prefix
- string prefix to be used with the namedefault XML prefix(java.lang.String prefix)
This property is a String prefix to be used for the name.
prefix
- string prefix to be used with the namejava.lang.Boolean getAttribute()
Attribute property declares whether the property definition translates to an attribute instead of an element. Default value is FALSE.
void setAttribute(java.lang.Boolean attribute)
Attribute property declares whether the property definition translates to an attribute instead of an element. Default value is FALSE.
attribute
- a boolean that declares whether the property definition translates to an attribute instead of an elementdefault XML attribute(java.lang.Boolean attribute)
Attribute property declares whether the property definition translates to an attribute instead of an element. Default value is FALSE.
attribute
- a boolean that declares whether the property definition translates to an attribute instead of an elementjava.lang.Boolean getWrapped()
Wrapped property MAY be used only for an array definition. Signifies whether the array is wrapped. The definition takes effect only when defined alongside type being array. Default value is FALSE.
void setWrapped(java.lang.Boolean wrapped)
Wrapped property MAY be used only for an array definition. Signifies whether the array is wrapped. The definition takes effect only when defined alongside type being array. Default value is FALSE.
wrapped
- a boolean that signifies whether the array is wrappeddefault XML wrapped(java.lang.Boolean wrapped)
Wrapped property MAY be used only for an array definition. Signifies whether the array is wrapped. The definition takes effect only when defined alongside type being array. Default value is FALSE.
wrapped
- a boolean that signifies whether the array is wrapped