Top Description Fields Constructors Methods
org.apache.xmpbox.type

public Class Attribute

extends Object
Class Inheritance

Simple representation of an attribute
Author
a183132

Field Summary

Modifier and TypeField and Description
private String
private String
private String

Constructor Summary

AccessConstructor and Description
public
Attribute(String
namespaceURI of this attribute (could be null)
nsURI
,
String
localName of this attribute
localName
,
String
value given to this attribute
value
)

Constructor of a new Attribute

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

local name of this attribute
getName
()

Get the localName of this attribute

public String

Returns:

the namespace URI associated to this attribute (could be null)
getNamespace
()

Get the namespace URI of this attribute

public String

Returns:

value of this attribute
getValue
()

Get value of this attribute

public void
setName(String
the local name to set
lname
)

Set the localName of this attribute

public void
setNsURI(String
the namespace URI to set
nsURI
)

Set the namespace URI of this attribute

public void
setValue(String
the value to set for this attribute
value
)

Set value of this attribute

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private String name
nsURIback to summary
private String nsURI
valueback to summary
private String value

Constructor Detail

Attributeback to summary
public Attribute(String nsURI, String localName, String value)

Constructor of a new Attribute

Parameters
nsURI:String

namespaceURI of this attribute (could be null)

localName:String

localName of this attribute

value:String

value given to this attribute

Method Detail

getNameback to summary
public String getName()

Get the localName of this attribute

Returns:String

local name of this attribute

getNamespaceback to summary
public String getNamespace()

Get the namespace URI of this attribute

Returns:String

the namespace URI associated to this attribute (could be null)

getValueback to summary
public String getValue()

Get value of this attribute

Returns:String

value of this attribute

setNameback to summary
public void setName(String lname)

Set the localName of this attribute

Parameters
lname:String

the local name to set

setNsURIback to summary
public void setNsURI(String nsURI)

Set the namespace URI of this attribute

Parameters
nsURI:String

the namespace URI to set

setValueback to summary
public void setValue(String value)

Set value of this attribute

Parameters
value:String

the value to set for this attribute

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object