Oxygen XML Editor 12.2 Author API

ro.sync.contentcompletion.xml
Class ContextElement

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

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
ContextElement()
           
 
Method Summary
 void clear()
          Clear the context element properties.
 java.lang.Object clone()
           
 Attribute[] getAttributes()
          Returns the element attributes.
 java.lang.String getNamespace()
          Gets the elemenet 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
equals, 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.

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 elemenet namespace.

Returns:
Returns the element 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()

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.