liquibase.parser.ChangeLogParser implementations and other classes that work with multiple formats can create objects
directs or create instances of this class which can then be passed to the load() method of the object they want to configure.
For example, liquibase.change.Change#load(ParsedNode, liquibase.resource.ResourceAccessor) .
ParsedNodes are a simple key/value structure with the following characteristics:
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final String | |
| private final String | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ParsedNode | |
| public ParsedNode | |
| public ParsedNode | |
| protected <T> T | |
| protected ParsedNode | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ParsedNode | |
| public List | |
| public List | getChildren(String namespace, String nodename)
Returns all child nodes with the given namespace and name. |
| public <T> T | getChildValue(String namespace, String nodename, T defaultValue)
Convenience method for |
| public <T> T | getChildValue(String namespace, String nodename, Class<T> type)
Returns the value of the given node, converted to the passed type. |
| public Object | getChildValue(String namespace, String nodename)
Returns the value of the given node with no conversion attempted. |
| public String | |
| public String | getNamespace()
Each node key contains both a namespace and a name which together identifies the node. |
| public Object | |
| public <T> T | |
| public int | |
| protected boolean | |
| protected boolean | Returns: true if the namespace and name of the node match the specified namespace and name,
ignoring case; false otherwise.The node to match against. node, String The namespace to match against. namespace, String The name to match against. nodename)Matches the namespace and name of this node. |
| public ParsedNode | |
| public ParsedNode | |
| public String |
| children | back to summary |
|---|---|
| private final List<ParsedNode> children | |
| name | back to summary |
|---|---|
| private final String name | |
| namespace | back to summary |
|---|---|
| private final String namespace | |
| value | back to summary |
|---|---|
| private Object value | |
| ParsedNode | back to summary |
|---|---|
| public ParsedNode(String namespace, String name) | |
| addChild | back to summary |
|---|---|
| public ParsedNode addChild(String namespace, String nodeName, Object value) throws ParsedNodeException Convenience method to add a new ParsedNode with the passed namespace/name and value | |
| addChild | back to summary |
|---|---|
| public ParsedNode addChild(ParsedNode node) throws ParsedNodeException Adds the given ParsedNode as a child | |
| addChildren | back to summary |
|---|---|
| public ParsedNode addChildren(Map<String, Object> child) throws ParsedNodeException Adds the given map as children of this node.
If the passed map is empty, it is a no-op
For each key in the map, a new child is added with the key as the name and the value (with all | |
| convertObject | back to summary |
|---|---|
| protected <T> T convertObject(Object rawValue, Class<T> type) throws ParsedNodeException | |
| createNode | back to summary |
|---|---|
| protected ParsedNode createNode(String namespace, String nodeName) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getChild | back to summary |
|---|---|
| public ParsedNode getChild(String namespace, String name) throws ParsedNodeException Returns the ParsedNode defined by the given namespace and name.
| |
| getChildren | back to summary |
|---|---|
| public List Returns the child ParsedNodes of this node. Returned list is unmodifiableList. | |
| getChildren | back to summary |
|---|---|
| public List Returns all child nodes with the given namespace and name. If none match, an empty list is returned. Returned list is unmodifiableList. | |
| getChildValue | back to summary |
|---|---|
| public <T> T getChildValue(String namespace, String nodename, T defaultValue) throws ParsedNodeException Convenience method for | |
| getChildValue | back to summary |
|---|---|
| public <T> T getChildValue(String namespace, String nodename, Class<T> type) throws ParsedNodeException Returns the value of the given node, converted to the passed type.
| |
| getChildValue | back to summary |
|---|---|
| public Object getChildValue(String namespace, String nodename) throws ParsedNodeException Returns the value of the given node with no conversion attempted. | |
| getName | back to summary |
|---|---|
| public String getName() Each node key contains both a namespace and a name which together identifies the node. | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Each node key contains both a namespace and a name which together identifies the node. | |
| getValue | back to summary |
|---|---|
| public Object getValue() Return the value associated with this node. | |
| getValue | back to summary |
|---|---|
| public <T> T getValue(Class<T> type) throws ParsedNodeException Return the value associated with this node converted to the given type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| namespaceMatches | back to summary |
|---|---|
| protected boolean namespaceMatches(ParsedNode node, String namespace) | |
| nodeMatches | back to summary |
|---|---|
| protected boolean nodeMatches(ParsedNode node, String namespace, String nodename) Matches the namespace and name of this node. Matching is performed case-insensitively.
| |
| removeChild | back to summary |
|---|---|
| public ParsedNode removeChild(String namespace, String name) throws ParsedNodeException | |
| setValue | back to summary |
|---|---|
| public ParsedNode setValue(Object value) throws ParsedNodeException Sets the value of this ParsedNode. If the passed value is a ParsedNode, it is added as a child, not as the value. If the passed value is a Map, it is converted to a ParsedNode and added as a child, not as the value. If the passed value is a Collection, each object is added as a child if it is a ParsedNode or a Map. If there are multiple simple values in a passed collection, value is set to a List. If there is a single value in a collection, value is set to the single value. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |