public static final class ChildReferences.NoContext extends Object implements ChildReferences.Context
ChildReferences.Changes
implementation that has no changes and that is useful when there are never any siblings
with the same names, since it always returns '1' for the SNS index.Modifier and Type | Field and Description |
---|---|
static ChildReferences.Context |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
ChildReferences.Changes |
changes()
Get the set of changes for this context.
|
int |
consume(Name name,
NodeKey key)
Consume the next child with the supplied name and key.
|
public static final ChildReferences.Context INSTANCE
public int consume(Name name, NodeKey key)
ChildReferences.Context
consume
in interface ChildReferences.Context
name
- the name of the node; may not be nullkey
- the key for the node; may not be nullpublic ChildReferences.Changes changes()
ChildReferences.Context
changes
in interface ChildReferences.Context
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.