Project: stp

javax.wvcm
Class PropertyNameList

Object
  extended by javax.wvcm.PropertyNameList
All Implemented Interfaces:
PropertyRequestItem

public final class PropertyNameList
extends Object
implements PropertyRequestItem

A list of resource property names.

Since:
1.0

Nested Class Summary
static class PropertyNameList.PropertyName<T>
          The name of a property of a persistent resource.
 
Nested classes/interfaces inherited from interface javax.wvcm.PropertyRequestItem
PropertyRequestItem.NestedPropertyName<T>, PropertyRequestItem.PropertyRequest
 
Constructor Summary
PropertyNameList(PropertyNameList.PropertyName<?>... propertyNames)
          Construct a PropertyNameList from an array of property names.
 
Method Summary
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 PropertyNameList.PropertyName<?>[] getPropertyNames()
          Get an array of property names from a property name list.
 int hashCode()
          Calculate a hash code for a PropertyNameList.
 String toString()
          Returns a string representation of this PropertyNameList suitable for diagnostics.
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyNameList

public PropertyNameList(PropertyNameList.PropertyName<?>... propertyNames)
Construct a PropertyNameList from an array of property names.

Parameters:
propertyNames - an array of property names, or null. Passing null is equivalent to passing an empty array.
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 PropertyNameList whose property names array is equal to the property names array of this ignoring order.

getPropertyNames

public PropertyNameList.PropertyName<?>[] getPropertyNames()
Get an array of property names from a property name list.

Returns:
the array of property names maintained by this PropertyNameList. Will never be null.

hashCode

public int hashCode()
Calculate a hash code for a PropertyNameList.

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

toString

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

Overrides:
toString in class Object
Returns:
The string representation of this PropertyNameList formatted as "[<first property name>, <second property name>]"

Generated Sun 13-Nov-2011 09:26 AM

Copyright © IBM 2011. All rights reserved.