|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--flatscape.util.UFormUtils
The UFormUtils class contains static utility methods related to accessing
properties of UForm's. The method which all of the other convenience
methods are built around is the
getProperty(Element, String, String) method.
The failure cases for this method apply to all others.
Copyright (c) 2001,2002 Rutgers, The State University of New Jersey
| Field Summary | |
static java.lang.String |
NAME
|
| Method Summary | |
static Command |
createDocument(java.lang.String name,
org.w3c.dom.Node root,
Controller controller)
Create a command to add a document to the repository. |
static Command |
createSetPropertyCommand(java.lang.String docName,
org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object value)
Creates a command to add or change a property of a model element. |
static Transform2D |
get2DTransform(org.w3c.dom.Element model)
|
static org.w3c.dom.Element |
getParent(org.w3c.dom.Node node,
java.lang.String[] validTypes)
|
static boolean |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
boolean defaultValue)
Returns the specified Boolean property of the model element if possible, otherwise the default value is returned. |
static byte |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
byte defaultValue)
Returns the specified Byte property of the model element if possible, otherwise the default value is returned. |
static char |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
char defaultValue)
Returns the specified Char property of the model element if possible, otherwise the default value is returned. |
static double |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
double defaultValue)
Returns the specified Double property of the model element if possible, otherwise the default value is returned. |
static float |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
float defaultValue)
Returns the specified Float property of the model element if possible, otherwise the default value is returned. |
static int |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
int defaultValue)
Returns the specified Integer property of the model element if possible, otherwise the default value is returned. |
static long |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
long defaultValue)
Returns the specified Long property of the model element if possible, otherwise the default value is returned. |
static java.lang.Object |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object defaultValue)
Returns the specified property of the model element if it exists and is an instance of the default value's class, otherwise the default value is returned. |
static short |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
short defaultValue)
Returns the specified Short property of the model element if possible, otherwise the default value is returned. |
static java.lang.String |
getProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.String defaultValue)
Returns the specified String property of the model element if possible, otherwise the default value is returned. |
static void |
setProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object value)
Adds or changes a property of a model element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
| Method Detail |
public static Transform2D get2DTransform(org.w3c.dom.Element model)
public static Command createDocument(java.lang.String name,
org.w3c.dom.Node root,
Controller controller)
name - the name of the documentroot - the root node of the documentcontroller - the controller
public static Command createSetPropertyCommand(java.lang.String docName,
org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object value)
setProperty(org.w3c.dom.Element, java.lang.String, java.lang.Object),
SetNodeValueCommand,
AddSubtreeCommand
public static void setProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object value)
createSetPropertyCommand(java.lang.String, org.w3c.dom.Element, java.lang.String, java.lang.Object),
SetNodeValueCommand
public static java.lang.String getProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.String defaultValue)
public static java.lang.Object getProperty(org.w3c.dom.Element model,
java.lang.String key,
java.lang.Object defaultValue)
public static boolean getProperty(org.w3c.dom.Element model,
java.lang.String key,
boolean defaultValue)
public static byte getProperty(org.w3c.dom.Element model,
java.lang.String key,
byte defaultValue)
public static short getProperty(org.w3c.dom.Element model,
java.lang.String key,
short defaultValue)
public static int getProperty(org.w3c.dom.Element model,
java.lang.String key,
int defaultValue)
public static long getProperty(org.w3c.dom.Element model,
java.lang.String key,
long defaultValue)
public static char getProperty(org.w3c.dom.Element model,
java.lang.String key,
char defaultValue)
public static float getProperty(org.w3c.dom.Element model,
java.lang.String key,
float defaultValue)
public static double getProperty(org.w3c.dom.Element model,
java.lang.String key,
double defaultValue)
public static org.w3c.dom.Element getParent(org.w3c.dom.Node node,
java.lang.String[] validTypes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||