Package ro.sync.contentcompletion.xml
Class ContextElement
java.lang.Object
ro.sync.contentcompletion.xml.ContextElement
- All Implemented Interfaces:
Cloneable
Store information about an element inside a context, involved in the content
completion process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the context element properties.clone()
boolean
Returns the element attributes.Gets the element namespace.getQName()
Gets the element qualified name.getType()
Gets the context element type.void
setAttributes
(Attribute[] attributes) Sets the element attributes.void
setNamespace
(String namespace) Sets the element namespace.void
setPnm
(ProxyNamespaceMapping prefixNamespaceMapping) void
Sets the element qualified name.void
Sets the context element type.toString()
Gets description of the context element containing the following element properties: namespace, qualified name, type, attributes and the prefix-namespace mapping.
-
Constructor Details
-
ContextElement
public ContextElement()
-
-
Method Details
-
getAttributes
Returns the element attributes.- Returns:
- An array of
Attribute
objects corresponding to the context element. May benull
-
setAttributes
Sets the element attributes.- Parameters:
attributes
- The array ofAttribute
to set.
-
getNamespace
Gets the element namespace.- Returns:
- Returns the element namespace or
null
if the element has no namespace.
-
setNamespace
Sets the element namespace.- Parameters:
namespace
- The namespace to set.
-
getPrefixNamespaceMapping
- Returns:
- Returns the prefix-namespace mapping.
-
setPnm
- Parameters:
prefixNamespaceMapping
- The prefix-namespace mapping to set.
-
getQName
Gets the element qualified name.- Returns:
- Returns the element qName.
-
setQName
Sets the element qualified name.- Parameters:
name
- The qName to set.
-
getType
Gets the context element type.- Returns:
- Returns the element type.
-
setType
Sets the context element type. See xsi:type specifications- Parameters:
type
- The type to set.
-
clear
public void clear()Clear the context element properties. -
toString
Gets description of the context element containing the following element properties: namespace, qualified name, type, attributes and the prefix-namespace mapping. -
clone
-
equals
-