Package com.microstrategy.web.objects
Interface WebPropertySet
-
- All Superinterfaces:
KeyedObject,WebDisplayUnit,WebFeatures,WebObjectInfo,WebPromptSite
public interface WebPropertySet extends WebObjectInfo
WebPropertySet represents a property set, which is a first class object. It is a collection of severalWebProperty. This interface provides methods to retrieve the property information about this property set, also provides methods to retrieve aWebPropertyin its collection.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Enumerationelements()Return an Enumeration ofWebPropertyobjects inside this object.WebPropertyfindItemByID(int id)Return theWebPropertyobject according to the ID.WebPropertyfindItemByName(java.lang.String name)Return theWebPropertyobject, according to the name.WebPropertyget(int index)Return theWebPropertyobject according to the index.WebPropertygetItemByID(int id)Return theWebPropertyobject according to the ID.WebPropertygetItemByName(java.lang.String name)Return theWebPropertyobject, according to the name.booleanhasItemByName(java.lang.String propertyName)booleanisDirty()Return true if any property of this WebPropertySet has been changed, or if any child childWebPropertyhas been changed.booleanisEmpty()Return true if there isWebPropertyobject inside this object, else return false.voidsave()Save the current WebPorpertySet information back to MetaData.intsize()Return the number ofWebPropertyobjects inside this object.-
Methods inherited from interface com.microstrategy.utils.KeyedObject
_getObKey
-
Methods inherited from interface com.microstrategy.web.objects.WebDisplayUnit
addDetails, applyVisitor, canHighlight, getChildUnits, getDisplayName, getDisplayUnitType, hasDetails, highlightUnit, highlightUnit, isHighlighted, isObjectInfo, isSelected, setDisplayName, setSelected
-
Methods inherited from interface com.microstrategy.web.objects.WebFeatures
isFeatureAvailable, isFeatureAvailable
-
Methods inherited from interface com.microstrategy.web.objects.WebObjectInfo
buildShortObjectAttributes, buildShortXML, getAbbreviation, getAccessGranted, getAncestors, getCardStatus, getCertifiedInfo, getComments, getContainerDid, getContainerType, getCreationTime, getCreationTimeStamp, getDataSources, getDefaultLanguage, getDescription, getExtendedType, getFactory, getFlags, getIconPath, getID, getModificationTime, getModificationTimeStamp, getName, getNonSchedulable, getOtherNameTransCount, getOwner, getParent, getPreSaveAsFlags, getProjectId, getProjectName, getPropertyFlags, getPropertySetFilter, getPropertySets, getRecommendationInfo, getSecurity, getState, getSubType, getTemplateInfo, getType, getVersionID, getViewMediaSettings, getVisualizationViewMode, getXML, getXML, hasOwner, isAncestorNamedFolder, isEmbedded, isHidden, isNew, isPopulated, populate, populate, setAbbreviation, setComments, setDataSources, setDefaultLanguage, setDescription, setExtendedType, setFlags, setHidden, setIconPath, setName, setNonSchedulable, setPreSaveAsFlags, setPropertyFlags
-
Methods inherited from interface com.microstrategy.web.objects.WebPromptSite
getPromptInstances
-
-
-
-
Method Detail
-
get
WebProperty get(int index) throws java.lang.IndexOutOfBoundsException
Return theWebPropertyobject according to the index.- Parameters:
index- 0-based index- Returns:
- The
WebPropertyobject according to the index - Throws:
java.lang.IndexOutOfBoundsException- If the index is less than 0 or greater than the size, an exception of IndexOutOfBoundsException will be thrown.
-
getItemByID
WebProperty getItemByID(int id) throws java.lang.IllegalArgumentException
Return theWebPropertyobject according to the ID.- Parameters:
id- an ID corresponding to the "pri" attribute of "properties" node.- Returns:
- The
WebPropertyobject whose ID, "pri" attribute, matches input parameter id. - Throws:
java.lang.IllegalArgumentException- If there is no matching WebProperty object, an exception of IllegalArgumentException will be thrown.
-
getItemByName
WebProperty getItemByName(java.lang.String name) throws java.lang.IllegalArgumentException
Return theWebPropertyobject, according to the name.- Parameters:
name- The name of the property, which corresponds to the attribute "n".- Returns:
- The
WebPropertyobject whose name, "n" attribute, matches input parameter name. - Throws:
java.lang.IllegalArgumentException- If there is no matching WebProperty object, an exception of IllegalArgumentException will be thrown.
-
size
int size()
Return the number ofWebPropertyobjects inside this object.- Returns:
- The number of
WebPropertyobjects inside this object.
-
isEmpty
boolean isEmpty()
Return true if there isWebPropertyobject inside this object, else return false.- Returns:
- True if there is
WebPropertyobject inside this object, else return false.
-
elements
java.util.Enumeration elements()
Return an Enumeration ofWebPropertyobjects inside this object.- Returns:
- An Enumeration representation child
WebPropertyobjects.
-
isDirty
boolean isDirty()
Return true if any property of this WebPropertySet has been changed, or if any child childWebPropertyhas been changed.- Specified by:
isDirtyin interfaceWebObjectInfo- Returns:
- Ture if any property of this WebPropertySet object has been changed, or
if any
WebPropertyobject in this collection has been changed. Else, return false.
-
save
void save() throws WebObjectsException
Save the current WebPorpertySet information back to MetaData. If there is no change since initialize or last time saving, there will be no request back to MetaData.- Throws:
WebObjectsException- If there is anything wrong during the saving progress, an exception of WebObjectsException will be thrown.
-
hasItemByName
boolean hasItemByName(java.lang.String propertyName)
- Since:
- MicroStrategy Web 8.0.0
-
findItemByName
WebProperty findItemByName(java.lang.String name)
Return theWebPropertyobject, according to the name. Null is returned if object does not exist.- Parameters:
name- The name of the property, which corresponds to the attribute "n".- Returns:
- The
WebPropertyobject whose name, "n" attribute, matches input parameter name. - Since:
- MicroStrategy Web 8.0.0
-
findItemByID
WebProperty findItemByID(int id)
Return theWebPropertyobject according to the ID. Null is returned if object does not exist.- Parameters:
id- an ID corresponding to the "pri" attribute of "properties" node.- Returns:
- The
WebPropertyobject whose ID, "pri" attribute, matches input parameter id. - Since:
- MicroStrategy Web 8.0.0
-
-