public abstract class AbstractNodeChange extends Change
Modifier | Constructor and Description |
---|---|
protected |
AbstractNodeChange(NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes) |
Modifier and Type | Method and Description |
---|---|
NodeKey |
getKey() |
Set<Name> |
getMixinTypes()
Returns the mixins for this node.
|
Path |
getPath()
Get the path to the node involved in the change.
|
Name |
getPrimaryType()
Returns the primary type of the node
|
boolean |
isType(Name nodeTypeName,
NodeTypes nodeTypes)
Determine if the
primary type or any of the mixin types of the changed
node exactly matches at least one of the supplied node types. |
protected final Path path
public Path getPath()
public NodeKey getKey()
public Name getPrimaryType()
Name
instance; never null
public Set<Name> getMixinTypes()
Set
; never null
but possibly empty.public boolean isType(Name nodeTypeName, NodeTypes nodeTypes)
primary type
or any of the mixin types
of the changed
node exactly matches at least one of the supplied node types.nodeTypeName
- the name of the node types to be considered; may not be nullnodeTypes
- the immutable snapshot of node types; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.