Package org.apache.xmpbox.type
Class Attribute
- java.lang.Object
-
- org.apache.xmpbox.type.Attribute
-
public class Attribute extends java.lang.Object
Simple representation of an attribute
-
-
Constructor Summary
Constructors Constructor Description Attribute(java.lang.String nsURI, java.lang.String localName, java.lang.String value)
Constructor of a new Attribute
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Get the localName of this attributejava.lang.String
getNamespace()
Get the namespace URI of this attributejava.lang.String
getValue()
Get value of this attributevoid
setName(java.lang.String lname)
Set the localName of this attributevoid
setNsURI(java.lang.String nsURI)
Set the namespace URI of this attributevoid
setValue(java.lang.String value)
Set value of this attributejava.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the localName of this attribute- Returns:
- local name of this attribute
-
setName
public void setName(java.lang.String lname)
Set the localName of this attribute- Parameters:
lname
- the local name to set
-
getNamespace
public java.lang.String getNamespace()
Get the namespace URI of this attribute- Returns:
- the namespace URI associated to this attribute (could be null)
-
setNsURI
public void setNsURI(java.lang.String nsURI)
Set the namespace URI of this attribute- Parameters:
nsURI
- the namespace URI to set
-
getValue
public java.lang.String getValue()
Get value of this attribute- Returns:
- value of this attribute
-
setValue
public void setValue(java.lang.String value)
Set value of this attribute- Parameters:
value
- the value to set for this attribute
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-