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 TypeMethodDescriptionvoidclear()Clear the context element properties.clone()booleanReturns the element attributes.Gets the element namespace.getQName()Gets the element qualified name.getType()Gets the context element type.voidsetAttributes(Attribute[] attributes) Sets the element attributes.voidsetNamespace(String namespace) Sets the element namespace.voidsetPnm(ProxyNamespaceMapping prefixNamespaceMapping) voidSets the element qualified name.voidSets 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
Attributeobjects corresponding to the context element. May benull
-
setAttributes
Sets the element attributes.- Parameters:
attributes- The array ofAttributeto set.
-
getNamespace
Gets the element namespace.- Returns:
- Returns the element namespace or
nullif 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
-