|
||||||||||
| 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_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_PROPERTY
Attribute for property access. |
static String |
ATTRIBUTE_VALUE
Attribute for value. |
| Method Summary | |
|---|---|
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. |
List<String> |
getArguments()
Get element arguments in a array. |
List<String> |
getArguments(List<String> arguments)
Get element arguments in a array. |
String |
getAttribute(String name)
Get attribute value by type. |
String |
getAttribute(String name,
String defaultValue)
Get attribute value by type. |
IComparator |
getComparator()
Get the comparator of the given element. |
IComparator |
getComparator(IComparator comparatorDefault)
Get the comparator of the given element. |
IConverter |
getConverter()
Get the converter. |
IConverter |
getConverter(IConverter converterDefault)
Get the converter, if any, otherwise returns the default converter. |
nu.xom.Node |
getNode()
Get the hold node. |
Object |
getObject(IContext context,
boolean silent)
Gets the corresponding value object. |
Object |
getObject(IContext context,
boolean silent,
IConverter converter,
List<String> arguments)
Gets the corresponding value object. |
String |
getQualifiedName()
Get qualified name (include namespace). |
String |
getValue()
Get element value. |
boolean |
hasAttribute(String name)
Check if an given attribute is present. |
boolean |
hasName(String name)
Check a tag name. |
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 |
setNode(nu.xom.Node node)
Set the hold node. |
void |
setValue(String text)
Set text to a node removing all children elements. |
| Field Detail |
|---|
static final String ATTRIBUTE_PROPERTY
static final String ATTRIBUTE_VALUE
static final String ATTRIBUTE_COMPARATOR
static final String ATTRIBUTE_EVALUATION
static final String ATTRIBUTE_CONVERTER
static final String ATTRIBUTE_ARGUMENT_PREFIX
| Method Detail |
|---|
nu.xom.Node getNode()
void setNode(nu.xom.Node node)
node - The node.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.
String getValue()
void setValue(String text)
text - The expected text.void prepend(String text)
text - A text.void append(String text)
text - A text.
IConverter getConverter()
throws ConverterException
ConverterException - On converter lookup error.
IConverter getConverter(IConverter converterDefault)
throws ConverterException
converterDefault - The default converter.
ConverterException - On converter lookup error.List<String> getArguments()
List<String> getArguments(List<String> arguments)
arguments - The default arguments in case of not found.
IComparator getComparator()
throws ComparatorException
ComparatorException - O comparator lookup errors.
IComparator getComparator(IComparator comparatorDefault)
throws ComparatorException
comparatorDefault - The default comparator.
ComparatorException - O comparator lookup errors.
Object getObject(IContext context,
boolean silent)
throws PluginException
context - The context.silent - Flag to evaluate silently or not.
PluginException - On plugin errors.
Object getObject(IContext context,
boolean silent,
IConverter converter,
List<String> arguments)
throws PluginException
context - The context.silent - Flag to evaluate silently or not.converter - The converter.arguments - The arguments.
PluginException - On plugin errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||