Interface Instance
- 
- All Known Implementing Classes:
- AbstractInstance
 
 public interface InstanceThis interface represents an Instance object, which is a collection of counters.- Since:
- MicroStrategy Web 7.5.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Enumerationelements()Returns a java.util.Enumeration containing the objects in this collection.Counterget(int index)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)Returns the localized help message associated with this instance.java.lang.StringgetLocalizedName(java.util.Locale locale)Returns the localized name of the instance.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.intsize()Returns the size of the collection.
 
- 
- 
- 
Method Detail- 
getNamejava.lang.String getName() Returns the name of the instance, if one exists.- Returns:
- The name of the instance.
 
 - 
getLocalizedNamejava.lang.String getLocalizedName(java.util.Locale locale) Returns the localized name of the instance.- Parameters:
- locale- Locale The locale that the name to be localized to.
- Returns:
- String The localized name of the instance.
- Since:
- MicroStrategy Web 8.0.0
 
 - 
getCounter get(int index) throws java.lang.IndexOutOfBoundsException Returns theCounterat the given index within the collection.- Parameters:
- index- The index of the object to retrieve.
- Returns:
- The Counterobject at the given index.
- Throws:
- java.lang.IndexOutOfBoundsException- Thrown if the index does not exist in the collection.
 
 - 
getItemByNameCounter getItemByName(java.lang.String name) throws java.lang.IllegalArgumentException Returns theCounterin the collection with the given name.- 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.
- Throws:
- java.lang.IllegalArgumentException- Thrown if no object with the given name doesn't exist in the collection.
 
 - 
sizeint size() Returns the size of the collection.- Returns:
- The number of counters in the collection.
 
 - 
isEmptyboolean isEmpty() Returns whether the collection is empty.- Returns:
- True if the collection is empty, false otherwise.
 
 - 
elementsjava.util.Enumeration elements() Returns a java.util.Enumeration containing the objects in this collection.- Returns:
- An enumeration containing the objects in the collection.
 
 - 
getHelpMessagejava.lang.String getHelpMessage() Returns the help message associated with the instance. The help string is an optional string which describes the instance.- Returns:
- The help message associated with the instance.
 
 - 
getLocalizedHelpMessagejava.lang.String getLocalizedHelpMessage(java.util.Locale locale) Returns the localized help message associated with this instance.- Parameters:
- locale- Locale The locale that the help message to localized to.
- Returns:
- String
- Since:
- MicroStrategy Web 8.0.0
 
 
- 
 
-