com.microstrategy.web.objects.WebElement |
The WebElement interface represents a single element. Generally, these objects are stored
in an WebElements
object. This object is not directly instantiatable - it can only
be obtained from WebElements
and WebTemplateUnit
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebAttribute |
getAttribute()
Returns the attribute of the element
return
WebAttribute | ||||||||||
abstract String |
getBrowseFormValue(WebAttributeForm form)
Returns the form value of the specified browse form.
| ||||||||||
abstract String[] |
getBrowseFormValues()
Returns a String array of browse form values.
| ||||||||||
abstract String |
getConsolidationID()
Returns the consolidation id if the element comes from a New DE.
| ||||||||||
abstract String |
getConstructedElementID()
Retruns the Element ID ensuring that it is properly constructed with the following format;
"h1;8D679D4B11D3E4981000E787EC6DE8A4;Northeast" is an example.
| ||||||||||
abstract String |
getDisplayForm()
Returns the current element's display forms.
| ||||||||||
abstract String |
getDisplayName()
Returns the current element's display name.
| ||||||||||
abstract String |
getElementID()
Returns the ID of the element.
| ||||||||||
abstract int |
getElementType()
Returns the type of the element, from
EnumDSSXMLElementType . | ||||||||||
abstract WebHeader | getHeader() | ||||||||||
abstract int |
getKey()
Returns the key of this element, if it is part of a collection.
| ||||||||||
abstract int |
getLevel()
Returns element level.
| ||||||||||
abstract String |
getParentElementID()
Returns the ID of its parent element.
| ||||||||||
abstract int | getParentElementIndex() | ||||||||||
abstract String |
getRawValue()
Returns raw value if one is associated with this element
| ||||||||||
abstract int |
getSemantics()
Returns header's semantics if one is associated with the element.
| ||||||||||
abstract WebObjectInfo |
getTarget()
Returns underlying object to which this element belongs.
| ||||||||||
abstract String |
getTerseID()
Returns the element id as defined in the xml response
| ||||||||||
abstract String |
getWeight()
Returns weight value if one is associated with this element
| ||||||||||
abstract boolean | hasChildren() | ||||||||||
abstract boolean | isExpanded() | ||||||||||
abstract boolean | isHidden() | ||||||||||
abstract boolean | isLeafNode() | ||||||||||
abstract boolean | isNullElement() | ||||||||||
abstract void |
setConsolidationID(String consolidationID)
Sets the consolidation id if the element comes from a New DE.
| ||||||||||
abstract void |
setDisplayForm(String elementForm)
Sets the current element form.
| ||||||||||
abstract void |
setDisplayName(String elementName)
Sets the current element name.
| ||||||||||
abstract void | setExpanded(boolean value) | ||||||||||
abstract void | setHasChildren(boolean value) | ||||||||||
abstract void | setHidden(boolean value) | ||||||||||
abstract void | setLeafNode(boolean value) | ||||||||||
abstract void | setLevel(int value) | ||||||||||
abstract void | setParentElementID(String value) | ||||||||||
abstract void | setParentElementIndex(int value) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the attribute of the element
return WebAttribute
Returns the form value of the specified browse form. It returns null
if the value does not exist.
form | the browse form. |
---|
null
if the value does not exist.WebObjectsException | if the origin of this element can not be obtained or the origin is not an attribute. |
---|
Returns a String array of browse form values. Browse form values are used in order to construct element's display name if the XML retrieved from the Intelligence Server does not have display name for elements.
Returns the consolidation id if the element comes from a New DE.
Retruns the Element ID ensuring that it is properly constructed with the following format;
"h1;8D679D4B11D3E4981000E787EC6DE8A4;Northeast" is an example.
It consists of "
Returns the current element's display forms.
Returns the current element's display name.
Returns the ID of the element.
Returns the type of the element, from EnumDSSXMLElementType
.
For elements on a template, the overall type of a WebElement
is a combination
of its getElementType()
and getTemplateUnitType(WebElement)
.
Returns the key of this element, if it is part of a collection. If it is not
part of a WebElements
collection, then this will be 0. A valid key will be
a positive integer.
Returns element level. For non-recursive attributes this value will always be 0.
Returns the ID of its parent element.
Returns raw value if one is associated with this element
Returns header's semantics if one is associated with the element.
Returns the element id as defined in the xml response
Returns weight value if one is associated with this element
Sets the consolidation id if the element comes from a New DE.
consolidationID | The consolidation id. |
---|
Sets the current element form.
elementForm | The new form for the element. |
---|
Sets the current element name.
elementName | The new name for the element. |
---|