org.teiid.query.processor.xml
Class AddNodeInstruction

java.lang.Object
  extended by org.teiid.query.processor.xml.ProcessorInstruction
      extended by org.teiid.query.processor.xml.AddNodeInstruction

public class AddNodeInstruction
extends ProcessorInstruction


Field Summary
static boolean ATTRIBUTE
           
static boolean ELEMENT
           
 
Constructor Summary
AddNodeInstruction(NodeDescriptor descriptor)
          Constructor for AddElementInstruction.
AddNodeInstruction(NodeDescriptor descriptor, ElementSymbol symbol)
          Constructor for AddElementInstruction.
 
Method Summary
 PlanNode getDescriptionProperties()
           
 org.teiid.query.processor.xml.XMLContext process(XMLProcessorEnvironment env, org.teiid.query.processor.xml.XMLContext context)
          Outputs an element or an attribute, or nothing, based on the state of the instruction.
 void setNillableDescriptor(NodeDescriptor nillableDescriptor)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT

public static final boolean ELEMENT
See Also:
Constant Field Values

ATTRIBUTE

public static final boolean ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

AddNodeInstruction

public AddNodeInstruction(NodeDescriptor descriptor)
Constructor for AddElementInstruction.

Parameters:
tag - Tag name
namespacePrefix - String prefix that maps to a namespace (optional, may be null)
isElement - indicates an element or an attribute
fixedValue -
namespaceDeclarations -
isOptional -

AddNodeInstruction

public AddNodeInstruction(NodeDescriptor descriptor,
                          ElementSymbol symbol)
Constructor for AddElementInstruction.

Parameters:
tag - Tag name
namespacePrefix - String prefix that maps to a namespace (optional, may be null)
isElement - indicates an element or an attribute
resultSetName -
resultSetColumn -
type -
defaultValue -
namespaceDeclarations -
isOptional -
Method Detail

process

public org.teiid.query.processor.xml.XMLContext process(XMLProcessorEnvironment env,
                                                        org.teiid.query.processor.xml.XMLContext context)
                                                 throws BlockedException,
                                                        TeiidComponentException,
                                                        TeiidProcessingException
Outputs an element or an attribute, or nothing, based on the state of the instruction.

Specified by:
process in class ProcessorInstruction
Parameters:
env - instance of ProcessorEnvironment which is being used for the processing of the XML document model query
Throws:
BlockedException - if data is not available now but may be at a later time
TeiidComponentException - for non-business exception
TeiidProcessingException - for business exception due to user input or model
See Also:
ProcessorInstruction#process(ProcessorEnvironment)

toString

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

getDescriptionProperties

public PlanNode getDescriptionProperties()
Specified by:
getDescriptionProperties in class ProcessorInstruction

setNillableDescriptor

public void setNillableDescriptor(NodeDescriptor nillableDescriptor)
Parameters:
nillableDescriptor - The nillableDescriptor to set.
Since:
4.3


Copyright © 2010. All Rights Reserved.