|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.prop.statics.GraphPropertyInitializer
public final class GraphPropertyInitializer
Utility class with mechanism for simultaneously setting all graph properties in an Object
| Constructor Summary | |
|---|---|
GraphPropertyInitializer()
|
|
| Method Summary | |
|---|---|
static Graph |
getGraphProperty(Graph origG,
Class<?> wantedProp)
Get a given property for a graph if the graph (or one if its nested graphs) has this property. |
static Graph |
requireGraphProperty(Graph origG,
Class wantedProp)
Convert a graph to a given property. |
static void |
setGraphProperties(Object target,
Graph g)
Simultaneously set all graph properties (i.e. all fields implementing interface Graph) of a target object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphPropertyInitializer()
| Method Detail |
|---|
public static void setGraphProperties(Object target,
Graph g)
target - the object where all graph properties shall be setg - the graph to set
public static Graph getGraphProperty(Graph origG,
Class<?> wantedProp)
origG - the graph for which the property shall be returnedwantedProp - the desired property
public static Graph requireGraphProperty(Graph origG,
Class wantedProp)
origG - the graph for which the property shall be returnedwantedProp - the desired property
UnsupportedGraphProperty - thrown if the graph does not possess
the given property.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||