Oxygen XML Editor 11.2 Author API

ro.sync.contentcompletion.xml
Class ContextElement

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

public class ContextElement
extends Object
implements 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.
 Object clone()
           
 Attribute[] getAttributes()
          Returns the element attributes.
 String getNamespace()
          Gets the elemenet namespace.
 ProxyNamespaceMapping getPrefixNamespaceMapping()
           
 String getQName()
          Gets the element qualified name.
 String 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 setQName(String name)
          Sets the element qualified name.
 void setType(String type)
          Sets the context element type.
 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 String getNamespace()
Gets the elemenet namespace.

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

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.