Class ContextElement

java.lang.Object
ro.sync.contentcompletion.xml.ContextElement
All Implemented Interfaces:
Cloneable

@API(type=EXTENDABLE, src=PRIVATE) public class ContextElement extends Object implements Cloneable
Store information about an element inside a context, involved in the content completion process.
  • Constructor Details

    • ContextElement

      public ContextElement()
  • Method Details

    • getAttributes

      public Attribute[] getAttributes()
      Returns the element attributes.
      Returns:
      An array of Attribute objects corresponding to the context element. May be null
    • setAttributes

      public void setAttributes(Attribute[] attributes)
      Sets the element attributes.
      Parameters:
      attributes - The array of Attribute to set.
    • getNamespace

      public String getNamespace()
      Gets the element namespace.
      Returns:
      Returns the element namespace or null if the element has no namespace.
    • setNamespace

      public void setNamespace(String namespace)
      Sets the element namespace.
      Parameters:
      namespace - The namespace to set.
    • getPrefixNamespaceMapping

      public ProxyNamespaceMapping getPrefixNamespaceMapping()
      Returns:
      Returns the prefix-namespace mapping.
    • setPnm

      public void setPnm(ProxyNamespaceMapping prefixNamespaceMapping)
      Parameters:
      prefixNamespaceMapping - The prefix-namespace mapping to set.
    • getQName

      public String getQName()
      Gets the element qualified name.
      Returns:
      Returns the element qName.
    • setQName

      public void setQName(String name)
      Sets the element qualified name.
      Parameters:
      name - The qName to set.
    • getType

      public String getType()
      Gets the context element type.
      Returns:
      Returns the element type.
    • setType

      public void setType(String type)
      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

      public String toString()
      Gets description of the context element containing the following element properties: namespace, qualified name, type, attributes and the prefix-namespace mapping.
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also: