Package com.microstrategy.web.objects
Interface WebMonitorField
-
public interface WebMonitorFieldA WebMonitorField represents a field in the monitor object. It provides access to various monitor properties. Such properties can be traversed and edited.- Since:
- MicroStrategy Web 7.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebMonitorPropertyadd(java.lang.String name, java.lang.String value, int dataType)Adds aWebMonitorPropertyto the monitor field with the name, value, dataType passed.java.util.Enumerationelements()Returns an enumeration of the monitor properties.WebMonitorPropertyget(int i)Returns theWebMonitorPropertyat the index passed.WebMonitorPropertygetItemByName(java.lang.String propertyName)Returns theWebMonitorPropertywith the name passed.java.lang.StringgetName()Returns the name of this monitor field.booleanisEmpty()Tests if there are no monitor properties.WebMonitorPropertyremove(int i)Removes theWebMonitorPropertyat the index passed.booleanremove(WebMonitorProperty monitorProperty)Removes theWebMonitorPropertypassed.intsize()Returns the number of monitor properties in this monitor field.
-
-
-
Method Detail
-
add
WebMonitorProperty add(java.lang.String name, java.lang.String value, int dataType)
Adds aWebMonitorPropertyto the monitor field with the name, value, dataType passed. If a monitor property exists with the name passed, it will be overwritten. The dataType should be a value from the EnumerationEnumDSSXMLDataType.- Returns:
- The new monitor property added.
-
getItemByName
WebMonitorProperty getItemByName(java.lang.String propertyName) throws java.lang.IllegalArgumentException
Returns theWebMonitorPropertywith the name passed.- Returns:
- The monitor property corresponding to the name passed.
- Throws:
java.lang.IllegalArgumentException- if there is no monitor property with the name passed.
-
size
int size()
Returns the number of monitor properties in this monitor field.- Returns:
- the number of monitor properties.
-
get
WebMonitorProperty get(int i)
Returns theWebMonitorPropertyat the index passed.- Returns:
- The monitor property corresponding to the index passed.
-
remove
WebMonitorProperty remove(int i)
Removes theWebMonitorPropertyat the index passed.- Returns:
- The monitor property removed.
-
remove
boolean remove(WebMonitorProperty monitorProperty)
Removes theWebMonitorPropertypassed.- Returns:
- True if the monitor property was removed successfully.
-
isEmpty
boolean isEmpty()
Tests if there are no monitor properties.- Returns:
- True if there are no monitor properties.
-
elements
java.util.Enumeration elements()
Returns an enumeration of the monitor properties.- Returns:
- enumeration of monitor properties.
-
getName
java.lang.String getName()
Returns the name of this monitor field.- Returns:
- name of this monitor field.
-
-