|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.wvcm.PropertyNameList
public final class 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. |
Field Summary | |
---|---|
static PropertyNameList |
EMPTY_DO_NOT_DETERMINE_RESOURCETYPE
|
Constructor Summary | |
---|---|
PropertyNameList(PropertyNameList.PropertyName[] propertyNames)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
java.lang.String |
toString()
Return the string representation of the list. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static PropertyNameList EMPTY_DO_NOT_DETERMINE_RESOURCETYPE
Constructor Detail |
---|
public PropertyNameList(PropertyNameList.PropertyName[] propertyNames)
propertyNames
- An array of property names.Method Detail |
---|
public PropertyNameList.PropertyName[] getPropertyNames()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |