|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.repository.ModeShapeConfiguration.BaseReturnable<ReturnType>
org.modeshape.repository.ModeShapeConfiguration.GraphReturnable<ReturnType,ThisType>
ReturnType - the type to be returnedThisType - the type to be returned by the set properties, set description, etc. methodsprotected abstract static class ModeShapeConfiguration.GraphReturnable<ReturnType,ThisType>

Base class for ModeShapeConfiguration.Returnable types that work on a node in the graph.
| Field Summary | |
|---|---|
protected Graph.Batch |
batch
|
protected ExecutionContext |
context
|
protected Path |
path
|
| Fields inherited from class org.modeshape.repository.ModeShapeConfiguration.BaseReturnable |
|---|
returnObject |
| Constructor Summary | |
|---|---|
protected |
ModeShapeConfiguration.GraphReturnable(ReturnType returnObject,
Graph.Batch batch,
Path path,
Name... names)
|
| Method Summary | |
|---|---|
protected Graph.Create<Graph.Batch> |
createIfMissing(Name segment)
Create the node at the supplied path under the current path, and return the Create operation for the last node created. |
protected Graph.Create<Graph.Batch> |
createIfMissing(Name child,
String... segments)
Create the node at the supplied path under the current path, and return the Create operation for the last node created. |
protected Graph.Create<Graph.Batch> |
createIfMissing(Path path,
Name... segments)
Create the node at the supplied path under the current path, and return the Create operation for the last node created. |
String |
getDescription()
Get the description of this component. |
String |
getName()
|
Property |
getProperty(Name beanPropertyName)
|
Property |
getProperty(String beanPropertyName)
Get the property. |
ReturnType |
remove()
Remove this configuration component. |
ThisType |
setDescription(String description)
Specify the description of this component. |
protected ThisType |
setProperty(Name propertyName,
Object value)
|
ThisType |
setProperty(Name propertyName,
Object[] values)
|
ThisType |
setProperty(String beanPropertyName,
boolean value)
Set the property value to a boolean. |
ThisType |
setProperty(String beanPropertyName,
double value)
Set the property value to a double. |
ThisType |
setProperty(String beanPropertyName,
float value)
Set the property value to a float. |
ThisType |
setProperty(String beanPropertyName,
int value)
Set the property value to an integer. |
ThisType |
setProperty(String beanPropertyName,
long value)
Set the property value to a long number. |
ThisType |
setProperty(String propertyName,
Object value)
Set the property value to an object. |
ThisType |
setProperty(String propertyName,
Object[] values)
Set the property values to an object. |
ThisType |
setProperty(String beanPropertyName,
short value)
Set the property value to a short. |
ThisType |
setProperty(String beanPropertyName,
String value)
Set the property value to a string. |
ThisType |
setProperty(String beanPropertyName,
String firstValue,
String... additionalValues)
Set the property value to a string. |
protected Path |
subpath(Name... segments)
|
protected abstract ThisType |
thisType()
|
| Methods inherited from class org.modeshape.repository.ModeShapeConfiguration.BaseReturnable |
|---|
and |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ExecutionContext context
protected final Graph.Batch batch
protected final Path path
| Constructor Detail |
|---|
protected ModeShapeConfiguration.GraphReturnable(ReturnType returnObject,
Graph.Batch batch,
Path path,
Name... names)
| Method Detail |
|---|
protected Graph.Create<Graph.Batch> createIfMissing(Name child,
String... segments)
Graph.Create#and() to complete the operation.
child - the name of the childsegments - the segments in the remainder of the path
protected Graph.Create<Graph.Batch> createIfMissing(Name segment)
Graph.Create#and() to complete the operation.
segment - the name segment for the child
protected Graph.Create<Graph.Batch> createIfMissing(Path path,
Name... segments)
Graph.Create#and() to complete the operation.
path - the path to the nodesegments - the segments in the remainder of the path
protected Path subpath(Name... segments)
protected abstract ThisType thisType()
public String getName()
public ThisType setDescription(String description)
ModeShapeConfiguration.SetDescription
setDescription in interface ModeShapeConfiguration.SetDescription<ThisType>description - the description; may be null or empty
public String getDescription()
ModeShapeConfiguration.SetDescription
getDescription in interface ModeShapeConfiguration.SetDescription<ThisType>
protected ThisType setProperty(Name propertyName,
Object value)
public ThisType setProperty(String propertyName,
Object value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>propertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(Name propertyName,
Object[] values)
public ThisType setProperty(String propertyName,
Object[] values)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>propertyName - the name of the JavaBean-style property (e.g., "retryLimit")values - the array of new values for the property
public ThisType setProperty(String beanPropertyName,
boolean value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
int value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
short value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
long value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
double value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
float value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
String value)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")value - the new value for the property
public ThisType setProperty(String beanPropertyName,
String firstValue,
String... additionalValues)
ModeShapeConfiguration.SetProperties
setProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")firstValue - the first string value for the propertyadditionalValues - the additional string values for the property
public Property getProperty(String beanPropertyName)
ModeShapeConfiguration.SetProperties
getProperty in interface ModeShapeConfiguration.SetProperties<ThisType>beanPropertyName - the name of the JavaBean-style property (e.g., "retryLimit")
public Property getProperty(Name beanPropertyName)
public ReturnType remove()
ModeShapeConfiguration.Removable
remove in interface ModeShapeConfiguration.Removable<ReturnType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||