|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INodeHolder
Stands for any object which hold an element.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_ARGUMENT_CONVERTER_PREFIX
Attribute for arguments prefix. |
static String |
ATTRIBUTE_ARGUMENT_FORMATTER_PREFIX
Attribute for arguments prefix. |
static String |
ATTRIBUTE_COMPARATOR
Attribute for comparator. |
static String |
ATTRIBUTE_CONVERTER
Attribute for converter. |
static String |
ATTRIBUTE_EVALUATION
Attribute for value evaluation. |
static String |
ATTRIBUTE_FORCE_CONTENT
Attribute to force evaluation using 'tag getValue()'. |
static String |
ATTRIBUTE_FORCE_VALUE
Attribute to force evaluation using 'attribute value' or 'tag getValue()'. |
static String |
ATTRIBUTE_FORMATTER
Attribute for formatter. |
static String |
ATTRIBUTE_PROPERTY
Attribute for property access. |
static String |
ATTRIBUTE_READER
Attribute for reader. |
static String |
ATTRIBUTE_VALUE
Attribute for value. |
static Boolean |
DEFAULT_PROPERTY_ACCEPT_NULL_PATH
Default is to accept null paths as null. |
static Boolean |
DEFAULT_PROPERTY_INVALID_PATH_AS_NULL
Default is to not accept invalid paths. |
static String |
FEATURE_PROPERTY_ACCEPT_NULL_PATH
Feature to accept children properties as null a parent object in path is null. |
static String |
FEATURE_PROPERTY_INVALID_PATH_AS_NULL
Feature to accept invalid property paths as null. |
| Fields inherited from interface org.specrunner.util.expression.IAbstraction |
|---|
DEFAULT_EVAL_ARGS, FEATURE_EVAL_ARGS |
| Method Summary | |
|---|---|
void |
append(nu.xom.Node node)
Append node to the node. |
void |
append(String text)
Append text to the node. |
boolean |
attributeContains(String name,
String value)
Check if an attribute exists, and if it exists, if it contains the given value. |
boolean |
attributeEquals(String name,
String value)
Check if an attribute exists, and if it exists, if it is equal to the given value. |
void |
detach()
Detaches the current node. |
String |
getAttribute(String name)
Get attribute value by type. |
String |
getAttribute(String name,
String defaultValue)
Get attribute value by type. |
String |
getAttributeValue()
Set attribute value to look for on getObject(...) |
nu.xom.Node |
getNode()
Get the hold node. |
String |
getQualifiedName()
Get qualified name (include namespace). |
boolean |
hasAttribute(String name)
Check if an given attribute is present. |
boolean |
hasName(String name)
Check a tag name. |
void |
prepend(nu.xom.Node node)
Prepend a note to the node. |
void |
prepend(String text)
Prepend text to the node. |
void |
removeAttribute(String name)
Remove a attribute. |
void |
setAttribute(String name,
String value)
Set attribute value. |
void |
setAttributeValue(String attributeValue)
Set value attribute holder. |
void |
setNode(nu.xom.Node node)
Set the hold node. |
void |
setValue(String text)
Set text to a node removing all children elements. |
String |
toXML()
The XML representation. |
| Methods inherited from interface org.specrunner.util.expression.IAbstraction |
|---|
getArguments, getArguments, getComparator, getComparator, getConverter, getConverter, getFormatter, getFormatter, getFormatterArguments, getFormatterArguments, getObject, getObject, getReader, getReader, getValue, getValue |
| Field Detail |
|---|
static final String ATTRIBUTE_PROPERTY
static final String FEATURE_PROPERTY_ACCEPT_NULL_PATH
static final Boolean DEFAULT_PROPERTY_ACCEPT_NULL_PATH
static final String FEATURE_PROPERTY_INVALID_PATH_AS_NULL
static final Boolean DEFAULT_PROPERTY_INVALID_PATH_AS_NULL
static final String ATTRIBUTE_FORCE_VALUE
static final String ATTRIBUTE_FORCE_CONTENT
static final String ATTRIBUTE_VALUE
static final String ATTRIBUTE_ARGUMENT_CONVERTER_PREFIX
static final String ATTRIBUTE_EVALUATION
static final String ATTRIBUTE_READER
static final String ATTRIBUTE_CONVERTER
static final String ATTRIBUTE_FORMATTER
static final String ATTRIBUTE_ARGUMENT_FORMATTER_PREFIX
static final String ATTRIBUTE_COMPARATOR
| Method Detail |
|---|
nu.xom.Node getNode()
void setNode(nu.xom.Node node)
node - The node.void detach()
String getAttributeValue()
getObject(...)
calls.Default is ATTRIBUTE_VALUE.
void setAttributeValue(String attributeValue)
attributeValue - A attribute name.String getQualifiedName()
boolean hasName(String name)
name - The name.
boolean hasAttribute(String name)
name - The attribute name.
String getAttribute(String name)
name - The name.
String getAttribute(String name,
String defaultValue)
name - The name.defaultValue - The defaul value.
void setAttribute(String name,
String value)
name - The name.value - The value.void removeAttribute(String name)
name - The attribute name.
boolean attributeContains(String name,
String value)
name - The attribute name.value - The attribute value.
boolean attributeEquals(String name,
String value)
name - The attribute name.value - The attribute value.
void setValue(String text)
text - The expected text.void prepend(String text)
text - A text.void prepend(nu.xom.Node node)
node - A node.void append(String text)
text - A text.void append(nu.xom.Node node)
node - A node.String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||