|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object | +--PropertyNameList
A list of resource property names. One of the most common applications of a PropertyNameList is to identify a list of property values to be retrieved from a persistent resource.
The property names can be nested, reflecting the fact that property values can be objects that in turn have properties. For example, the following code fragment creates a property name list that identifies the CREATOR_DISPLAYNAME, CHECKED_IN, and LAST_MODIFIED properties, as well as the VERSION_NAME and CREATION_DATE of the value of the CHECKED_IN property:
PropertyNameList pnl =
new PropertyNameList(new PropertyName[] {
PropertyName.CREATOR_DISPLAY_NAME,
new NestedPropertyName(
PropertyName.CHECKED_IN,
new PropertyNameList(new PropertyName[] {
PropertyName.VERSION_NAME,
PropertyName.CREATION_DATE }),
PropertyName.LAST_MODIFIED)});
| Nested Class Summary | |
static class |
PropertyNameList.AttributeName
A name of an attribute. |
static class |
PropertyNameList.NestedPropertyName
A property name that has a nested property name list. |
static class |
PropertyNameList.PropertyName
The name of a property of a persistent resource. |
| Constructor Summary | |
PropertyNameList(PropertyNameList.PropertyName[] propertyNames)
|
|
| Method Summary | |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
PropertyNameList.PropertyName[] |
getPropertyNames()
Return the array of property names maintained by this PropertyNameList. |
int |
hashCode()
Returns a hash code value for the object. |
| Methods inherited from class Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyNameList(PropertyNameList.PropertyName[] propertyNames)
propertyNames - An array of property names.| Method Detail |
public PropertyNameList.PropertyName[] getPropertyNames()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||