Class AbstractInstance
- java.lang.Object
-
- com.microstrategy.web.objects.admin.monitors.AbstractInstance
-
- All Implemented Interfaces:
Instance
public abstract class AbstractInstance extends java.lang.Object implements Instance
The AbstractInstance class is a base class which can be subclassed to implement theInstanceInterface. Most usages of the API will not require for the user to create a subclass of this class.- Since:
- MicroStrategy Web 7.5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractInstance(AbstractCategory _ownerCategory, java.lang.String _name, java.lang.String _helpMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(Counter c)java.util.Enumerationelements()Returns a java.util.Enumeration containing the objects in this collection.Counterget(int i)Returns theCounterat the given index within the collection.java.lang.StringgetHelpMessage()Returns the help message associated with the instance.CountergetItemByName(java.lang.String name)Returns theCounterin the collection with the given name.java.lang.StringgetLocalizedHelpMessage(java.util.Locale locale)java.lang.StringgetLocalizedName(java.util.Locale locale)java.lang.StringgetName()Returns the name of the instance, if one exists.CategorygetOwnerCategory()Returns theCategoryto which this counter belongs to.booleanisEmpty()Returns whether the collection is empty.protected voidremove(Counter c)intsize()Returns the size of the collection.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.objects.admin.monitors.Instance
getLocalizedHelpMessage, getLocalizedName
-
-
-
-
Constructor Detail
-
AbstractInstance
protected AbstractInstance(AbstractCategory _ownerCategory, java.lang.String _name, java.lang.String _helpMessage)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:InstanceReturns the name of the instance, if one exists.
-
get
public Counter get(int i)
Description copied from interface:InstanceReturns theCounterat the given index within the collection.
-
getItemByName
public Counter getItemByName(java.lang.String name)
Description copied from interface:InstanceReturns theCounterin the collection with the given name.- Specified by:
getItemByNamein interfaceInstance- Parameters:
name- The name of the counter to return. Note: this is the name, not the localized name of the counter.- Returns:
- The counter in the collection with the given name.
-
size
public int size()
Description copied from interface:InstanceReturns the size of the collection.
-
isEmpty
public boolean isEmpty()
Description copied from interface:InstanceReturns whether the collection is empty.
-
elements
public java.util.Enumeration elements()
Description copied from interface:InstanceReturns a java.util.Enumeration containing the objects in this collection.
-
add
protected void add(Counter c)
-
remove
protected void remove(Counter c)
-
getOwnerCategory
public Category getOwnerCategory()
Description copied from interface:InstanceReturns theCategoryto which this counter belongs to.- Specified by:
getOwnerCategoryin interfaceInstance- Returns:
- The category to which this counter belongs to.
-
getHelpMessage
public java.lang.String getHelpMessage()
Description copied from interface:InstanceReturns the help message associated with the instance. The help string is an optional string which describes the instance.- Specified by:
getHelpMessagein interfaceInstance- Returns:
- The help message associated with the instance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLocalizedName
public java.lang.String getLocalizedName(java.util.Locale locale)
-
getLocalizedHelpMessage
public java.lang.String getLocalizedHelpMessage(java.util.Locale locale)
-
-