|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SourceElement | |
---|---|
org.apache.torque.generator.control | This package implements the torque generator Controller . |
org.apache.torque.generator.source | This package contains the handling of source files. |
org.apache.torque.generator.source.jdbc | This package implements sources which read from jdbc. |
org.apache.torque.generator.source.stream | This package contains the handling of stream-based sources, such as file sources. |
org.apache.torque.generator.source.transform | This package contains the definition of source transformers and some implementations. |
org.apache.torque.generator.template.velocity | This package contains the handling of velocity outlets in the Torque generator. |
Uses of SourceElement in org.apache.torque.generator.control |
---|
Methods in org.apache.torque.generator.control that return SourceElement | |
---|---|
SourceElement |
ControllerState.getRootElement()
Returns the root element of the current source. |
SourceElement |
ControllerState.getSourceElement()
Returns the current source element. |
SourceElement |
Controller.transformSource(SourceElement rootElement,
List<SourceTransformerDefinition> transformerDefinitions,
ControllerState controllerState)
Applies all tarnsformer definitions to the current source. |
Methods in org.apache.torque.generator.control with parameters of type SourceElement | |
---|---|
void |
ControllerState.setRootElement(SourceElement rootElement)
Sets the root element of the current source. |
void |
ControllerState.setSourceElement(SourceElement sourceElement)
Sets the current source element. |
SourceElement |
Controller.transformSource(SourceElement rootElement,
List<SourceTransformerDefinition> transformerDefinitions,
ControllerState controllerState)
Applies all tarnsformer definitions to the current source. |
Uses of SourceElement in org.apache.torque.generator.source |
---|
Methods in org.apache.torque.generator.source that return SourceElement | |
---|---|
SourceElement |
SourceElement.copy()
Creates a deep copy of this RichSourceelementImpl object. |
protected abstract SourceElement |
SourceImpl.createRootElement()
Reads the root element and the whole untransformed source tree. |
SourceElement |
SourceElement.getChild(SourceElementName sourceElementName)
Returns the first child of this SourceElement which has the given name. |
SourceElement |
SourceElement.getChild(String name)
Returns the first child of this SourceElement which has the given name. |
static SourceElement |
SourcePath.getElement(SourceElement sourceElement,
String path,
boolean acceptEmpty)
Gets a single source element which can be reached from the start element by a given path. |
SourceElement |
SourceElement.getParent()
Returns the primary parent of this SourceElement. |
SourceElement |
Source.getRootElement()
Returns the root element of the source. |
SourceElement |
SourceImpl.getRootElement()
|
Methods in org.apache.torque.generator.source that return types with arguments of type SourceElement | |
---|---|
List<SourceElement> |
SourceElement.getChildren()
Returns all children of this SourceElement. |
List<SourceElement> |
SourceElement.getChildren(SourceElementName sourceElementName)
Returns all children of this SourceElement which have the given name. |
List<SourceElement> |
SourceElement.getChildren(String name)
Returns all children of this SourceElement which have the given name. |
static List<SourceElement> |
SourcePath.getElements(SourceElement sourceElement,
String path)
Gets the elements which can be reached from the start element by a given path. |
static List<SourceElement> |
SourcePath.getElementsFromRoot(SourceElement rootElement,
String path)
Gets the elements which can be reached from the root element by a given path. |
static List<SourceElement> |
SourcePath.getFollowing(SourceElement sourceElement,
String name)
Returns all the following elements after this element with the given name. |
List<SourceElement> |
SourceElement.getFollowing(String name)
Returns all the following elements after this element with the given name. |
List<SourceElement> |
SourceElement.getParents()
Returns the list of parents of this SourceElement. |
static List<SourceElement> |
SourcePath.getPreceding(SourceElement sourceElement,
String name)
Returns all the preceding elements before this element with the given name. |
List<SourceElement> |
SourceElement.getPreceding(String name)
Returns all the preceding elements before this element with the given name. |
Methods in org.apache.torque.generator.source with parameters of type SourceElement | |
---|---|
static SourceElement |
SourcePath.getElement(SourceElement sourceElement,
String path,
boolean acceptEmpty)
Gets a single source element which can be reached from the start element by a given path. |
static List<SourceElement> |
SourcePath.getElements(SourceElement sourceElement,
String path)
Gets the elements which can be reached from the start element by a given path. |
static List<SourceElement> |
SourcePath.getElementsFromRoot(SourceElement rootElement,
String path)
Gets the elements which can be reached from the root element by a given path. |
static List<SourceElement> |
SourcePath.getFollowing(SourceElement sourceElement,
String name)
Returns all the following elements after this element with the given name. |
static String |
SourcePath.getPathAsString(SourceElement sourceElement)
Returns the path from the root element to the source element. |
static List<SourceElement> |
SourcePath.getPreceding(SourceElement sourceElement,
String name)
Returns all the preceding elements before this element with the given name. |
boolean |
SourceElement.graphEquals(SourceElement toCompare)
Checks whether the source element graph of this sourceElement, and its position therein, equals the source element graph and the position of the provided SourceElement. |
static boolean |
SourcePath.hasChild(SourceElement sourceElement,
String name)
Returns whether children with the given name exist. |
static boolean |
SourcePath.hasFollowing(SourceElement sourceElement)
Returns whether a following element exists as a child of the parent of this element. |
static boolean |
SourcePath.hasFollowingSibling(SourceElement sourceElement)
Returns whether a following element exists as a child of the parent of this element, which has the same name as this source element. |
static boolean |
SourcePath.hasPreceding(SourceElement sourceElement)
Returns whether an preceding exists as a child of the parent of this element. |
static boolean |
SourcePath.hasPrecedingSibling(SourceElement sourceElement)
Returns whether an preceding exists as a child of the parent of this element, which has the same name as this source element. |
Uses of SourceElement in org.apache.torque.generator.source.jdbc |
---|
Methods in org.apache.torque.generator.source.jdbc that return SourceElement | |
---|---|
protected SourceElement |
JdbcMetadataSource.createRootElement()
|
Uses of SourceElement in org.apache.torque.generator.source.stream |
---|
Methods in org.apache.torque.generator.source.stream that return SourceElement | |
---|---|
SourceElement |
CombinedFileSource.createRootElement()
Reads and parses the input file and creates the element tree from it. |
SourceElement |
FileSource.createRootElement()
Reads and parses the input file and creates the element tree from it. |
SourceElement |
XmlSourceSaxHandler.getRoot()
Returns the root element of the tree. |
SourceElement |
StreamSourceFormat.parse(InputStream inputStream,
ControllerState controllerState)
Parses a source file and returns its root element. |
SourceElement |
XmlSourceFormat.parse(InputStream xmlStream,
ControllerState controllerState)
Parses a stream containing xml data and creates a source element hierarchy from it. |
SourceElement |
PropertiesSourceFormat.parse(InputStream inputStream,
ControllerState controllerState)
Parses a Stream in Properties format and returns the root element of the created element tree. |
Methods in org.apache.torque.generator.source.stream with parameters of type SourceElement | |
---|---|
String |
SourceToXml.toXml(SourceElement rootElement,
boolean createIdAttributes)
Renders a source element and its children as XML. |
Uses of SourceElement in org.apache.torque.generator.source.transform |
---|
Methods in org.apache.torque.generator.source.transform that return SourceElement | |
---|---|
SourceElement |
BeanPropertyMethodNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
SourceTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Transforms one source tree into another source tree. |
abstract SourceElement |
SourceTargetAttributeTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Performs the transformation. |
SourceElement |
LoadAllSourceFilesTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
CopyAttributeTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
LoadAdditionalSourceTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
GetterSetterNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attributes according to the settings. |
SourceElement |
AttributeTransformer.transform(SourceElement toTransform,
ControllerState controllerState)
Adds attributes to the sourceElement according to the transformDefinition. |
Methods in org.apache.torque.generator.source.transform with parameters of type SourceElement | |
---|---|
SourceElement |
BeanPropertyMethodNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
SourceTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Transforms one source tree into another source tree. |
abstract SourceElement |
SourceTargetAttributeTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Performs the transformation. |
SourceElement |
LoadAllSourceFilesTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
CopyAttributeTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
LoadAdditionalSourceTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
GetterSetterNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attributes according to the settings. |
SourceElement |
AttributeTransformer.transform(SourceElement toTransform,
ControllerState controllerState)
Adds attributes to the sourceElement according to the transformDefinition. |
Uses of SourceElement in org.apache.torque.generator.template.velocity |
---|
Methods in org.apache.torque.generator.template.velocity that return SourceElement | |
---|---|
SourceElement |
TorqueGenVelocity.getChild(String name)
Returns the first child of the current source element with the given name. |
SourceElement |
TorqueGenVelocity.getParent()
Returns the parent of the current source element. |
SourceElement |
TorqueGenVelocity.getSourceElement()
Returns the current source element. |
Methods in org.apache.torque.generator.template.velocity that return types with arguments of type SourceElement | |
---|---|
List<SourceElement> |
TorqueGenVelocity.getChildren()
Returns all children of the current source element. |
List<SourceElement> |
TorqueGenVelocity.getChildren(String name)
Returns the children of the current source element with a certain name. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |