Package org.rumbledb.expressions.xml
Class DirElemConstructorExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.xml.DirElemConstructorExpression
Expression representing a direct element constructor.
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode -
Constructor Summary
ConstructorsConstructorDescriptionDirElemConstructorExpression(String tagName, List<Expression> content, List<Expression> attributes, ExceptionMetadata metadata) Constructor for a direct element constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.Get the attributes of the elementReturns all children nodes as a list.Get the content of the elementGet the node name of the elementvoidserializeToJSONiq(StringBuffer sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdating, isUpdatingNonSequential, print, setExpressionClassification, setSequential, setStaticContext, setStaticSequenceTypeMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
DirElemConstructorExpression
public DirElemConstructorExpression(String tagName, List<Expression> content, List<Expression> attributes, ExceptionMetadata metadata) Constructor for a direct element constructor.- Parameters:
tagName- The node name of the elementcontent- The content of the elementattributes- The attributes of the elementmetadata- The exception metadata
-
-
Method Details
-
getNodeName
Get the node name of the element- Returns:
- The node name of the element
-
getContent
Get the content of the element- Returns:
- The content of the element
-
getAttributes
Get the attributes of the element- Returns:
- The attributes of the element
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
getChildren
Description copied from class:NodeReturns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildrenin classNode- Returns:
- the children nodes as a list.
-
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-