|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.document.Attribute
A name value pair which is associated with some base object.
Attributable
,
StructuredDocument
,
Element
Constructor Summary | |
Attribute(Attributable owner,
String name,
String value)
Constructor for a new attribute which is associated with an |
|
Attribute(String name,
String value)
Constructor for a new attribute which can be added to an Attributable . |
Method Summary | |
protected Object |
clone()
|
boolean |
equals(Object target)
The two attributes are the same if they have the same owner, name and value. |
String |
getName()
Return name of this attribute |
Attributable |
getOwner()
Return the Attributable which is the owner of this attribute. |
String |
getValue()
Return value of this attribute |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Attribute(String name, String value)
Attributable
.
name
- Name for this attribute.value
- Value for this attribute.public Attribute(Attributable owner, String name, String value)
owner
- The Atrributable owner of this attribute or null.name
- Name for this attribute.value
- Value for this attribute.Method Detail |
protected Object clone()
public boolean equals(Object target)
public int hashCode()
public String toString()
public String getName()
public Attributable getOwner()
Attributable
which is the owner of this attribute.
public String getValue()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |