com.microstrategy.web.objects.WebPropertySet |
WebPropertySet represents a property set, which is a first class object. It is a collection
of several WebProperty
. This interface provides methods to retrieve the property information about
this property set, also provides methods to retrieve a WebProperty
in its collection.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Enumeration |
elements()
Return an Enumeration of
WebProperty objects inside this object. | ||||||||||
abstract WebProperty |
findItemByID(int id)
Return the
WebProperty object according to the ID. | ||||||||||
abstract WebProperty |
findItemByName(String name)
Return the
WebProperty object, according to the name. | ||||||||||
abstract WebProperty |
get(int index)
Return the
WebProperty object according to the index. | ||||||||||
abstract WebProperty |
getItemByID(int id)
Return the
WebProperty object according to the ID. | ||||||||||
abstract WebProperty |
getItemByName(String name)
Return the
WebProperty object, according to the name. | ||||||||||
abstract boolean | hasItemByName(String propertyName) | ||||||||||
abstract boolean |
isDirty()
Return true if any property of this WebPropertySet has been changed,
or if any child child
WebProperty has been changed. | ||||||||||
abstract boolean |
isEmpty()
Return true if there is
WebProperty object inside this object, else return false. | ||||||||||
abstract void |
save()
Save the current WebPorpertySet information back to MetaData.
| ||||||||||
abstract int |
size()
Return the number of
WebProperty objects inside this object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Return an Enumeration of WebProperty
objects inside this object.
WebProperty
objects.
Return the WebProperty
object according to the ID. Null is returned
if object does not exist.
id | an ID corresponding to the "pri" attribute of "properties" node. |
---|
WebProperty
object whose ID, "pri" attribute, matches input
parameter id.Return the WebProperty
object, according to the name. Null is returned
if object does not exist.
name | The name of the property, which corresponds to the attribute "n". |
---|
WebProperty
object whose name, "n" attribute, matches input
parameter name.Return the WebProperty
object according to the index.
index | 0-based index |
---|
WebProperty
object according to the indexIndexOutOfBoundsException | If the index is less than 0 or greater than the size, an exception of IndexOutOfBoundsException will be thrown. |
---|
Return the WebProperty
object according to the ID.
id | an ID corresponding to the "pri" attribute of "properties" node. |
---|
WebProperty
object whose ID, "pri" attribute, matches input
parameter id.IllegalArgumentException | If there is no matching WebProperty object, an exception of IllegalArgumentException will be thrown. |
---|
Return the WebProperty
object, according to the name.
name | The name of the property, which corresponds to the attribute "n". |
---|
WebProperty
object whose name, "n" attribute, matches input
parameter name.IllegalArgumentException | If there is no matching WebProperty object, an exception of IllegalArgumentException will be thrown. |
---|
Return true if any property of this WebPropertySet has been changed,
or if any child child WebProperty
has been changed.
WebProperty
object in this collection has been changed. Else, return false.
Return true if there is WebProperty
object inside this object, else return false.
WebProperty
object inside this object, else return false.
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.
WebObjectsException | If there is anything wrong during the saving progress, an exception of WebObjectsException will be thrown. |
---|
Return the number of WebProperty
objects inside this object.
WebProperty
objects inside this object.