|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.util.Attributes
This class represents a set of key-value pairs, for use in extending the XML attributes of Bebop components.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Attributes()
Creates an Attributes object. |
Method Summary | |
Object |
clone()
Clone the attributes. |
void |
exportAttributes(Element target)
Copy all attributes into the given DOM Element. |
String |
getAttribute(String name)
Return the value of an attribute. |
Collection |
getAttributeKeys()
Return a collection of all of the attribute keys represented. |
boolean |
isLocked()
Return whether an object is locked and thus immutable, or can still be modified. |
void |
lock()
Lock an object. |
void |
setAttribute(String name,
String value)
Sets an arbitrary attribute for inclusion in the HTML tags that compose element. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public Attributes()
Method Detail |
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public void setAttribute(String name, String value)
Sets an arbitrary attribute for inclusion in the HTML tags that compose element. For standard attributes in the HTML 4.0 specification, use of this method has the same effect as the specific mutator method provided for each attribute.
Setting an attribute name
to null
removes it.
name
- The name of the attributevalue
- The value to assign the named attributepublic String getAttribute(String name)
name
- the name of the attribute
setAttribute
public Collection getAttributeKeys()
getAttribute(String name)
allows
you to iterate through all of the attributes. All elements
of the Collection are Strings
public void exportAttributes(Element target)
public void lock()
Lockable
setXXX
method
should lead to an exception.
Most lockable Bebop classes throw an IllegalStateException
if an attempt is made to modify a
locked instance.
lock
in interface Lockable
public final boolean isLocked()
Lockable
isLocked
in interface Lockable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |