|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.entity.Clipboard
public class Clipboard
The Clipboard class implements temporary storage for
instances of WriteableEntity which have been serialized into
and XML Document.
| Constructor Summary | |
|---|---|
Clipboard()
Constructor for Clipboard instances. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the clipboard by setting both content and entity class to null. |
java.lang.String |
getAttribute(java.lang.String tag)
Get the text value of the attribute with the indicated tag. |
org.w3c.dom.Document |
getContent()
Get the clipboard contents. |
java.lang.String |
getContextAsText()
Get the clipboard content as a text string. |
org.w3c.dom.Element |
getDocumentElement()
Get XML serialization of the WriteableEntity saved on the clipboard. |
java.lang.Class<? extends WriteableEntity> |
getEntityClass()
Get the class of the WriteableEntity instance serialized onto the clipboard. |
int |
getIntegerAttribute(java.lang.String tag)
Get the value of the attribute with the indicated tag and convert it to an integer |
boolean |
hasAttribute(java.lang.String tag)
Test if the object serialized on the clipboard has an attribute with the indicated tag. |
boolean |
hasContent()
Test if the clipboard has content. |
void |
setAttribute(java.lang.String tag,
java.lang.String value)
Set the the attribute with the indicated tag to the indicated¯ value. |
void |
setContent(WriteableEntity entity)
Serialize the indicated WriteableEntity instance as an XML Document. |
void |
setIntegerAttribute(java.lang.String tag,
int value)
Set the the attribute with the indicated tag to the indicated integer value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Clipboard()
Clipboard instances.
| Method Detail |
|---|
public org.w3c.dom.Document getContent()
Document holding the serialization of a WriteableEntity instance.public java.lang.Class<? extends WriteableEntity> getEntityClass()
WriteableEntity instance serialized onto the clipboard.
WriteableEntity instance serialized onto the clipboard.public boolean hasContent()
public java.lang.String getContextAsText()
public void setContent(WriteableEntity entity)
WriteableEntity instance as an XML Document.
entity - The indicated WriteableEntity instance.public void clear()
public org.w3c.dom.Element getDocumentElement()
WriteableEntity saved on the clipboard.
Document.public boolean hasAttribute(java.lang.String tag)
tag - The indicated tag.
public int getIntegerAttribute(java.lang.String tag)
tag - The indicated tag.
java.lang.NumberFormatException - when the attribute text does not parse into an integer.
public void setIntegerAttribute(java.lang.String tag,
int value)
tag - The indicated tag.value - The indicated value.public java.lang.String getAttribute(java.lang.String tag)
tag - The indicated tag.
public void setAttribute(java.lang.String tag,
java.lang.String value)
tag - The indicated tag.value - The indicated value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||