Package com.microstrategy.web.objects
Interface WebNode
- 
- All Known Subinterfaces:
- WebBigDecimalNode,- WebConstantNode,- WebControlShortcutNode,- WebElementsObjectNode,- WebFieldShortcutNode,- WebFormShortcutNode,- WebGridUnitShortcutNode,- WebGroupNode,- WebOperatorNode,- WebPromptableNode,- WebRefNode,- WebRelationshipNode,- WebResidueNode,- WebShortcutNode,- WebTimeNode,- WebValueNode
 - All Known Implementing Classes:
- WebControlShortcutNodeImpl,- WebFieldShortcutNodeImpl,- WebGridUnitShortcutNodeImpl
 
 public interface WebNodeThe WebNode interface represents a node within an expression tree. The object which implements this interface is not directly instantiatable - the only way to obtain a WebNode object is throughWebExpressionor another WebNode. The only way to create a new node in an expression tree is by calling the appropriate create method onWebExpression. Note that a WebNode object is linked to its expression object, and cannot be directly moved between expression trees.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendChild(WebNode newChild)Appends the given node to the end of the current node's list of child nodes.voidclear()Removes all child nodes from the current node.voidclearPlaceHolder()Deletes the place holder defined on this node.booleancontainsPrompts()Returns true if this node or any of its children has prompts.WebNodePlaceHoldercreatePlaceHolder()Creates a place holder on this node.booleangetCanExpand()Returns the value of the can expand property on the node.WebNodegetChild(int index)Returns the child node with the given (0-based) index in the collection.intgetChildCount()Returns the number of child nodes of the current node.intgetDataType()Returns the datatype of the current node.WebDimtygetDimensionality()Returns an object which can be used to specify the dimensionality of the node.intgetDimensionalityType()Returns the dimensionality type of the current node.java.lang.StringgetDisplayName()Returns the currently set display name of this node.intgetExpressionType()Returns the expression type of the current node.WebNodegetFirstChild()Returns the first child node of the current node, or null if the current node has no child nodes.booleangetIsIndependentCSI()Returns whether this node is independent from others.booleangetIsSpliced()Returns the value of the Is spliced property This is currently used in custom group elements.intgetKey()Returns the key of this node.WebNodegetLastChild()Returns the last child node of the current node, or null if the current node has no child nodes.WebNodegetNextSibling()Returns the current node's next sibling.intgetNodeType()Returns the node type of the current node.WebNodegetParent()Returns the parent of the current node, or null if this is the root node.WebNodePlaceHoldergetPlaceHolder()Returns the place holder associated on this node.WebNodegetPreviousSibling()Returns the current node's previous sibling.java.lang.StringgetShortXML()Return the short xml representation of the node.java.lang.StringgetTag()Returns the tag which is currently set on this node.intgetUCFlag()Returns the value of ucFlag.booleanhasChildNodes()Returns true if this node has child nodes, false if it does not.booleanhasPlaceHolder()Returns whether this node has a place holder defined on it.voidinsertAfter(WebNode newChild, WebNode refNode)Adds the given node to the current node's list of child nodes immediately after the reference node.voidinsertBefore(WebNode newChild, WebNode refNode)Adds the given node to the current node's list of child nodes immediately before the reference node.booleanisCancelledPrompt()voidremoveChild(WebNode childNode)Removes the given node from the collection of child nodes.voidreplaceChild(WebNode newChild, WebNode oldChild)Replaces the old node with the given new node in the expression.voidsetCanExpand(boolean expand)Sets the can expand property.voidsetDataType(int dataType)Sets the datatype of the current node.voidsetDimensionalityType(int dimensionalityType)Sets the dimensionality type of the current node.voidsetDisplayName(java.lang.String displayName)Sets the display name of this node to the given value.voidsetExpressionType(int expressionType)Sets the expression type of the current node to the given type.voidsetIsIndependentCSI(boolean isIndependentCSI)Sets the node whether it is independent from others.voidsetIsSpliced(boolean spliced)Sets the is spliced property.voidsetTag(java.lang.String tag)Sets the tag on the node.voidsetUCFlag(int flag)Sets the value of ucFlag.
 
- 
- 
- 
Method Detail- 
getKeyint getKey() Returns the key of this node. Every node in an expression has a unique key, though they are not necessarily in order, or even consecutive.- Returns:
- The key of this node.
 
 - 
getExpressionTypeint getExpressionType() Returns the expression type of the current node.- Returns:
- The expression type of the node, from EnumDSSXMLExpressionType.
- See Also:
- setExpressionType(int)
 
 - 
setExpressionTypevoid setExpressionType(int expressionType) Sets the expression type of the current node to the given type.- Parameters:
- expressionType- The expression type to use for the node, from- EnumDSSXMLExpressionType.
- See Also:
- getExpressionType()
 
 - 
getNodeTypeint getNodeType() Returns the node type of the current node. This is set upon creation of the node, and cannot be changed.- Returns:
- The node type of the node, from EnumDSSXMLNodeType.
 
 - 
getDataTypeint getDataType() Returns the datatype of the current node.- Returns:
- The datatype of the current node, from EnumDSSXMLDataType.
- See Also:
- setDataType(int)
 
 - 
setDataTypevoid setDataType(int dataType) Sets the datatype of the current node.- Parameters:
- dataType- A value from- EnumDSSXMLDataType, which will be used as the datatype of the current node.
- See Also:
- getDataType()
 
 - 
getDimensionalityTypeint getDimensionalityType() Returns the dimensionality type of the current node.- Returns:
- The current dimensionality type of this node, from EnumDSSXMLNodeDimty.
- See Also:
- setDimensionalityType(int)
 
 - 
setDimensionalityTypevoid setDimensionalityType(int dimensionalityType) Sets the dimensionality type of the current node.- Parameters:
- dimensionalityType- The dimensionality type to assign to this node, from- EnumDSSXMLNodeDimty.
- See Also:
- getDimensionalityType()
 
 - 
getDimensionalityWebDimty getDimensionality() Returns an object which can be used to specify the dimensionality of the node. This will only be relevant if the dimensionality type is set to something other than the default (none).- Returns:
- An object of type WebDimty, which can then be used to specify dimensionality.
 
 - 
getUCFlagint getUCFlag() Returns the value of ucFlag.- Returns:
- The value of ucFlag.
 
 - 
setUCFlagvoid setUCFlag(int flag) Sets the value of ucFlag.- Parameters:
- flag- The value to be set for ucFlag.
- See Also:
- getUCFlag()
 
 - 
getDisplayNamejava.lang.String getDisplayName() Returns the currently set display name of this node.- Returns:
- The current display name of this node.
- See Also:
- setDisplayName(java.lang.String)
 
 - 
setDisplayNamevoid setDisplayName(java.lang.String displayName) Sets the display name of this node to the given value.- Parameters:
- displayName- The display name to use when describing the node.
- See Also:
- getDisplayName()
 
 - 
hasChildNodesboolean hasChildNodes() Returns true if this node has child nodes, false if it does not.- Returns:
- Whether this node has child nodes.
 
 - 
getChildCountint getChildCount() Returns the number of child nodes of the current node.- Returns:
- The number of child nodes, or 0 if none exist.
 
 - 
getFirstChildWebNode getFirstChild() Returns the first child node of the current node, or null if the current node has no child nodes.- Returns:
- A WebNodeobject which is the first child (the index 0 child) of this node, or null if no children are found.
 
 - 
getLastChildWebNode getLastChild() Returns the last child node of the current node, or null if the current node has no child nodes.- Returns:
- A WebNodeobject which is the last child (the last index child) of this node, or null if no children are found.
 
 - 
getChildWebNode getChild(int index) throws java.lang.IndexOutOfBoundsException Returns the child node with the given (0-based) index in the collection.- Parameters:
- index- The index of the child node to return.
- Returns:
- A WebNodeobject, corresponding to the given index.
- Throws:
- java.lang.IndexOutOfBoundsException- Thrown if the given index does not exist in the collection.
 
 - 
getParentWebNode getParent() Returns the parent of the current node, or null if this is the root node.- Returns:
- A WebNodeobject, which is the parent of the current node, or null if the current node has no parent.
 
 - 
getPreviousSiblingWebNode getPreviousSibling() Returns the current node's previous sibling. This will be a node with the same parent as the current node, but with 1 less index in the parent node's collection. This method will return null if the parent node does not exist, or if this is the first node in the parent node's collection.- Returns:
- WebNodeThe previous sibling, or null if none exists(i.e. this is the first child of its parent, or this is the root node).
 
 - 
getNextSiblingWebNode getNextSibling() Returns the current node's next sibling. This will be a node with the same parent as the current node, but with 1 greater index in the parent node's collection. This method will return null if the parent node does not exist, or if this is the last node in the parent node's collection.- Returns:
- WebNodeThe next sibling, or null if none exists(i.e. this is the last child of its parent, or this is the root node).
 
 - 
appendChildvoid appendChild(WebNode newChild) throws java.lang.IllegalArgumentException Appends the given node to the end of the current node's list of child nodes. The node to be appended must be from the same expression as the node it is being appended to.- Parameters:
- newChild- The node to be appended.
- Throws:
- java.lang.IllegalArgumentException- Thrown if the given node is null or if the node being appended is from a different expression.
 
 - 
insertBeforevoid insertBefore(WebNode newChild, WebNode refNode) throws java.lang.IllegalArgumentException Adds the given node to the current node's list of child nodes immediately before the reference node.- Parameters:
- newChild- The node to be appended.
- refNode- The node before which the new node is to be inserted.
- Throws:
- java.lang.IllegalArgumentException- Thrown if either node is null, if the reference node is not found, or if the node to insert belongs to a different expression.
 
 - 
insertAftervoid insertAfter(WebNode newChild, WebNode refNode) throws java.lang.IllegalArgumentException Adds the given node to the current node's list of child nodes immediately after the reference node.- Parameters:
- newChild- The node to be appended.
- refNode- The node after which the new node is to be inserted.
- Throws:
- java.lang.IllegalArgumentException- Thrown if either node is null, if the reference node is not found, or if the node to insert belongs to a different expression.
 
 - 
replaceChildvoid replaceChild(WebNode newChild, WebNode oldChild) throws java.lang.IllegalArgumentException Replaces the old node with the given new node in the expression.- Parameters:
- newChild- The node to be used as the replacement.
- oldChild- The node to be replaced.
- Throws:
- java.lang.IllegalArgumentException- Signals that one or both input parameters to this method were null, the reference node is not found, or the replacement node is from a different expression.
 
 - 
removeChildvoid removeChild(WebNode childNode) throws java.lang.IllegalArgumentException Removes the given node from the collection of child nodes.- Parameters:
- childNode- The- WebNodeobject to be removed from the child collection.
- Throws:
- java.lang.IllegalArgumentException- Signals that the given node is null or not found.
 
 - 
clearvoid clear() Removes all child nodes from the current node.
 - 
getTagjava.lang.String getTag() Returns the tag which is currently set on this node. The tag is a user-defined piece of information which can be attached to a node, and will be persisted with the expression's state.- Returns:
- The tag currently set on the node.
 
 - 
setTagvoid setTag(java.lang.String tag) Sets the tag on the node. If this value is null, the current tag will be removed.- Parameters:
- tag- The tag to attach to the current node.
 
 - 
isCancelledPromptboolean isCancelledPrompt() - Since:
- MicroStrategy Web 9.0.0
 
 - 
containsPromptsboolean containsPrompts() Returns true if this node or any of its children has prompts.- Returns:
- true if this node or any of its children has prompts.
- Since:
- MicroStrategy Web 9.0.1
 
 - 
getShortXMLjava.lang.String getShortXML() Return the short xml representation of the node.- Returns:
 
 - 
getCanExpandboolean getCanExpand() Returns the value of the can expand property on the node. This is currently used in custom group elements.- Returns:
- See Also:
- setCanExpand(boolean)
 
 - 
getIsSplicedboolean getIsSpliced() Returns the value of the Is spliced property This is currently used in custom group elements.- Returns:
- See Also:
- setCanExpand(boolean)
 
 - 
setCanExpandvoid setCanExpand(boolean expand) Sets the can expand property. This is currently used in custom group elements.- Parameters:
- expand-
- See Also:
- getCanExpand()
 
 - 
setIsSplicedvoid setIsSpliced(boolean spliced) Sets the is spliced property. This is currently used in custom group elements.- Parameters:
- spliced-
- See Also:
- getIsSpliced()
 
 - 
hasPlaceHolderboolean hasPlaceHolder() Returns whether this node has a place holder defined on it.- Returns:
- true if it has a place holder
 
 - 
getPlaceHolderWebNodePlaceHolder getPlaceHolder() Returns the place holder associated on this node.- Returns:
- WebNodePlaceHolderobject. Null if there is no place holder.
 
 - 
clearPlaceHoldervoid clearPlaceHolder() Deletes the place holder defined on this node.
 - 
createPlaceHolderWebNodePlaceHolder createPlaceHolder() Creates a place holder on this node.- Returns:
- the newly created place holder
 
 - 
getIsIndependentCSIboolean getIsIndependentCSI() Returns whether this node is independent from others. It is used for metric qualifications.- Returns:
- true if it is independent
 
 - 
setIsIndependentCSIvoid setIsIndependentCSI(boolean isIndependentCSI) Sets the node whether it is independent from others.- Parameters:
- isIndependent-
 
 
- 
 
-