Class ContextElement

  • All Implemented Interfaces:
    java.lang.Cloneable

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

      Constructors 
      Constructor Description
      ContextElement()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear the context element properties.
      java.lang.Object clone()  
      boolean equals​(java.lang.Object obj)  
      Attribute[] getAttributes()
      Returns the element attributes.
      java.lang.String getNamespace()
      Gets the element namespace.
      ProxyNamespaceMapping getPrefixNamespaceMapping()  
      java.lang.String getQName()
      Gets the element qualified name.
      java.lang.String getType()
      Gets the context element type.
      void setAttributes​(Attribute[] attributes)
      Sets the element attributes.
      void setNamespace​(java.lang.String namespace)
      Sets the element namespace.
      void setPnm​(ProxyNamespaceMapping prefixNamespaceMapping)  
      void setQName​(java.lang.String name)
      Sets the element qualified name.
      void setType​(java.lang.String type)
      Sets the context element type.
      java.lang.String toString()
      Gets description of the context element containing the following element properties: namespace, qualified name, type, attributes and the prefix-namespace mapping.
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContextElement

        public ContextElement()
    • Method Detail

      • 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 java.lang.String getNamespace()
        Gets the element namespace.
        Returns:
        Returns the element namespace or null if the element has no namespace.
      • setNamespace

        public void setNamespace​(java.lang.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 java.lang.String getQName()
        Gets the element qualified name.
        Returns:
        Returns the element qName.
      • setQName

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

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

        public void setType​(java.lang.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 java.lang.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 java.lang.Object
      • clone

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)