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 void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.XMLElement
clone()
Implement clone to make objects cloneable.boolean
equals(Object obj)
XMLAttributes
getAttributes()
List<Expression>
getContent()
String
getName()
XMLNamespaces
getNamespaces()
Class<?>
getType()
Get the return type of this expression.int
hashCode()
void
setAttributes(XMLAttributes attributes)
void
setContent(List<Expression> args)
void
setName(String name)
void
setNamespaces(XMLNamespaces namespaces)
String
toString()
-
-
-
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:Expression
Get the return type of this expression.- Specified by:
getType
in interfaceExpression
- Returns:
- Java class may be null prior to being resolved
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitor
in interfaceLanguageObject
- Parameters:
visitor
- Visitor being used
-
clone
public XMLElement clone()
Description copied from interface:LanguageObject
Implement clone to make objects cloneable.- Specified by:
clone
in interfaceLanguageObject
- Overrides:
clone
in classObject
- Returns:
- Deep clone of this object
-
-