Package net.sf.okapi.lib.xliff2.core
Class ExtAttribute
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.ExtAttribute
-
public class ExtAttribute extends Object
Represents an extension (or unsupported module) attribute.
-
-
Constructor Summary
Constructors Constructor Description ExtAttribute(QName qName, String value)Creates a newExtAttributeobject.ExtAttribute(ExtAttribute original)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetLocalPart()Gets the local name of this attribute.StringgetNamespaceURI()Gets the namespace URI of this attribute.StringgetPrefix()Gets the prefix of this attribute.QNamegetQName()Gets the QName of this attribute.StringgetValue()Gets the value of this attribute.inthashCode()booleanisModule()Indicates if this attribute is part of a module or not.voidsetValue(String value)Sets the value of this attribute.
-
-
-
Constructor Detail
-
ExtAttribute
public ExtAttribute(ExtAttribute original)
Copy constructor.- Parameters:
original- the original object to duplicate.
-
ExtAttribute
public ExtAttribute(QName qName, String value)
Creates a newExtAttributeobject.- Parameters:
qName- the qualified name of this attribute.value- the value of this attribute.
-
-
Method Detail
-
getQName
public QName getQName()
Gets the QName of this attribute.- Returns:
- the QName of this attribute.
-
getValue
public String getValue()
Gets the value of this attribute.- Returns:
- the value of this attribute (can be null).
-
setValue
public void setValue(String value)
Sets the value of this attribute.- Parameters:
value- the new value of this attribute (can be null).
-
getLocalPart
public String getLocalPart()
Gets the local name of this attribute.- Returns:
- the local name of this attribute.
-
getNamespaceURI
public String getNamespaceURI()
Gets the namespace URI of this attribute.- Returns:
- the namespace URI of this attribute.
-
getPrefix
public String getPrefix()
Gets the prefix of this attribute.- Returns:
- the prefix of this attribute.
-
isModule
public boolean isModule()
Indicates if this attribute is part of a module or not.- Returns:
- true if this attribute is part of a module.
-
-