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