| java.lang.Object edu.iu.uis.eden.test.web.framework.Util
Util | final public class Util (Code) | | Utility class
author: Aaron Hamid (arh14 at cornell dot edu) |
getResolvableAttribute | public static Property getResolvableAttribute(Node node, String name, PropertyScheme defaultScheme)(Code) | | Looks up a resolvable Property attribute from the given Element node. Explicit variants of the attribute
name are inspected first, and then the plain name itself is inspected and a defaultScheme is used if none
is specified in the value. e.g.:
The following code would look for exactly one of the above "value" attributes. If only the "value" attribute
was found, then the defaultScheme would be used to qualify the value if the value did not already contain
a scheme.
If more than one variant is present, a RuntimeException is thrown.
Parameters: node - the element whose attributes to check Parameters: name - the name of the attribute Parameters: defaultScheme - the defaultScheme to qualify an unqualified value found in the attribute with the plain name a Property if found, or null throws: RuntimeException - if more than one variant is found (or more than one variant of a given scheme, e.g. value-lit/value-literal) |
|
|