@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class Attribute
extends java.lang.Object
Constructor and Description |
---|
Attribute(java.lang.String qName,
java.lang.String value,
java.lang.String namespace,
java.lang.String prefix)
Creates an attribute with a specified qualified name, value, namespace and
prefix.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalName()
Gets the attribute local name.
|
int |
getNameEndOffset() |
java.lang.String |
getNamespace()
Gets the attribute namespace.
|
int |
getNameStartOffset() |
java.lang.String |
getPrefix() |
java.lang.String |
getQName()
Gets the attribute fully qualified name.
|
java.lang.String |
getValue()
Gets for the attribute value.
|
int |
getValueEndOffset() |
int |
getValueStartOffset() |
boolean |
isDefaultNamespaceDeclaration() |
boolean |
isNamespaceDeclaration() |
void |
setNameEndOffset(int nameEndOffset) |
void |
setNamespace(java.lang.String namespace) |
void |
setNameStartOffset(int nameStartOffset) |
void |
setValueEndOffset(int valueEndOffset) |
void |
setValueStartOffset(int valueStartOffset) |
java.lang.String |
toString()
Return the string representation of the attribute.
|
public Attribute(java.lang.String qName, java.lang.String value, java.lang.String namespace, java.lang.String prefix)
qName
- The attribute fully qualified name.value
- The attribute value.namespace
- The attribute namespace.prefix
- The attribute prefix.public java.lang.String getQName()
public java.lang.String getValue()
null
.public java.lang.String getNamespace()
public java.lang.String getLocalName()
public java.lang.String toString()
toString
in class java.lang.Object
public int getNameEndOffset()
public int getNameStartOffset()
public int getValueEndOffset()
public int getValueStartOffset()
public boolean isNamespaceDeclaration()
true
the attribute is namespace declaration.public java.lang.String getPrefix()
public void setNamespace(java.lang.String namespace)
namespace
- The attribute namespace to set.public void setNameStartOffset(int nameStartOffset)
nameStartOffset
- The attribute name start offset to set.public void setNameEndOffset(int nameEndOffset)
nameEndOffset
- The attribute name end offset to set.public void setValueStartOffset(int valueStartOffset)
valueStartOffset
- The value start offset to set.public void setValueEndOffset(int valueEndOffset)
valueEndOffset
- The value end offset to set.public boolean isDefaultNamespaceDeclaration()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.