Oxygen XML Editor 11.2 Author API

ro.sync.outline.xml
Class Attribute

java.lang.Object
  extended by ro.sync.outline.xml.Attribute

public class Attribute
extends Object

An attribute representation used mainly in the content completion process.


Constructor Summary
Attribute(String qName, String value, String namespace, String prefix)
          Creates an attribute with a specified qualified name, value, namespace and prefix.
 
Method Summary
 String getLocalName()
          Gets the attribute local name.
 int getNameEndOffset()
           
 String getNamespace()
          Gets the attribute namespace.
 int getNameStartOffset()
           
 String getPrefix()
           
 String getQName()
          Gets the attribute fully qualified name.
 String getValue()
          Gets for the attribute value.
 int getValueEndOffset()
           
 int getValueStartOffset()
           
 boolean isDefaultNamespaceDeclaration()
           
 boolean isNamespaceDeclaration()
           
 void setNameEndOffset(int nameEndOffset)
           
 void setNamespace(String namespace)
           
 void setNameStartOffset(int nameStartOffset)
           
 void setValueEndOffset(int valueEndOffset)
           
 void setValueStartOffset(int valueStartOffset)
           
 String toString()
          Return the string representation of the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(String qName,
                 String value,
                 String namespace,
                 String prefix)
Creates an attribute with a specified qualified name, value, namespace and prefix.

Parameters:
qName - The attribute fully qualified name.
value - The attribute value.
namespace - The attribute namespace.
prefix - The attribute prefix.
Method Detail

getQName

public String getQName()
Gets the attribute fully qualified name.

Returns:
The attribute qualified name of the attribute.

getValue

public String getValue()
Gets for the attribute value.

Returns:
The value. Not null.

getNamespace

public String getNamespace()
Gets the attribute namespace.

Returns:
The attribute namespace.

getLocalName

public String getLocalName()
Gets the attribute local name.

Returns:
The attribute local name.

toString

public String toString()
Return the string representation of the attribute. It contains the attribute qualified name, the namespace and the attribute value.

Overrides:
toString in class Object

getNameEndOffset

public int getNameEndOffset()
Returns:
The end offset of the name.

getNameStartOffset

public int getNameStartOffset()
Returns:
The start offset of the name.

getValueEndOffset

public int getValueEndOffset()
Returns:
The end offset of the value.

getValueStartOffset

public int getValueStartOffset()
Returns:
The start offset of the value.

isNamespaceDeclaration

public boolean isNamespaceDeclaration()
Returns:
If true the attribute is namespace declaration.

getPrefix

public String getPrefix()
Returns:
Returns the attribute prefix.

setNamespace

public void setNamespace(String namespace)
Parameters:
namespace - The attribute namespace to set.

setNameStartOffset

public void setNameStartOffset(int nameStartOffset)
Parameters:
nameStartOffset - The attribute name start offset to set.

setNameEndOffset

public void setNameEndOffset(int nameEndOffset)
Parameters:
nameEndOffset - The attribute name end offset to set.

setValueStartOffset

public void setValueStartOffset(int valueStartOffset)
Parameters:
valueStartOffset - The value start offset to set.

setValueEndOffset

public void setValueEndOffset(int valueEndOffset)
Parameters:
valueEndOffset - The value end offset to set.

isDefaultNamespaceDeclaration

public boolean isDefaultNamespaceDeclaration()
Returns:
Returns the default namespace declaration.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.