Project: stp

javax.wvcm
Class PropertyRequestItem.NestedPropertyName<T>

Object
  extended by javax.wvcm.PropertyRequestItem.NestedPropertyName<T>
All Implemented Interfaces:
PropertyRequestItem
Enclosing interface:
PropertyRequestItem

public static class PropertyRequestItem.NestedPropertyName<T>
extends Object
implements PropertyRequestItem

A NestedPropertyName consists of the name of a root property whose value is desired and an optional request for nested properties of the resource (or resources) referenced by the value of that root property.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.wvcm.PropertyRequestItem
PropertyRequestItem.NestedPropertyName<T>, PropertyRequestItem.PropertyRequest
 
Constructor Summary
PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root, PropertyNameList.PropertyName<?>[] items)
          Constructs a NestedPropertyName from its constituent parts.
PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root, PropertyRequestItem... items)
          Constructs a NestedPropertyName from its constituent parts.
PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root, PropertyRequestItem.NestedPropertyName<?>[] items)
          Constructs a NestedPropertyName from its constituent parts.
 
Method Summary
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 PropertyRequestItem.PropertyRequest getNested()
           
 PropertyNameList.PropertyName<T> getRoot()
           
 int hashCode()
          Calculate a hash code value for the object.
 String toString()
          Returns a string representation of this NestedPropertyName suitable for diagnostics.
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyRequestItem.NestedPropertyName

public PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root,
                                              PropertyNameList.PropertyName<?>[] items)
Constructs a NestedPropertyName from its constituent parts.

Parameters:
root - The root PropertyName of the request; must not be null.
items - The PropertyRequest for the value(s) of the root property; may be null or empty to request no nested properties.

PropertyRequestItem.NestedPropertyName

public PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root,
                                              PropertyRequestItem... items)
Constructs a NestedPropertyName from its constituent parts.

Parameters:
root - The root PropertyName of the request; must not be null.
items - The PropertyRequest for the value(s) of the root property; may be null or empty to request no nested properties.

PropertyRequestItem.NestedPropertyName

public PropertyRequestItem.NestedPropertyName(PropertyNameList.PropertyName<T> root,
                                              PropertyRequestItem.NestedPropertyName<?>[] items)
Constructs a NestedPropertyName from its constituent parts.

Parameters:
root - The root PropertyName of the request; must not be null.
items - The PropertyRequest for the value(s) of the root property; may be null or empty to request no nested properties.
Method Detail

equals

public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
o - the object to compare with.
Returns:
true if and only if the specified object is a NestedPropertyName whose root property name and nested property name list values are equal to those of this object.

getNested

public PropertyRequestItem.PropertyRequest getNested()
Returns:
The nested PropertyRequest, specifying the properties to be requested from the resource or resources that are the value of the root property name of this nested property name.

getRoot

public PropertyNameList.PropertyName<T> getRoot()
Returns:
The root PropertyName of this nested property name object; will never be null.

hashCode

public int hashCode()
Calculate a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
the hash code for the object.

toString

public String toString()
Returns a string representation of this NestedPropertyName suitable for diagnostics.

Overrides:
toString in class Object
Returns:
The string representation of this NestedPropertyName formatted as "property_name [first_nested_property_request, ... , last_nested_property_request]"

Generated Tue 7-Feb-2017 11:15 PM

Copyright © IBM 2017. All rights reserved.