Class NodeAttribute
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.NodeAttribute
- All Implemented Interfaces:
WikiTextElement
,Comparable<NodeAttribute>
An attribute for a node. In xml is serialized as key='value'
-
Constructor Summary
ConstructorsConstructorDescriptionNodeAttribute
(String key, String value) An attribute for a node.NodeAttribute
(String key, String value, boolean usesDoubleQuotes) An attribute for a node. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextElement
getCategories
-
Constructor Details
-
NodeAttribute
An attribute for a node. The constructor will trim spaces from the key and value.- Parameters:
key
- The attribute key.value
- The attribute value.usesDoubleQuotes
- Whether the value should be wrapped in double quotes. By default this is false, unless the source text uses them.
-
NodeAttribute
An attribute for a node. The constructor will trim spaces from the key and value.- Parameters:
key
- The attribute key.value
- The attribute value.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<NodeAttribute>
-
accept
-