public static class PropertyNameList.PropertyName<T> extends Object implements PropertyRequestItem
PropertyRequestItem.NestedPropertyName<T>, PropertyRequestItem.PropertyRequest
Constructor and Description |
---|
PropertyNameList.PropertyName(String namespace,
String name)
Create a PropertyName with the given namespace and name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
String |
getName()
Get the property name.
|
String |
getNamespace()
Get the namespace of the property name.
|
int |
hashCode()
Calculate a hash code value for the object.
|
PropertyRequestItem.NestedPropertyName<T> |
nest(PropertyNameList.PropertyName<?>[] pnl)
A convenience method for constructing nested property names from a
PropertyName[] without requiring an explicit cast to
PropertyRequestItem[]
|
PropertyRequestItem.NestedPropertyName<T> |
nest(PropertyRequestItem... pnl)
Constructs a NestedPropertyName whose root property is this
PropertyName with the property request items supplied as arguments as
its nested property request.
|
PropertyRequestItem.NestedPropertyName<T> |
nest(PropertyRequestItem.NestedPropertyName<?>[] pnl)
A convenience method for constructing nested property names from a
NestedPropertyName[] without requiring an explicit cast to
PropertyRequestItem[]
|
String |
toString()
Returns a string representation of the PropertyName for diagnostic
purposes.
|
public PropertyNameList.PropertyName(String namespace, String name)
namespace
- the namespace for this PropertyName.
May be null to indicate a system property, or non-null
to indicate a property in the specified name space.name
- the name for this property. May not be null.public boolean equals(Object o)
equals
in class Object
o
- the object to compare with.public String getName()
public String getNamespace()
public int hashCode()
hashCode
in class Object
public PropertyRequestItem.NestedPropertyName<T> nest(PropertyNameList.PropertyName<?>[] pnl)
pnl
- A PropertyName[] that specifies the nested properties of
the NestedPropertyName to be constructedpublic PropertyRequestItem.NestedPropertyName<T> nest(PropertyRequestItem... pnl)
final static PropertyRequest WORKSPACE_PROPERTIES = new PropertyRequest( Workspace.DISPLAY_NAME, Workspace.COMMENT, Workspace.ACTIVITY_LIST.nest( Activity.DISPLAY_NAME, Activity.ACTIVITY_VERSION_LIST.nest( Version.DISPLAY_NAME, Version.COMMENT, Version.CREATION_DATE)));
pnl
- An array of PropertyRequestItem objects that specify the
properties to be requested from the value of the property
identified by this PropertyName.public PropertyRequestItem.NestedPropertyName<T> nest(PropertyRequestItem.NestedPropertyName<?>[] pnl)
pnl
- A NestedPropertyName[] that specifies the nested
properties of the NestedPropertyName to be constructedpublic String toString()
toString
in class Object
Object.toString()
Copyright © IBM 2017. All rights reserved.