|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Property.WebCacheProperty
com.starteam.EnumeratedProperty.WebCacheEnumeratedProperty
public static class EnumeratedProperty.WebCacheEnumeratedProperty
Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache.
| Method Summary | |
|---|---|
EnumeratedValue |
createValue(java.lang.String displayName)
Create a new Enumerated Value for this property. |
EnumeratedValue |
findValue(int enumCode)
Finds an existing EnumeratedValue by code. |
EnumeratedValue |
findValue(java.lang.String internalName)
Finds an existing EnumeratedValue by internal name. |
EnumeratedValue[] |
getAllowedStates(Project.WebCacheProject prjct)
Return the subset of enumerated values that are visible for the specified project in the context of this property. |
EnumeratedValue[] |
getAllValues()
A convenience method for returning an array of the possible values of an enumerated property, sorted by the specified sort order |
EnumeratedValue[] |
getDefaultValues()
Returns the default array of enumerated values for this Property. |
EnumeratedValue[] |
getServerAssignedStates()
Return the subset of enumerated values that are not assigned to any project Note that the set of enumerated values for a given type is and continues to be a server wide definition. |
EnumeratedValue[] |
getValues()
Returns an array of the enumerated values of this property, sorted by the specified sort order |
boolean |
isHierarchicalEnumeration()
Returns true if at least one of the enumerated values has child values, or false if every enumerated value is a root value with no children |
boolean |
isMultiSelectable()
Returns true if this Enumerated Property supports selecting more than one enumerated value at a time. |
boolean |
isStatusProperty()
Returns true if this Enumerated Property is the status property for the owning type. |
void |
makeMultiSelectable()
make this property multi selectable. |
QueryPart.WebCacheQueryPart |
newQueryPart(QueryPart.Relation relation,
EnumeratedValue value)
Creates a new query expression that tests this property. |
QueryPart.WebCacheQueryPart |
newQueryPart(QueryPart.Relation relation,
EnumeratedValue[] values)
Creates a new query expression that tests this property. |
void |
setDefaultValues(EnumeratedValue[] defaultValues)
Sets an array of enumerated values to be the default for the property. |
void |
setStatusProperty(boolean enable)
set this property to be the status property for the owning type. |
void |
setValues(EnumeratedValue[] values)
Sets an array of the enumerated values for this property |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public EnumeratedValue[] getAllowedStates(Project.WebCacheProject prjct)
prjct - the project to test
Project.WebCacheProject.getAllowedStates(EnumeratedProperty.WebCacheEnumeratedProperty)public EnumeratedValue[] getServerAssignedStates()
Project.WebCacheProject.getAllowedStates(EnumeratedProperty.WebCacheEnumeratedProperty),
EnumeratedProperty.WebCacheEnumeratedProperty.getAllowedStates(Project.WebCacheProject)public void makeMultiSelectable()
public void setStatusProperty(boolean enable)
enable - true to set this property to be the status propertypublic EnumeratedValue createValue(java.lang.String displayName)
displayName - the display name for the new value
public boolean isMultiSelectable()
public boolean isHierarchicalEnumeration()
public EnumeratedValue findValue(int enumCode)
enumCode - the code
public EnumeratedValue findValue(java.lang.String internalName)
internalName - the internal name
public EnumeratedValue[] getDefaultValues()
public void setDefaultValues(EnumeratedValue[] defaultValues)
defaultValues - the new array of default values
SDKRuntimeException - if attempting to set multiple defaults for single select
enumerated property.public EnumeratedValue[] getValues()
For hierarchical enumerations, only root enumerated values are listed. Other values may be found by traversing the enum hierarchy
public EnumeratedValue[] getAllValues()
public boolean isStatusProperty()
public void setValues(EnumeratedValue[] values)
values - an array of EnumeratedValue objects
public QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation,
EnumeratedValue[] values)
relation - The query relation.values - The enumerated values to be tested.
public QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation,
EnumeratedValue value)
relation - The query relation.value - The enumerated value to be tested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||