|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.carrierwave.plan.GraphPlanFactory
The GraphPlanFactory class provides methods to instantiate or generate GraphPlan
instances or
GraphNode
node trees from an Image
class or instance.
Method Summary | |
protected static void |
addAllChildrenNodesTo(GraphPlan graphPlan,
ImageTypeMap imageTypeMap,
GraphNode parentNode,
boolean includeLiterals,
int depth)
not sure if includeLiterals should be promoted to GraphPlan, since it only affects plan generation (so far), and not modify or select calls. |
static GraphPlan |
createGraphPlanFor(Image originImage,
java.lang.String fullName)
Returns a new GraphPlan instance with a runtime graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(Image originImage,
java.lang.String fullName,
int depth)
Returns a new GraphPlan instance with a runtime graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(Image originImage,
java.lang.String fullName,
int depth,
boolean isFuzzy)
Returns a new GraphPlan instance with a runtime graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(Image originImage,
java.lang.String fullName,
int depth,
boolean ignoreReadonly,
boolean dependentsInclusive,
boolean isFuzzy)
Returns a new GraphPlan instance with a runtime graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(java.lang.String imageType,
java.lang.String fullName,
int depth)
Returns a new GraphPlan instance with a static graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(java.lang.String imageType,
java.lang.String fullName,
int depth,
boolean isFuzzy)
Returns a new GraphPlan instance with a static graph node tree generated by the given meta-data. |
static GraphPlan |
createGraphPlanFor(java.lang.String imageType,
java.lang.String fullName,
int depth,
boolean ignoreReadonly,
boolean dependentsInclusive,
boolean isFuzzy)
Returns a new GraphPlan instance with a static graph node tree generated by the given meta-data. |
static GraphNode |
createNodeSetFor(java.lang.String defaultImageType,
GraphNode parentNode,
GraphNode foundNode,
GraphNode currentNode)
|
static GraphNode |
getGraphNodeTreeFor(GraphPlan graphPlan,
Image originImage)
Returns the graph node tree associated with the given GraphPlan instance, otherwise a new runtime graph node tree is generated using the GraphPlan meta-data and the Image instance. |
static GraphNode |
getGraphNodeTreeFor(GraphPlan graphPlan,
java.lang.String imageType)
Returns the graph node tree associated with the given GraphPlan instance, otherwise a new static graph node tree is generated using the GraphPlan meta-data and the imageType. |
static java.util.List |
getGraphNodeTreesFor(GraphPlan graphPlan,
ImageGraph imageGraph)
Returns a list of runtime graph node trees (one for each originImage) using the GraphPlan meta-data and the ImageGraph instance. Note, this method currently ignores any originNode on the given GraphPlan instance. |
static GraphPlan |
initializeGraphPlan(Image originImage,
GraphPlan graphPlan)
Returns the given GraphPlan instance initialized with a static graph node tree using the graph plan meta-data and the given Image instance. |
static GraphPlan |
initializeGraphPlan(java.lang.String imageType,
GraphPlan graphPlan)
Returns the given GraphPlan instance initialized with a static graph node tree using the graph plan meta-data and the given imageType. |
static GraphNode |
makeGraphNodeTreeFor(GraphPlan graphPlan,
Image originImage)
Creates a new graph node tree using the GraphPlan meta-data and the given Image instance. |
static GraphNode |
makeGraphNodeTreeFor(GraphPlan graphPlan,
java.lang.String imageType)
Creates a new graph node tree using the GraphPlan meta-data and the given imageType. |
static GraphNode |
makeGraphNodeTreeFor(GraphPlan graphPlan,
java.lang.String imageType,
boolean includeLiterals)
|
static java.util.List |
makeGraphNodeTreesFor(GraphPlan graphPlan,
ImageGraph imageGraph)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final GraphPlan createGraphPlanFor(java.lang.String imageType, java.lang.String fullName, int depth) throws GraphPlanException
imageType
- fullName
- depth
-
GraphPlanException
public static final GraphPlan createGraphPlanFor(java.lang.String imageType, java.lang.String fullName, int depth, boolean isFuzzy) throws GraphPlanException
imageType
- fullName
- depth
- isFuzzy
-
GraphPlanException
public static final GraphPlan createGraphPlanFor(java.lang.String imageType, java.lang.String fullName, int depth, boolean ignoreReadonly, boolean dependentsInclusive, boolean isFuzzy) throws GraphPlanException
imageType
- when null, a simple graph plan is returned with no node treefullName
- depth
- ignoreReadonly
- dependentsInclusive
- isFuzzy
-
GraphPlanException
public static final GraphPlan initializeGraphPlan(java.lang.String imageType, GraphPlan graphPlan) throws GraphPlanException
imageType
- graphPlan
-
GraphPlanException
public static final GraphPlan createGraphPlanFor(Image originImage, java.lang.String fullName) throws GraphPlanException, EdgeNotFoundException, GraphException
originImage
- fullName
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphPlan createGraphPlanFor(Image originImage, java.lang.String fullName, int depth) throws GraphPlanException, EdgeNotFoundException, GraphException
originImage
- fullName
- depth
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphPlan createGraphPlanFor(Image originImage, java.lang.String fullName, int depth, boolean isFuzzy) throws GraphPlanException, EdgeNotFoundException, GraphException
originImage
- fullName
- depth
- isFuzzy
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphPlan createGraphPlanFor(Image originImage, java.lang.String fullName, int depth, boolean ignoreReadonly, boolean dependentsInclusive, boolean isFuzzy) throws GraphPlanException, EdgeNotFoundException, GraphException
originImage
- fullName
- depth
- ignoreReadonly
- dependentsInclusive
- isFuzzy
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphPlan initializeGraphPlan(Image originImage, GraphPlan graphPlan) throws GraphPlanException, EdgeNotFoundException, GraphException
originImage
- graphPlan
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphNode getGraphNodeTreeFor(GraphPlan graphPlan, java.lang.String imageType) throws GraphPlanException
graphPlan
- imageType
-
GraphPlanException
public static final GraphNode getGraphNodeTreeFor(GraphPlan graphPlan, Image originImage) throws GraphPlanException, EdgeNotFoundException, GraphException
graphPlan
- originImage
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final java.util.List getGraphNodeTreesFor(GraphPlan graphPlan, ImageGraph imageGraph) throws GraphPlanException, EdgeNotFoundException, GraphException
graphPlan
- imageGraph
-
GraphPlanException
EdgeNotFoundException
GraphException
public static final GraphNode makeGraphNodeTreeFor(GraphPlan graphPlan, java.lang.String imageType) throws GraphPlanException
graphPlan
- imageType
-
GraphPlanException
public static final GraphNode makeGraphNodeTreeFor(GraphPlan graphPlan, java.lang.String imageType, boolean includeLiterals) throws GraphPlanException
GraphPlanException
protected static final void addAllChildrenNodesTo(GraphPlan graphPlan, ImageTypeMap imageTypeMap, GraphNode parentNode, boolean includeLiterals, int depth) throws GraphPlanException
graphPlan
- imageTypeMap
- parentNode
- includeLiterals
- depth
-
GraphPlanException
public static final java.util.List makeGraphNodeTreesFor(GraphPlan graphPlan, ImageGraph imageGraph) throws EdgeNotFoundException, GraphException
EdgeNotFoundException
GraphException
public static final GraphNode makeGraphNodeTreeFor(GraphPlan graphPlan, Image originImage) throws EdgeNotFoundException, GraphException
graphPlan
- originImage
-
EdgeNotFoundException
GraphException
public static final GraphNode createNodeSetFor(java.lang.String defaultImageType, GraphNode parentNode, GraphNode foundNode, GraphNode currentNode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |