public static class Property.WebCacheProperty extends java.lang.Object implements ArtifactCacheManager.Nameable
Type | Property and Description |
---|---|
boolean |
isItem
Gets the value of the property itemProperty.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test this object for equality wiith another
|
ArtifactCacheManager.Context |
getContext()
Returns the context of this object.
|
java.lang.String |
getDisplayName()
Returns this property's display name.
|
Translations |
getDisplayNameTranslations()
Returns a copy of the display name translations for this property.
|
java.lang.String |
getDisplayValue(java.lang.Object value)
Converts the given property value to a string suitable for display.
|
java.lang.Object |
getGenericDefaultValue()
Returns the default value for this property.
|
int |
getID()
Returns the ID of its underlying object.
|
java.lang.String |
getName()
Returns this property's internal name.
|
TextProperty.WebCacheTextProperty |
getNameProperty()
always returns NULL.
|
Type.WebCacheType |
getType()
Returns the type of this resource.
|
int |
hashCode()
Return a hash code for this object
|
boolean |
isAdvanced()
Return true is the property is considered "advanced".
|
boolean |
isCalculated()
Returns true if the property is calculated on-the-fly by the server
as opposed to being stored on the server.
|
boolean |
isClientCalculated()
Return true is the property is calculated in the fly by the client.
|
boolean |
isDescriptor()
Returns true if the property is considered a descriptor.
|
boolean |
isDirty()
Return true if this object is dirty
|
boolean |
isDisabled()
Return true if the property is flagged as disabled.
|
boolean |
isEnabled()
Return true if the property is flagged as enabled.
|
boolean |
isGenericCalculated()
Returns true if the property is calculated on the server by the
component.
|
boolean |
isHeader()
Returns true if this property is stored in the repository database
and if the database field is a header field.
|
boolean |
isItemProperty()
Gets the value of the property itemProperty.
|
boolean |
isLegalValue(java.lang.Object object)
Returns true if the specified object is a legal value for this
property.
|
boolean |
isPrimaryDescriptor()
Return true if this property is the primary descriptor for this
property's owning type.
|
boolean |
isQueryRelationSupported(QueryPart.Relation operator)
Returns true if this property supports the specified query
operator(s)
|
boolean |
isRequired()
Returns true if a value for this property is required; valid for
user-defined properties only.
|
boolean |
isRestricted()
Return true if this is a restricted property.
|
boolean |
isRevisionIndependent()
Returns true if this property is revision-independent (for example,
"FlagUserList", "ReadStatusUserList").
|
boolean |
isServerCalculated()
Return true if the property if calculated on the fly by the server.
|
boolean |
isSortByTextValueSupported()
Returns true if this property supports Sort by TextValue for the
specified Query Operator
|
boolean |
isStored()
Returns true if the property is stored in the server's database.
|
boolean |
isSysDefined()
Returns true if the property is a built-in StarTeam property (as
opposed to a custom property).
|
boolean |
isUserCustomized()
Returns true if this property is a user defined property.
|
boolean |
isUserDefined()
Returns true is the property was user defined through the repository
customization feature.
|
boolean |
isUserModifiable()
Return true if the property is flagged as user modifiable.
|
boolean |
isViewSpecific()
Returns true if this property is view-specific (for example,
"ExclusiveLocker", "BranchOnChange").
|
void |
refresh()
replace the (possibly out-dated) instance of the contained live
object with an appropriate read only instance from the ArtifactCache
|
void |
setDescriptor()
Assign this property as a (non-primary) Descriptor Several properties
on a type can be descriptors for that type This assignment may be
made for a new type that has not been saved to the server and the
value is used simply to ensure the construction of the type xml
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name for this property.
|
void |
setDisplayNameTranslations(Translations t)
Sets a copy of the display name translations for this property.
|
void |
setEnabled(boolean bIsEnabled)
Enables/disables the property
|
void |
setGenericDefaultValue(java.lang.Object value)
Sets the Generic Default Value for this property
|
void |
setPrimaryDescriptor()
Assign this property as the Primary Descriptor Only 1 property on a
type can be the primary descriptor for the type If more than 1
property is assigned to be the primary descriptor, the server will
throw an exception This assignment may be made for a new type that
has not been saved to the server and the value is used simply to
ensure the construction of the type xml
|
void |
setRequired(boolean bIsRequired)
Mark this property as required
|
java.lang.String |
toXml()
Returns an xml representation of this property The xml representation
is used to specify the property definition when creating custom
components
|
void |
update()
Save a property through the connection pool.
|
public ArtifactCacheManager.Context getContext()
public boolean isDirty()
public int getID()
public java.lang.String getName()
getName
in interface ArtifactCacheManager.Nameable
public java.lang.String getDisplayName()
public java.lang.String getDisplayValue(java.lang.Object value)
value
- A legal value for this property.public java.lang.Object getGenericDefaultValue()
public void setGenericDefaultValue(java.lang.Object value)
value
- Objectpublic void setPrimaryDescriptor()
public void setRequired(boolean bIsRequired)
bIsRequired
- true to mark this property as requiredpublic void setDescriptor()
public void setDisplayName(java.lang.String displayName)
displayName
- this property's display name.public Translations getDisplayNameTranslations()
public void setDisplayNameTranslations(Translations t)
t
- the translation to copypublic boolean isDisabled()
public boolean isEnabled()
public boolean isGenericCalculated()
public boolean isHeader()
public boolean isLegalValue(java.lang.Object object)
object
- the object being checked as a legal value for this
property.public boolean isItemProperty()
public boolean isUserCustomized()
public boolean isRequired()
public boolean isRevisionIndependent()
public boolean isStored()
public boolean isSysDefined()
public boolean isRestricted()
public boolean isServerCalculated()
public boolean isPrimaryDescriptor()
public boolean isUserModifiable()
public boolean isViewSpecific()
public boolean isUserDefined()
public boolean isDescriptor()
public boolean isAdvanced()
public boolean isCalculated()
public boolean isClientCalculated()
public void setEnabled(boolean bIsEnabled)
bIsEnabled
- true to enable this propertypublic void refresh()
public void update()
public Type.WebCacheType getType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to test againstpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toXml()
public boolean isSortByTextValueSupported()
public boolean isQueryRelationSupported(QueryPart.Relation operator)
operator
- Query Relationpublic TextProperty.WebCacheTextProperty getNameProperty()
getNameProperty
in interface ArtifactCacheManager.Nameable
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.