org.javagen.agile.core
Class ModelPath
java.lang.Object
org.javagen.agile.core.ModelPath
- All Implemented Interfaces:
- Generator
public class ModelPath
- extends Object
- implements Generator
Using the input node as a starting point, traverses the model tree using
the XPath-like path and returns the result as output.
- Author:
- Richard Easterling
- See Also:
for path language syntax
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelPath
public ModelPath()
setExplicitResult
public void setExplicitResult(Model explicitResult)
setResultPath
public void setResultPath(String resultPath)
gen
public Model gen(Model input)
- Description copied from interface:
Generator
- Entry point for generation task.
- Specified by:
gen in interface Generator
- Parameters:
input - the model instance to generate on - parent nodes will be ignored.
- Returns:
- the result of the task - usualy the same as the input model.
Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.