public class Serialization extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.gephi.graph.api.GraphModel |
graphModel |
private static Serialization |
INSTANCE_WITHOUT_GRAPH_MODEL |
| Constructor and Description |
|---|
Serialization() |
Serialization(org.gephi.graph.api.GraphModel graphModel) |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromText(String valueStr,
Class valueClass) |
static String |
getValueAsText(Object value)
Converts any value to a serialized String.
|
static String |
getValueAsText(Object value,
Class valueClass)
Converts any value to a serialized String.
|
static boolean |
isPrimitiveOrPrimitiveWrapper(Class<?> type) |
static Object |
parsePrimitiveOrWrapper(Class valueClass,
String value) |
static Object |
readValueFromText(String valueStr,
Class valueClass)
Deserializes a serialized String of the given class.
|
static Object |
readValueFromText(String valueStr,
String valueClassStr)
Deserializes a serialized String of the given class name.
|
String |
toText(Object value) |
String |
toText(Object value,
Class valueClass) |
private final org.gephi.graph.api.GraphModel graphModel
private static final Serialization INSTANCE_WITHOUT_GRAPH_MODEL
public Serialization()
public Serialization(org.gephi.graph.api.GraphModel graphModel)
public static String getValueAsText(Object value)
PropertyEditor for serialization except for values of Font class.value - Value to serialize as StringPropertyEditorpublic static String getValueAsText(Object value, Class valueClass)
PropertyEditor for serialization except for values of Font class.value - Value to serialize as StringvalueClass - Class to use for the valuePropertyEditorpublic static Object readValueFromText(String valueStr, Class valueClass)
PropertyEditor for serialization except for values of Font class.valueStr - String to deserializevalueClass - Class of the serialized valuePropertyEditorpublic static Object readValueFromText(String valueStr, String valueClassStr)
PropertyEditor for serialization except for values of Font
class.valueStr - String to deserializevalueClassStr - Class name of the serialized valuePropertyEditorpublic static boolean isPrimitiveOrPrimitiveWrapper(Class<?> type)
Copyright © 2007–2017 Gephi Consortium. All rights reserved.