
Public Member Functions | |
| void | addChild (ERXRestRequestNode child) |
| Object | associatedObject () |
| Object | attributeForKey (String key) |
| Object | attributeOrChildNodeValue (String name) |
| NSDictionary< String, Object > | attributes () |
| ERXRestRequestNode | childNamed (String name) |
| NSArray< ERXRestRequestNode > | children () |
| ERXRestRequestNode | cloneNode () |
| Object | createObjectWithFilter (String entityName, ERXKeyFilter keyFilter, IERXRestDelegate delegate) |
| ERXRestRequestNode (String name, Object value, boolean rootNode) | |
| ERXRestRequestNode (String name, boolean rootNode) | |
| Object | id () |
| boolean | isArray () |
| boolean | isNull () |
| boolean | isRootNode () |
| String | name () |
| Object | objectWithFilter (String entityName, ERXKeyFilter keyFilter, IERXRestDelegate delegate) |
| Object | removeAttributeForKey (String key) |
| Object | removeAttributeOrChildNodeNamed (String name) |
| ERXRestRequestNode | removeChildNamed (String name) |
| void | setArray (boolean array) |
| void | setAssociatedObject (Object associatedObject) |
| void | setAttributeForKey (Object attribute, String key) |
| void | setID (Object id) |
| void | setName (String name) |
| void | setNull (boolean isNull) |
| void | setRootNode (boolean rootNode) |
| void | setType (String type) |
| void | setValue (Object value) |
| void | takeValueForKey (Object value, String key) |
| void | takeValueForKeyPath (Object value, String keyPath) |
| Object | toJavaCollection (ERXRestFormat.Delegate delegate, Map< Object, ERXRestRequestNode > conversionMap) |
| Object | toJavaCollection (ERXRestFormat.Delegate delegate) |
| Object | toNSCollection (ERXRestFormat.Delegate delegate) |
| String | toString (IERXRestWriter writer, ERXRestFormat.Delegate delegate) |
| String | toString (ERXRestFormat format) |
| String | toString () |
| String | type () |
| void | updateObjectWithFilter (Object obj, ERXKeyFilter keyFilter, IERXRestDelegate delegate) |
| Object | value () |
| Object | valueForKey (String key) |
| Object | valueForKeyPath (String keyPath) |
Static Public Member Functions | |
| static ERXRestRequestNode | requestNodeWithObjectAndFilter (Object obj, ERXKeyFilter keyFilter, IERXRestDelegate delegate) |
| static ERXRestRequestNode | requestNodeWithObjectAndFilter (EOClassDescription classDescription, List<?> objects, ERXKeyFilter keyFilter, IERXRestDelegate delegate) |
Protected Member Functions | |
| void | _addAttributeNodeForKeyInObject (ERXKey<?> key, Object obj, ERXKeyFilter keyFilter) |
| void | _addAttributesAndRelationshipsForObjectOfEntity (Object obj, EOClassDescription classDescription, ERXKeyFilter keyFilter, IERXRestDelegate delegate, Set< Object > visitedObjects) |
| void | _addToManyRelationshipNodeForKeyOfEntityInObject (ERXKey<?> key, EOClassDescription destinationEntity, Object obj, ERXKeyFilter keyFilter, IERXRestDelegate delegate, Set< Object > visitedObjects) |
| void | _addToOneRelationshipNodeForKeyInObject (ERXKey<?> key, Object obj, EOClassDescription destinationEntity, ERXKeyFilter keyFilter, IERXRestDelegate delegate, Set< Object > visitedObjects) |
| void | _fillInWithObjectAndFilter (Object obj, EOClassDescription classDescription, ERXKeyFilter keyFilter, IERXRestDelegate delegate, Set< Object > visitedObjects) |
| void | _safeDidSkipValueForKey (ERXKeyFilter keyFilter, Object target, Object value, String key) |
| void | _safeDidTakeValueForKey (ERXKeyFilter keyFilter, Object target, Object value, String key) |
| void | _safeWillTakeValueForKey (ERXKeyFilter keyFilter, Object target, Object value, String key) |
| void | guessNull () |
| boolean | isClassProperty (EOClassDescription classDescription, String key) |
| Object | toJavaCollection (ERXRestFormat.Delegate delegate, Map< Object, ERXRestRequestNode > conversionMap, Map< Object, Object > associatedObjects) |
| Object | toNSCollection (ERXRestFormat.Delegate delegate, NSMutableDictionary< Object, Object > associatedObjects) |
| void | toString (StringBuffer sb, int depth) |
Private Attributes | |
| boolean | _array |
| Object | _associatedObject |
| NSMutableDictionary< String, Object > | _attributes |
| NSMutableArray < ERXRestRequestNode > | _children |
| Object | _id |
| String | _name |
| boolean | _null |
| boolean | _rootNode |
| String | _type |
| Object | _value |
| ERXRestRequestNode | ( | String | name, | |
| boolean | rootNode | |||
| ) |
Construct a node with the given name
| name | the name of this node | |
| rootNode | if true, the node is the root of a graph |
| ERXRestRequestNode | ( | String | name, | |
| Object | value, | |||
| boolean | rootNode | |||
| ) |
Construct a node with the given name and value.
| name | the name of this node | |
| rootNode | if true, the node is the root of a graph | |
| value | the value of this node |
| void _addAttributeNodeForKeyInObject | ( | ERXKey<?> | key, | |
| Object | obj, | |||
| ERXKeyFilter | keyFilter | |||
| ) | [protected] |
| void _addAttributesAndRelationshipsForObjectOfEntity | ( | Object | obj, | |
| EOClassDescription | classDescription, | |||
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate, | |||
| Set< Object > | visitedObjects | |||
| ) | [protected] |
| void _addToManyRelationshipNodeForKeyOfEntityInObject | ( | ERXKey<?> | key, | |
| EOClassDescription | destinationEntity, | |||
| Object | obj, | |||
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate, | |||
| Set< Object > | visitedObjects | |||
| ) | [protected] |
| void _addToOneRelationshipNodeForKeyInObject | ( | ERXKey<?> | key, | |
| Object | obj, | |||
| EOClassDescription | destinationEntity, | |||
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate, | |||
| Set< Object > | visitedObjects | |||
| ) | [protected] |
| void _fillInWithObjectAndFilter | ( | Object | obj, | |
| EOClassDescription | classDescription, | |||
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate, | |||
| Set< Object > | visitedObjects | |||
| ) | [protected] |
| void _safeDidSkipValueForKey | ( | ERXKeyFilter | keyFilter, | |
| Object | target, | |||
| Object | value, | |||
| String | key | |||
| ) | [protected] |
| void _safeDidTakeValueForKey | ( | ERXKeyFilter | keyFilter, | |
| Object | target, | |||
| Object | value, | |||
| String | key | |||
| ) | [protected] |
| void _safeWillTakeValueForKey | ( | ERXKeyFilter | keyFilter, | |
| Object | target, | |||
| Object | value, | |||
| String | key | |||
| ) | [protected] |
| void addChild | ( | ERXRestRequestNode | child | ) |
Adds a child to this node.
| child | the child to add |
| Object associatedObject | ( | ) |
Returns the original object associated with this node.
| Object attributeForKey | ( | String | key | ) |
Returns the attribute value for the given key.
| key | the key |
| Object attributeOrChildNodeValue | ( | String | name | ) |
Returns the type of this node.
| NSDictionary<String, Object> attributes | ( | ) |
Returns the attributes dictionary for this node.
| ERXRestRequestNode childNamed | ( | String | name | ) |
Returns the first child named 'name'.
| name | the name to look for |
| NSArray<ERXRestRequestNode> children | ( | ) |
Returns the children of this node.
| ERXRestRequestNode cloneNode | ( | ) |
Clones this node.
| Object createObjectWithFilter | ( | String | entityName, | |
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate | |||
| ) |
Creates a new instance of an object represented by this request node.
| entityName | the entity name of the object to use | |
| keyFilter | the filter to use for determining which keys can be updated (or null for no update) | |
| delegate | the delegate to use |
| void guessNull | ( | ) | [protected] |
| Object id | ( | ) |
Returns the ID associated with this node.
| boolean isArray | ( | ) |
Return whether or not this node represents an array or to-many relationship.
| boolean isClassProperty | ( | EOClassDescription | classDescription, | |
| String | key | |||
| ) | [protected] |
| boolean isNull | ( | ) |
Returns whether or not this node represents a null value.
| boolean isRootNode | ( | ) |
Returns whether or not this is a root node (a root node is one that would typically have a node name that is an entity name -- the actual root, or elements in an array, for instance).
| String name | ( | ) |
Returns the name of this node.
| Object objectWithFilter | ( | String | entityName, | |
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate | |||
| ) |
Returns the object that this request node represents.
| entityName | the entity name of the object to use | |
| keyFilter | the filter to use for determining which keys can be updated (or null for no update) | |
| delegate | the delegate to use |
| Object removeAttributeForKey | ( | String | key | ) |
Removes the attribute that has the given name.
| key | the name of the attribute to remove |
| Object removeAttributeOrChildNodeNamed | ( | String | name | ) |
Removes the attribute or child node that has the given name (and returns it).
| name | the name of the attribute or node to remove |
| ERXRestRequestNode removeChildNamed | ( | String | name | ) |
Removes the child name that has the given name.
| name | the name of the node to remove |
| static ERXRestRequestNode requestNodeWithObjectAndFilter | ( | Object | obj, | |
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate | |||
| ) | [static] |
Creates a hierarchy of ERXRestRequestNodes based off of the given object.
| obj | the object to turn into request nodes | |
| keyFilter | the filter to use |
| static ERXRestRequestNode requestNodeWithObjectAndFilter | ( | EOClassDescription | classDescription, | |
| List<?> | objects, | |||
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate | |||
| ) | [static] |
Creates a hierarchy of ERXRestRequestNodes based off of the given array of objects.
| classDescription | the entity type of the objects in the array | |
| objects | the array to turn into request nodes | |
| keyFilter | the filter to use |
| void setArray | ( | boolean | array | ) |
Sets whether or not this node represents an array or to-many relationship.
| array | whether or not this node represents an array or to-many relationship |
| void setAssociatedObject | ( | Object | associatedObject | ) |
Sets the original object associated with this node.
| associatedObject | the original object associated with this node |
| void setAttributeForKey | ( | Object | attribute, | |
| String | key | |||
| ) |
Sets the attribute value for the given key.
| attribute | the attribute value | |
| key | the key |
| void setID | ( | Object | id | ) |
Sets the ID associated with this node.
| id | the ID associated with this node |
| void setName | ( | String | name | ) |
Sets the name of this node.
| name | the name of this node |
| void setNull | ( | boolean | isNull | ) |
Sets whether or not this node represents a null value.
| isNull | whether or not this node represents a null value |
| void setRootNode | ( | boolean | rootNode | ) |
Sets whether or not this is a root node (a root node is one that would typically have a node name that is an entity name -- the actual root, or elements in an array, for instance).
| rootNode | whether or not this is a root node |
| void setType | ( | String | type | ) |
Sets the type of this node (type as in the Class that it represents).
| type | the type of this node |
| void setValue | ( | Object | value | ) |
Sets the value for this node.
| value | the value for this node |
| void takeValueForKey | ( | Object | value, | |
| String | key | |||
| ) |
| void takeValueForKeyPath | ( | Object | value, | |
| String | keyPath | |||
| ) |
| Object toJavaCollection | ( | ERXRestFormat.Delegate | delegate, | |
| Map< Object, ERXRestRequestNode > | conversionMap, | |||
| Map< Object, Object > | associatedObjects | |||
| ) | [protected] |
Returns the Java object that corresponds to this node hierarchy.
| delegate | the format delegate to notify during rendering | |
| conversionMap | the conversion map to use to record object => request node mappings | |
| associatedObjects | the associatedObjects map (to prevent infinite loops) |
| Object toJavaCollection | ( | ERXRestFormat.Delegate | delegate, | |
| Map< Object, ERXRestRequestNode > | conversionMap | |||
| ) |
Returns the Java object that corresponds to this node hierarchy.
| delegate | the format delegate to notify during rendering | |
| conversionMap | the conversion map to use to record object => request node mappings |
| Object toJavaCollection | ( | ERXRestFormat.Delegate | delegate | ) |
Returns the Java object that corresponds to this node hierarchy.
| delegate | the format delegate to notify during rendering |
| Object toNSCollection | ( | ERXRestFormat.Delegate | delegate, | |
| NSMutableDictionary< Object, Object > | associatedObjects | |||
| ) | [protected] |
Returns the NSCollection/Java object that corresponds to this node hierarchy.
| associatedObjects | the associatedObjects map (to prevent infinite loops) |
| Object toNSCollection | ( | ERXRestFormat.Delegate | delegate | ) |
Returns the NSCollection/Java object that corresponds to this node hierarchy.
| String toString | ( | IERXRestWriter | writer, | |
| ERXRestFormat.Delegate | delegate | |||
| ) |
Returns a string representation of this request node using the given IERXRestWriter.
| writer | the writer to use |
| String toString | ( | ERXRestFormat | format | ) |
| void toString | ( | StringBuffer | sb, | |
| int | depth | |||
| ) | [protected] |
| String toString | ( | ) |
| String type | ( | ) |
Returns the type of this node (type as in the Class that it represents).
| void updateObjectWithFilter | ( | Object | obj, | |
| ERXKeyFilter | keyFilter, | |||
| IERXRestDelegate | delegate | |||
| ) |
Updates the given object based on this request node.
| obj | the object to update | |
| keyFilter | the filter to use to determine how to update | |
| delegate | the delegate |
| Object value | ( | ) |
Returns the value for this node (or null if it doesn't exist).
| Object valueForKey | ( | String | key | ) |
| Object valueForKeyPath | ( | String | keyPath | ) |
boolean _array [private] |
Object _associatedObject [private] |
NSMutableDictionary<String, Object> _attributes [private] |
NSMutableArray<ERXRestRequestNode> _children [private] |
Object _id [private] |
boolean _null [private] |
boolean _rootNode [private] |
Object _value [private] |
1.5.8