|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.StarTeamCollection
com.starteam.PropertyCollection
public class PropertyCollection
A Collection of Properties supported by a specific Type
| Constructor Summary | |
|---|---|
PropertyCollection()
Construct a empty collection of properties |
|
PropertyCollection(Property p)
Construct a collection of properties containing only the given property |
|
PropertyCollection(Property[] pp)
Construct a collection of properties consisting of all the properties in the given array |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all of the elements from this collection. |
boolean |
contains(java.lang.Object o)
Returns true if the specified object is a member of this collection overloaded to check for the key of an object, e.g. |
Property |
find(int propertyID)
Return the Property object belonging to this type with the
specified property ID. |
Property |
find(java.lang.String propertyName)
Return the Property object belonging to this type with the
specified property name. |
Type |
getType()
Returns the Type associated with this set of properties |
void |
insert(int index,
java.lang.Object o)
insert the object into the collection at the specified index |
void |
set(int index,
java.lang.Object o)
Sets the object at a given index in the collection, and removes the (existing) object at that index in the collection, provided that the object does not already exist in the collection |
| Methods inherited from class com.starteam.StarTeamCollection |
|---|
add, addAll, addAll, addTo, attach, containsAll, detach, get, getSyncRoot, indexOf, isEmpty, isFixedSize, isModified, isReadOnly, isSynchronized, iterator, positionOf, remove, removeAll, removeAt, resetCapacity, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public PropertyCollection()
public PropertyCollection(Property p)
p - the property to add to the collectionpublic PropertyCollection(Property[] pp)
pp - an array of properties to add to the collection| Method Detail |
|---|
public Type getType()
public Property find(java.lang.String propertyName)
throws java.lang.IllegalArgumentException
Property object belonging to this type with the
specified property name. This will return null if the property is not
found.
propertyName - the name of the desired Property object
java.lang.IllegalArgumentExceptionProperty.getName()public Property find(int propertyID)
Property object belonging to this type with the
specified property ID. This will return null if the property is not
found.
propertyID - the property ID of the desired Property object
Property.getID()
public void insert(int index,
java.lang.Object o)
insert in class StarTeamCollectionindex - the position at which the object should be insertedo - the object to insert
public void set(int index,
java.lang.Object o)
set in class StarTeamCollectionindex - A valid index into the collection.o - The object to be set.public boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in class StarTeamCollectiono - the object to test for
public void clear()
clear in interface java.util.Collectionclear in class StarTeamCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||