Package org.codehaus.mojo.versions.utils
Class ModelNode
java.lang.Object
org.codehaus.mojo.versions.utils.ModelNode
Represents a navigable tree of
Model instances.-
Constructor Summary
ConstructorsConstructorDescriptionModelNode(org.apache.maven.model.Model model, MutableXMLStreamReader pom) Creates a root node (without a parent).ModelNode(ModelNode parent, org.apache.maven.model.Model model, MutableXMLStreamReader pom) Creates a new instance with a parent node. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.maven.model.ModelgetModel()Returns theModelinstance associated with the given node.Gets theMutableXMLStreamReaderinstanceGets the parent node.inthashCode()
-
Constructor Details
-
ModelNode
Creates a root node (without a parent).- Parameters:
model-Modelinstancepom-MutableXMLStreamReaderinstance
-
ModelNode
Creates a new instance with a parent node.- Parameters:
parent- parent nodemodel-Modelinstancepom-MutableXMLStreamReaderinstance
-
-
Method Details
-
getModel
public org.apache.maven.model.Model getModel()Returns theModelinstance associated with the given node.- Returns:
Modelassociated with the given node, nevernull.
-
getParent
Gets the parent node.- Returns:
- The parent node of this node or
Optional.empty(), nevernull.
-
getMutableXMLStreamReader
Gets theMutableXMLStreamReaderinstance- Returns:
- the
MutableXMLStreamReaderinstance
-
equals
-
hashCode
public int hashCode()
-