net.jxta.document
Class Attribute
java.lang.Object
|
+--net.jxta.document.Attribute
- public class Attribute
- extends java.lang.Object
- Since:
- JXTA 1.0
- See Also:
Attributable
,
Document
,
Element
Constructor Summary |
Attribute(Attributable owner,
java.lang.String name,
java.lang.String value)
Used to create attributes already associated with documents. |
Attribute(java.lang.String name,
java.lang.String value)
Create a new attribute which can be added to an Element. |
Method Summary |
protected java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object target)
Returns true if the two attributes are the same. |
java.lang.String |
getName()
Return name of this attribute |
Attributable |
getOwner()
Return the Element which is the owner of this attribute. |
java.lang.String |
getValue()
Return value of this attribute |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Attribute
public Attribute(java.lang.String name,
java.lang.String value)
- Create a new attribute which can be added to an Element.
Attribute
public Attribute(Attributable owner,
java.lang.String name,
java.lang.String value)
- Used to create attributes already associated with documents.
getOwner
public Attributable getOwner()
- Return the Element which is the owner of this attribute.
getName
public java.lang.String getName()
- Return name of this attribute
getValue
public java.lang.String getValue()
- Return value of this attribute
clone
protected java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
equals
public boolean equals(java.lang.Object target)
- Returns true if the two attributes are the same. This includes having
the same owner, name and value.
- Overrides:
- equals in class java.lang.Object
- Parameters:
target
- Attribute to be checked with- Returns:
- boolean
- Since:
- JXTA 1.0