|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.graph.ObjectGraphUtilities
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
ObjectGraphUtilities()
|
Method Summary | |
static ObjectGraphEdge |
copyOf(ObjectGraphEdge edge)
Supported API: false |
static ObjectGraphNode |
copyOf(ObjectGraphNode node)
Supported API: false |
static ObjectGraphEdge |
getEdge(String id,
ObjectGraphEdge[] edgeList)
Supported API: false |
static ObjectGraphEdge |
getEdge(String id,
Vector edgeList)
Supported API: false |
static ObjectGraphEdge[] |
getEdgeArrayFrom(Vector vector)
Converts the given vector into a new array that is sized from the vector, which is trimmed. |
static Vector |
getEdgeVectorFrom(ObjectGraphEdge[] array)
Converts the given array into a new vector that is trimmed to the size of the array. |
static ObjectGraphTemplate[] |
getFragArrayFrom(Vector vector)
Converts the given vector into a new array that is sized from the vector, which is trimmed. |
static Vector |
getFragVectorFrom(ObjectGraphTemplate[] array)
Converts the given array into a new vector that is trimmed to the size of the array. |
static ObjectGraphNode |
getNode(String id,
ObjectGraphNode[] nodeList)
Supported API: false |
static ObjectGraphNode |
getNode(String id,
Vector nodeList)
Supported API: false |
static ObjectGraphNode[] |
getNodeArrayFrom(Vector vector)
Converts the given vector into a new array that is sized from the vector, which is trimmed. |
static Vector |
getNodeVectorFrom(ObjectGraphNode[] array)
Converts the given array into a new vector that is trimmed to the size of the array. |
static String[] |
getStringArrayFrom(Vector vector)
Converts the given vector into a new array that is sized from the vector, which is trimmed. |
static String |
newId()
Supported API: false |
static Object |
newInstance(Class type)
Supported API: false |
static Object |
newInstance(String typename)
Supported API: false |
private static Object |
newObject(Object object)
|
static void |
print(ObjectGraphEdge[] edgeList)
Supported API: false |
static void |
print(ObjectGraphEdge edge,
String header)
Supported API: false |
static void |
print(ObjectGraphNode[] nodeList)
Supported API: false |
static void |
print(ObjectGraphNode node,
String header)
Supported API: false |
static void |
print(ObjectGraph graph,
String header,
String trailer)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ObjectGraphUtilities thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public ObjectGraphUtilities()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ObjectGraphUtilities thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static String newId() throws ObjectGraphException
ObjectGraphException
public static Object newInstance(String typename) throws ObjectGraphException
typename
-
ObjectGraphException
public static Object newInstance(Class type) throws ObjectGraphException
type
-
ObjectGraphException
public static ObjectGraphNode copyOf(ObjectGraphNode node) throws ObjectGraphException
node
-
ObjectGraphException
public static ObjectGraphEdge copyOf(ObjectGraphEdge edge) throws ObjectGraphException
edge
-
ObjectGraphException
public static ObjectGraphNode[] getNodeArrayFrom(Vector vector)
vector
-
public static Vector getNodeVectorFrom(ObjectGraphNode[] array)
array
-
public static ObjectGraphEdge[] getEdgeArrayFrom(Vector vector)
vector
-
public static Vector getEdgeVectorFrom(ObjectGraphEdge[] array)
array
-
public static ObjectGraphTemplate[] getFragArrayFrom(Vector vector)
vector
-
public static Vector getFragVectorFrom(ObjectGraphTemplate[] array)
array
-
public static String[] getStringArrayFrom(Vector vector)
vector
-
public static ObjectGraphNode getNode(String id, ObjectGraphNode[] nodeList)
id
- nodeList
-
public static ObjectGraphNode getNode(String id, Vector nodeList)
id
- nodeList
-
public static ObjectGraphEdge getEdge(String id, ObjectGraphEdge[] edgeList)
id
- edgeList
-
public static ObjectGraphEdge getEdge(String id, Vector edgeList)
id
- edgeList
-
public static void print(ObjectGraph graph, String header, String trailer)
graph
- header
- trailer
- public static void print(ObjectGraphNode[] nodeList)
nodeList
- public static void print(ObjectGraphEdge[] edgeList)
edgeList
- public static void print(ObjectGraphNode node, String header)
node
- header
- public static void print(ObjectGraphEdge edge, String header)
edge
- header
- private static Object newObject(Object object) throws ObjectGraphException
ObjectGraphException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |