org.teiid.query.sql.symbol
Class XMLElement

java.lang.Object
  extended by org.teiid.query.sql.symbol.XMLElement
All Implemented Interfaces:
java.lang.Cloneable, LanguageObject, Expression

public class XMLElement
extends java.lang.Object
implements Expression

Represents XMLATTRIBUTES/XMLFOREST name value pairs


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
 
Constructor Summary
XMLElement(java.lang.String name, java.util.List<Expression> content)
           
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 XMLElement clone()
          Implement clone to make objects cloneable.
 boolean equals(java.lang.Object obj)
           
 XMLAttributes getAttributes()
           
 java.util.List<Expression> getContent()
           
 java.lang.String getName()
           
 XMLNamespaces getNamespaces()
           
 java.lang.Class<?> getType()
          Get the return type of this expression.
 int hashCode()
           
 boolean isResolved()
          Return true if expression has been fully resolved.
 void setAttributes(XMLAttributes attributes)
           
 void setContent(java.util.List<Expression> args)
           
 void setName(java.lang.String name)
           
 void setNamespaces(XMLNamespaces namespaces)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLElement

public XMLElement(java.lang.String name,
                  java.util.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 java.util.List<Expression> getContent()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

setContent

public void setContent(java.util.List<Expression> args)

getType

public java.lang.Class<?> getType()
Description copied from interface: Expression
Get the return type of this expression. This method will not necessarily work right before resolution (Expression.isResolved() returns true).

Specified by:
getType in interface Expression
Returns:
Java class name

isResolved

public boolean isResolved()
Description copied from interface: Expression
Return true if expression has been fully resolved. Typically the QueryResolver component will handle resolution of an expression.

Specified by:
isResolved in interface Expression
Returns:
True if 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 interface LanguageObject
Parameters:
visitor - Visitor being used

clone

public XMLElement clone()
Description copied from interface: LanguageObject
Implement clone to make objects cloneable.

Specified by:
clone in interface LanguageObject
Overrides:
clone in class java.lang.Object
Returns:
Deep clone of this object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.