Package | Description |
---|---|
org.modeshape.jcr | |
org.modeshape.jcr.cache |
Modifier and Type | Method and Description |
---|---|
void |
NodeTypes.NodeDefinitionSet.determineReasonForMismatch(Name childName,
Name childPrimaryType,
boolean skipProtected,
SiblingCounter siblingCounter,
Name parentPrimaryType,
Set<Name> parentMixinTypes,
Path parentPath,
String workspaceName,
String repositoryName,
ExecutionContext context)
Method that can be called after
NodeTypes.NodeDefinitionSet.findBestDefinitionForChild(Name, Name, boolean, SiblingCounter) returns null
to throw an appropriate exception for why each of the parent's child node definition are not applicable for the
proposed child. |
org.modeshape.jcr.JcrNodeDefinition |
NodeTypes.NodeDefinitionSet.findBestDefinitionForChild(Name childName,
Name childPrimaryType,
boolean skipProtected,
SiblingCounter siblingCounter)
Find the best child node definition for creating a new child with the given name and primary type.
|
Modifier and Type | Method and Description |
---|---|
static SiblingCounter |
SiblingCounter.alter(SiblingCounter counter,
int delta)
Creates a sibling counter that alters another counter by a constant value.
|
static SiblingCounter |
SiblingCounter.constant(int count)
Create a sibling counter that always return the supplied count, regardless of the name or node.
|
static SiblingCounter |
SiblingCounter.create(CachedNode node,
NodeCache cache)
Creates a sibling counter that lazily obtains a
ChildReferences . |
static SiblingCounter |
SiblingCounter.create(ChildReferences childRefs)
Creates a sibling counter that uses the supplied
ChildReferences . |
static SiblingCounter |
SiblingCounter.noSiblings()
Create a sibling counter that always returns '0' for the number of same name siblings.
|
static SiblingCounter |
SiblingCounter.oneSibling()
Create a sibling counter that always returns '1' for the number of same name siblings.
|
Modifier and Type | Method and Description |
---|---|
static SiblingCounter |
SiblingCounter.alter(SiblingCounter counter,
int delta)
Creates a sibling counter that alters another counter by a constant value.
|
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.