Class NodeAttribute

java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.NodeAttribute
All Implemented Interfaces:
WikiTextElement, Comparable<NodeAttribute>

public class NodeAttribute extends Object implements WikiTextElement, Comparable<NodeAttribute>
An attribute for a node. In xml is serialized as key='value'
  • Constructor Details

    • NodeAttribute

      public NodeAttribute(String key, String value, boolean usesDoubleQuotes)
      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

      public NodeAttribute(String key, String value)
      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