Package org.teiid.query.sql.symbol
Class XMLElement
- java.lang.Object
-
- org.teiid.query.sql.symbol.XMLElement
-
- All Implemented Interfaces:
Cloneable,LanguageObject,Expression
public class XMLElement extends Object implements Expression
Represents XMLElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Constructor Summary
Constructors Constructor Description XMLElement(String name, List<Expression> content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptVisitor(LanguageVisitor visitor)Method for accepting a visitor.XMLElementclone()Implement clone to make objects cloneable.booleanequals(Object obj)XMLAttributesgetAttributes()List<Expression>getContent()StringgetName()XMLNamespacesgetNamespaces()Class<?>getType()Get the return type of this expression.inthashCode()voidsetAttributes(XMLAttributes attributes)voidsetContent(List<Expression> args)voidsetName(String name)voidsetNamespaces(XMLNamespaces namespaces)StringtoString()
-
-
-
Constructor Detail
-
XMLElement
public XMLElement(String name, List<Expression> content)
-
-
Method Detail
-
getAttributes
public XMLAttributes getAttributes()
-
getNamespaces
public XMLNamespaces getNamespaces()
-
setAttributes
public void setAttributes(XMLAttributes attributes)
-
setNamespaces
public void setNamespaces(XMLNamespaces namespaces)
-
getContent
public List<Expression> getContent()
-
getName
public String getName()
-
setName
public void setName(String name)
-
setContent
public void setContent(List<Expression> args)
-
getType
public Class<?> getType()
Description copied from interface:ExpressionGet the return type of this expression.- Specified by:
getTypein interfaceExpression- Returns:
- Java class may be null prior to being resolved
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObjectMethod for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitorin interfaceLanguageObject- Parameters:
visitor- Visitor being used
-
clone
public XMLElement clone()
Description copied from interface:LanguageObjectImplement clone to make objects cloneable.- Specified by:
clonein interfaceLanguageObject- Overrides:
clonein classObject- Returns:
- Deep clone of this object
-
-