Package com.microstrategy.web.objects
Interface WebTemplateAttribute
-
- All Superinterfaces:
WebThresholdsContainer
public interface WebTemplateAttribute extends WebThresholdsContainer
The WebTemplateAttribute interface represents an attribute contained on a template. This object can be obtained from theWebTemplateUnitobject which it is contained within.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebTransactableUnitfindTransactableUnit(java.lang.String formID)Return aWebTransactableUnitwithout modifying the internal collection of transactable unitsWebObjectInfogetAttributeInfo()Returns theWebObjectInfoobject corresponding to the WebTemplateAttribute object which it is called on.intgetAxisIndex()Returns the index of theWebAxiswhich this template attribute is on.WebDerivedElementsgetDerivedElements()WebAttributeFormsgetForms()Returns theWebAttributeFormsobject which is a collection of the forms to display for this template attribute.intgetKey()Returns the key of the attribute on the template.intgetPosition()Returns the position of the template attribute on its axis.intgetThresholdCount()booleangetThresholdsEnabled()WebTransactableUnitgetTransactableUnit(java.lang.String formID)booleanhasDerivedElements()booleanhasDerivedElements(WebWorkingSet ws)booleanisDerived()Specifies if this represents a derived attribute.voidsetShowThresholds(boolean show)voidsetThresholdCount(int count)set The number of thresholds defined for this attribute.voidsetThresholdsEnabled(boolean enabled)set The thresholds enabled prop.-
Methods inherited from interface com.microstrategy.web.objects.WebThresholdsContainer
getFormat, getID, getName, getObjectType, getThresholds, getTransactions, getType, initElementSource
-
-
-
-
Method Detail
-
getAxisIndex
int getAxisIndex()
Returns the index of theWebAxiswhich this template attribute is on.- Returns:
- The owner axis' index, from
EnumDSSXMLAxisName.
-
getPosition
int getPosition()
Returns the position of the template attribute on its axis. This value is 1-based.- Returns:
- The position of the template attribute.
-
getAttributeInfo
WebObjectInfo getAttributeInfo()
Returns theWebObjectInfoobject corresponding to the WebTemplateAttribute object which it is called on.- Returns:
- The
WebObjectInfoobject which this template attribute refers to.
-
getForms
WebAttributeForms getForms()
Returns theWebAttributeFormsobject which is a collection of the forms to display for this template attribute.- Returns:
- The
WebAttributeFormsobject which is a collection of the forms to display for this template attribute.
-
getDerivedElements
WebDerivedElements getDerivedElements()
- Since:
- MicroStrategy Web 9.0.0
-
hasDerivedElements
boolean hasDerivedElements()
- Since:
- MicroStrategy Web 9.0.0
-
hasDerivedElements
boolean hasDerivedElements(WebWorkingSet ws)
-
getTransactableUnit
WebTransactableUnit getTransactableUnit(java.lang.String formID)
-
findTransactableUnit
WebTransactableUnit findTransactableUnit(java.lang.String formID)
Return aWebTransactableUnitwithout modifying the internal collection of transactable units- Parameters:
formID-Stringcontaining form GUID to retrieve unit of- Returns:
WebTransactableUnitof form with specified ID. Null if not found
-
isDerived
boolean isDerived()
Specifies if this represents a derived attribute.- Returns:
- True if this is a derived attribute, false otherwise.
-
getKey
int getKey()
Returns the key of the attribute on the template.- Returns:
- The key of the attribute.
-
setThresholdCount
void setThresholdCount(int count)
set The number of thresholds defined for this attribute.
-
getThresholdCount
int getThresholdCount()
- Returns:
- The number of thresholds defined for this attribute.
-
setThresholdsEnabled
void setThresholdsEnabled(boolean enabled)
set The thresholds enabled prop.
-
getThresholdsEnabled
boolean getThresholdsEnabled()
-
setShowThresholds
void setShowThresholds(boolean show)
- Parameters:
show- whether to thresholds associated with this template metric
-
-