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 SummaryConstructors Modifier Constructor Description protectedAbstractInstance(AbstractCategory _ownerCategory, java.lang.String _name, java.lang.String _helpMessage)
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.microstrategy.web.objects.admin.monitors.InstancegetLocalizedHelpMessage, getLocalizedName
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractInstanceprotected AbstractInstance(AbstractCategory _ownerCategory, java.lang.String _name, java.lang.String _helpMessage) 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:InstanceReturns the name of the instance, if one exists.
 - 
getpublic Counter get(int i) Description copied from interface:InstanceReturns theCounterat the given index within the collection.
 - 
getItemByNamepublic Counter getItemByName(java.lang.String name) Description copied from interface:InstanceReturns theCounterin the collection with the given name.- Specified by:
- getItemByNamein interface- Instance
- 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.
 
 - 
sizepublic int size() Description copied from interface:InstanceReturns the size of the collection.
 - 
isEmptypublic boolean isEmpty() Description copied from interface:InstanceReturns whether the collection is empty.
 - 
elementspublic java.util.Enumeration elements() Description copied from interface:InstanceReturns a java.util.Enumeration containing the objects in this collection.
 - 
addprotected void add(Counter c) 
 - 
removeprotected void remove(Counter c) 
 - 
getOwnerCategorypublic Category getOwnerCategory() Description copied from interface:InstanceReturns theCategoryto which this counter belongs to.- Specified by:
- getOwnerCategoryin interface- Instance
- Returns:
- The category to which this counter belongs to.
 
 - 
getHelpMessagepublic 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 interface- Instance
- Returns:
- The help message associated with the instance.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getLocalizedNamepublic java.lang.String getLocalizedName(java.util.Locale locale) 
 - 
getLocalizedHelpMessagepublic java.lang.String getLocalizedHelpMessage(java.util.Locale locale) 
 
- 
 
-