| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | ASCII_LINE_LENGTH
The maximum length of the text lines to be used when generating ASCII property lists. |
| private static final String | INDENT
The indentation character used for generating the XML output. |
| private LocationInformation | |
| pack-priv static final String | NEWLINE
The newline character used for generating the XML output. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | assignIDs(BinaryPropertyListWriter
The writer object that handles the binary serialization. out)Assigns IDs to all the objects in this NSObject subtree. |
| public abstract NSObject | Returns: A clone of this instance.Overrides java. Creates and returns a deep copy of this instance. |
| private Object | |
| private Object | |
| private static Object | |
| private static Date | |
| private Object | |
| private static Object | |
| private Object | |
| private static Object | |
| private static NSObject | |
| private static NSArray | |
| private static NSData | |
| public static NSObject | Returns: A NSObject instance.The object to serialize. object)Serializes the specified object into an NSObject. |
| private static NSDictionary | |
| private static NSDictionary | |
| private static NSSet | |
| private static NSObject | |
| private static Class | |
| private static Object | |
| public LocationInformation | Returns: The location information, ornull if it is not available.Gets information about the location of this NSObject within the parsed property list, if available. |
| protected void | indent(StringBuilder
The xml, int StringBuilder onto which the XML representation is appended.The level of indentation. level)Helper method that adds correct indentation to the xml output. |
| private static boolean | |
| private static String | |
| pack-priv void | setLocationInformation(LocationInformation
The location information. locationInformation)Sets the location information. |
| pack-priv abstract void | toASCII(StringBuilder
The ascii, int StringBuilder onto which the ASCII representation is appended.The indentation level of the object. level)Generates the ASCII representation of this object. |
| pack-priv abstract void | toASCIIGnuStep(StringBuilder
The ascii, int StringBuilder onto which the ASCII representation is appended.The indentation level of the object. level)Generates the ASCII representation of this object in the GnuStep format. |
| pack-priv abstract void | toBinary(BinaryPropertyListWriter
The output stream to serialize the object to. out)Generates the binary representation of the object. |
| public abstract Object | Returns: A native java object representing this NSObject's value.Converts this NSObject into an equivalent object of the Java Runtime Environment. |
| public < The target object type. T> T | Returns: A new instance of the specified class, deserialized from this NSObject.The target class. clazz)Converts this NSObject into an object of the specified class. |
| private Object | |
| pack-priv abstract void | toXML(StringBuilder
The xml, int StringBuilder onto which the XML representation is appended.The indentation level of the object. level)Generates the XML representation of the object (without XML headers or enclosing plist-tags). |
| public String | Returns: The XML representation of the property list including XML header and doctype information.Generates a valid XML property list including headers using this object as root. |
| ASCII_LINE_LENGTH | back to summary |
|---|---|
| pack-priv static final int ASCII_LINE_LENGTH The maximum length of the text lines to be used when generating ASCII property lists. But this number is only a guideline it is not guaranteed that it will not be overstepped. | |
| INDENT | back to summary |
|---|---|
| private static final String INDENT The indentation character used for generating the XML output. This is the tabulator character. | |
| locationInformation | back to summary |
|---|---|
| private LocationInformation locationInformation | |
| NEWLINE | back to summary |
|---|---|
| pack-priv static final String NEWLINE The newline character used for generating the XML output. This constant will be different depending on the operating system on which you use this library. | |
| NSObject | back to summary |
|---|---|
| public NSObject() | |
| assignIDs | back to summary |
|---|---|
| pack-priv void assignIDs(BinaryPropertyListWriter out) Assigns IDs to all the objects in this NSObject subtree.
| |
| clone | back to summary |
|---|---|
| public abstract NSObject clone() Overrides java. Creates and returns a deep copy of this instance. | |
| deserializeArray | back to summary |
|---|---|
| private Object deserializeArray(NSObject payload, Class<?> clazz) | |
| deserializeCollection | back to summary |
|---|---|
| private Object deserializeCollection(NSObject payload, Class<?> clazz, Type[] types) | |
| deserializeData | back to summary |
|---|---|
| private static Object deserializeData(NSData payload, Class<?> elementClass) | |
| deserializeDate | back to summary |
|---|---|
| private static Date deserializeDate(NSDate date, Class<?> clazz) | |
| deserializeMap | back to summary |
|---|---|
| private Object deserializeMap(Class<?> clazz, Type[] types, Map<String, NSObject> map) | |
| deserializeNumber | back to summary |
|---|---|
| private static Object deserializeNumber(final NSNumber number, Class<?> clazz) | |
| deserializeObject | back to summary |
|---|---|
| private Object deserializeObject(NSDictionary payload, Class<?> clazz, Type[] types) | |
| deserializeSimple | back to summary |
|---|---|
| private static Object deserializeSimple(NSObject payload, Class<?> clazz) | |
| fromArray | back to summary |
|---|---|
| private static NSObject fromArray(Object object, Class<?> objClass) | |
| fromCollection | back to summary |
|---|---|
| private static NSArray fromCollection(Collection<?> collection) | |
| fromData | back to summary |
|---|---|
| private static NSData fromData(Object object) | |
| fromJavaObject | back to summary |
|---|---|
| public static NSObject fromJavaObject(Object object) Serializes the specified object into an NSObject.
Objects which do not have a direct type correspondence to an NSObject type will be serialized as a
| |
| fromMap | back to summary |
|---|---|
| private static NSDictionary fromMap(Map<?, ?> map) | |
| fromPojo | back to summary |
|---|---|
| private static NSDictionary fromPojo(Object object, Class<?> objClass) | |
| fromSet | back to summary |
|---|---|
| private static NSSet fromSet(Set<?> set) | |
| fromSimple | back to summary |
|---|---|
private static NSObject fromSimple(Object object, Class<?> objClass)
| |
| getClassForName | back to summary |
|---|---|
| private static Class | |
| getInstance | back to summary |
|---|---|
| private static Object getInstance(Class<?> clazz) | |
| getLocationInformation | back to summary |
|---|---|
| public LocationInformation getLocationInformation() Gets information about the location of this NSObject within the parsed property list, if available.
| |
| indent | back to summary |
|---|---|
| protected void indent(StringBuilder xml, int level) Helper method that adds correct indentation to the xml output.
Calling this method will add
| |
| isSimple | back to summary |
|---|---|
| private static boolean isSimple(Class<?> clazz) | |
| makeFirstCharLowercase | back to summary |
|---|---|
| private static String makeFirstCharLowercase(String input) | |
| setLocationInformation | back to summary |
|---|---|
| pack-priv void setLocationInformation(LocationInformation locationInformation) Sets the location information.
| |
| toASCII | back to summary |
|---|---|
| pack-priv abstract void toASCII(StringBuilder ascii, int level) Generates the ASCII representation of this object. The generated ASCII representation does not end with a newline. Complies with the Old-Style ASCII Property Lists definition.
| |
| toASCIIGnuStep | back to summary |
|---|---|
| pack-priv abstract void toASCIIGnuStep(StringBuilder ascii, int level) Generates the ASCII representation of this object in the GnuStep format. The generated ASCII representation does not end with a newline.
| |
| toBinary | back to summary |
|---|---|
| pack-priv abstract void toBinary(BinaryPropertyListWriter out) throws IOException Generates the binary representation of the object.
| |
| toJavaObject | back to summary |
|---|---|
| public abstract Object toJavaObject() Converts this NSObject into an equivalent object of the Java Runtime Environment.
| |
| toJavaObject | back to summary |
|---|---|
| public <T> T toJavaObject(Class<T> clazz) Converts this NSObject into an object of the specified class.
| |
| toJavaObject | back to summary |
|---|---|
| private Object toJavaObject(NSObject payload, Class<?> clazz, Type[] types) | |
| toXML | back to summary |
|---|---|
| pack-priv abstract void toXML(StringBuilder xml, int level) Generates the XML representation of the object (without XML headers or enclosing plist-tags).
| |
| toXMLPropertyList | back to summary |
|---|---|
| public String toXMLPropertyList() Generates a valid XML property list including headers using this object as root.
| |