Java Doc for Derivation.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » vdl » classes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » pegasus 2.1.0 » org.griphyn.vdl.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.griphyn.vdl.classes.VDL
   org.griphyn.vdl.classes.Definition
      org.griphyn.vdl.classes.Derivation

Derivation
public class Derivation extends Definition implements HasPass,Serializable(Code)
Derivation is an implementation of an abstract VDL Definition. A derivation describes the mutable part concerning input, processing, and output (IPO) when calling an application. The environment is part of the capture. A derivation parametrizes the template provided by a Transformation with actual values. Think of a derivation as something akin to a C function call. The derivation provides the actual parameter to a job. The immutable parts are hidden in a Transformation.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $
See Also:   Definition
See Also:   Definitions
See Also:   Transformation
See Also:   



Constructor Summary
public  Derivation()
     ctor.
public  Derivation(String name, String uses)
    
public  Derivation(String name, String uses, String min, String max)
     Convenience ctor: Names a derivation and supplies the used Transformation as well as the permissable version range.
public  Derivation(String ns, String name, String version, String us, String uses, String min, String max)
     Complete ctor: Constructs the full three part Derivation identifier, and four part Transformation mapper.
public  Derivation(String name, String uses, Pass firstChild)
     Convenience ctor: Names the derivation and supplies the used Transformation, and the first actual argument.

Method Summary
public  voidaddPass(Pass vPass)
     Accessor: Adds an actual argument to the bag of arguments.
public  booleancontainsLFN(String filename, int linkage)
     Determines if the list contains an LFN of the specified linkage. The logic uses short-circuit evaluation, thus finding things is faster than not finding things.
public  EnumerationenumeratePass()
     Accessor: Provides an iterator for the bag of actual arguments.
public  java.util.ListgetLFNList(int linkage)
     Determines all LFN instances from the actual arguments of a given derivation that match the specified linkage.
public  StringgetMaxIncludeVersion()
     Accessor: Obtains the maximum inclusive version permissable for binding to a Transformation .
public  StringgetMinIncludeVersion()
     Accessor: Obtains the minimum inclusive version permissable for binding to a Transformation .
public  PassgetPass(String name)
     Accessor: Obtains an actual argument identified by the bound variable.
Parameters:
  name - is the binding name.
public  Pass[]getPass()
     Accessor: Obtains the bag of actual arguments as array.
public  intgetPassCount()
     Accessor: Counts the number of actual arguments.
public  java.util.ListgetPassList()
     Accessor: Gets an array of all values that constitute the current content.
public  java.util.MapgetPassMap()
     Accessor: Obtains all actual arguments.
public  intgetType()
     Type accessor for quick distinction between definitions.
public  java.lang.StringgetUses()
     Accessor: Obtains the name of the logical Transformation that this derivation refers to.
public  java.lang.StringgetUsesspace()
     Accessor: Obtains the namespace of the logical Transformation that this derivation refers to.
public  Stringidentify()
     Constructs dynamically a short descriptive, hopefully unique identifier for this derivation.
public  IteratoriteratePass()
     Accessor: Provides an iterator for the bag of actual arguments.
public static  booleanmatch(String version, String minInc, String maxInc)
     Matches an external version string against the internal range.
public  booleanmatch(String version)
     Instance method for matching an external version against the inclusive version range.
Parameters:
  version - is an externally supplied version to be checked,if it is within the inclusive interval of min and max.
public  voidremoveAllPass()
     Accessor: Removes all actual arguments.
public  PassremovePass(String name)
     Accessor: Removes a specific actual argument.
public  voidsetMaxIncludeVersion(String miv)
     Accessor: Sets the maximum inclusive permissable version of a logical transformation to run with.
public  voidsetMinIncludeVersion(String miv)
     Accessor: Sets the minimum inclusive permissable version of a logical transformation to run with.
public  voidsetPass(Pass vPass)
     Accessor: Adds a new or overwrites an existing actual argument.
public  voidsetPass(Pass[] passArray)
     Accessor: Replaces the bag of actual argument with new arguments.
public  voidsetPass(Collection passes)
     Accessor: Replaces the bag of actual argument with a bag of new arguments.
public  voidsetPass(Map passes)
     Accessor: Replaces the bag of actual argument with a map of new arguments.
public  voidsetUses(String uses)
     Accessor: Sets a new name for a logical Transformation to call.
public  voidsetUsesspace(String usesspace)
     Accessor: Sets a new namespace identifier for a logical Transformation to call.
public  voidtoString(Writer stream)
     Dumps the content of the given element into a string.
public  voidtoXML(Writer stream, String indent, String namespace)
     Dump the state of the current element as XML output.


Constructor Detail
Derivation
public Derivation()(Code)
ctor.



Derivation
public Derivation(String name, String uses)(Code)
Convenience ctor: Names a derivation and the used Transformation
Parameters:
  name - is the name of the Derivation
Parameters:
  uses - is the name of the Transformation
See Also:   Transformation



Derivation
public Derivation(String name, String uses, String min, String max)(Code)
Convenience ctor: Names a derivation and supplies the used Transformation as well as the permissable version range.
Parameters:
  name - is the name of the Derivation.
Parameters:
  uses - is the name of the Transformation.
Parameters:
  min - is the minimum inclusive permissable version.
Parameters:
  max - is the maximum inclusive permissable version.
See Also:   Transformation



Derivation
public Derivation(String ns, String name, String version, String us, String uses, String min, String max)(Code)
Complete ctor: Constructs the full three part Derivation identifier, and four part Transformation mapper.
Parameters:
  ns - is then namespace of the Derivation.
Parameters:
  name - is the name of the Derivation.
Parameters:
  version - is the version of the Derivation.
Parameters:
  us - is the namespace to search for a Transformation.
Parameters:
  uses - is the name of the Transformation.
Parameters:
  min - is the minimum inclusive permissable version.
Parameters:
  max - is the maximum inclusive permissable version.
See Also:   Transformation



Derivation
public Derivation(String name, String uses, Pass firstChild)(Code)
Convenience ctor: Names the derivation and supplies the used Transformation, and the first actual argument.
Parameters:
  name - is the name of the Derivation.
Parameters:
  uses - is the name of the Transformation.
Parameters:
  firstChild - is a first (possibly only) actual argument.
See Also:   Transformation
See Also:   Pass




Method Detail
addPass
public void addPass(Pass vPass)(Code)
Accessor: Adds an actual argument to the bag of arguments.
Parameters:
  vPass - is the new actual argument to add.
See Also:   Pass



containsLFN
public boolean containsLFN(String filename, int linkage)(Code)
Determines if the list contains an LFN of the specified linkage. The logic uses short-circuit evaluation, thus finding things is faster than not finding things. Searching a list is a potentially expensive method.
Parameters:
  filename - is the name of the LFN
Parameters:
  linkage - is the linkage to check for, -1 for any linkage type. true if the LFN is contained in the scalar, false otherwise.
See Also:   Value.containsLFN(Stringint)
See Also:   LFN



enumeratePass
public Enumeration enumeratePass()(Code)
Accessor: Provides an iterator for the bag of actual arguments. the iterator for Pass elements.
See Also:   Pass
See Also:   java.util.Enumeration



getLFNList
public java.util.List getLFNList(int linkage)(Code)
Determines all LFN instances from the actual arguments of a given derivation that match the specified linkage. This is a higher-level method employing the given interface. Note that also linkage of NONE will not be found in wildcard search mode.
Parameters:
  linkage - is the linkage type to match against, -1 for allfiles. a list of logical filenames from the given derivation whichmatch the given linkage. For a linkage of -1, complete LFNs will be returned, for any other linkage, just the filename will be returned.
See Also:   Value.getLFNList(int)
See Also:   LFN
See Also:   



getMaxIncludeVersion
public String getMaxIncludeVersion()(Code)
Accessor: Obtains the maximum inclusive version permissable for binding to a Transformation . the maximum inclusive version number.
See Also:   Derivation.setMaxIncludeVersion(java.lang.String)



getMinIncludeVersion
public String getMinIncludeVersion()(Code)
Accessor: Obtains the minimum inclusive version permissable for binding to a Transformation . the minimum inclusive version number.
See Also:   Derivation.setMinIncludeVersion(java.lang.String)



getPass
public Pass getPass(String name)(Code)
Accessor: Obtains an actual argument identified by the bound variable.
Parameters:
  name - is the binding name. the bound value to the given name.
See Also:   Pass



getPass
public Pass[] getPass()(Code)
Accessor: Obtains the bag of actual arguments as array. Note that the order is arbitrary. an array containing all bound variables.
See Also:   Pass



getPassCount
public int getPassCount()(Code)
Accessor: Counts the number of actual arguments. the number of actual arguments in the internal bag.



getPassList
public java.util.List getPassList()(Code)
Accessor: Gets an array of all values that constitute the current content. This list is read-only. an array with Pass elements.
See Also:   Pass



getPassMap
public java.util.Map getPassMap()(Code)
Accessor: Obtains all actual arguments. The map is a read-only map to avoid modifications outside the API. a map will all actual arguments.
See Also:   Pass



getType
public int getType()(Code)
Type accessor for quick distinction between definitions. the value of Definition.DERIVATION



getUses
public java.lang.String getUses()(Code)
Accessor: Obtains the name of the logical Transformation that this derivation refers to.
See Also:   Derivation.setUses(java.lang.String)



getUsesspace
public java.lang.String getUsesspace()(Code)
Accessor: Obtains the namespace of the logical Transformation that this derivation refers to.
See Also:   Derivation.setUsesspace(java.lang.String)



identify
public String identify()(Code)
Constructs dynamically a short descriptive, hopefully unique identifier for this derivation. Recent modification add the complete identification in terms of derivation name, namespace, and version as well as the called transformation name, namespace and version range. FIXME: Anonymous derivations get their hash code, which is well for the first versions working without database. Later versions with database must use some unique sequence mechanism instead. a string describing the derivation
See Also:   Object.hashCode



iteratePass
public Iterator iteratePass()(Code)
Accessor: Provides an iterator for the bag of actual arguments. an iterator to walk the Pass list with.
See Also:   Pass



match
public static boolean match(String version, String minInc, String maxInc)(Code)
Matches an external version string against the internal range. This predicate function uses inclusive matches. Special interpretation will be applied to null values, internally as well as an external null value.

 vers.   min    max     result
 -----   ----   -----   ------
 null    null   null    true
 null    *      null    true
 null    null   *       true
 null    *      *       true
 null   null    true
 "A"     "B"    null    false
 "B"     "B"    null    true
 "C"     "B"    null    true
 "A"     null   "B"     true
 "B"     null   "B"     true
 "C"     null   "B"     false
 "A"     "B"    "B"     false 
 "B"     "B"    "B"     true
 "C"     "B"    "B"     false 
 

Parameters:
  version - is an externally supplied version to be checked,if it is within the inclusive interval of min and max.
Parameters:
  minInc - is the minimum inclusive version of the range.
Parameters:
  maxInc - is the maximum inclusive version of the range. true, if the version is in range, false otherwise.



match
public boolean match(String version)(Code)
Instance method for matching an external version against the inclusive version range.
Parameters:
  version - is an externally supplied version to be checked,if it is within the inclusive interval of min and max. true, if the version is in range, false otherwise.
See Also:   Derivation.match(StringStringString)



removeAllPass
public void removeAllPass()(Code)
Accessor: Removes all actual arguments. Effectively empties the bag.



removePass
public Pass removePass(String name)(Code)
Accessor: Removes a specific actual argument.
Parameters:
  name - is the bound variable name of the argument to remove. the object that was removed, or null, if not found.
See Also:   Pass



setMaxIncludeVersion
public void setMaxIncludeVersion(String miv)(Code)
Accessor: Sets the maximum inclusive permissable version of a logical transformation to run with.
Parameters:
  miv - is the (new) maximum inclusive version.
See Also:   Derivation.getMaxIncludeVersion()



setMinIncludeVersion
public void setMinIncludeVersion(String miv)(Code)
Accessor: Sets the minimum inclusive permissable version of a logical transformation to run with.
Parameters:
  miv - is the (new) minimum inclusive version.
See Also:   Derivation.getMinIncludeVersion()



setPass
public void setPass(Pass vPass)(Code)
Accessor: Adds a new or overwrites an existing actual argument.
Parameters:
  vPass - is a new actual argument with bound name and value.
See Also:   Pass



setPass
public void setPass(Pass[] passArray)(Code)
Accessor: Replaces the bag of actual argument with new arguments.
Parameters:
  passArray - is the new actual argument list.
See Also:   Pass



setPass
public void setPass(Collection passes)(Code)
Accessor: Replaces the bag of actual argument with a bag of new arguments.
Parameters:
  passes - is the new actual argument collection.
See Also:   Pass



setPass
public void setPass(Map passes)(Code)
Accessor: Replaces the bag of actual argument with a map of new arguments.
Parameters:
  passes - is the new actual argument map.
See Also:   Pass



setUses
public void setUses(String uses)(Code)
Accessor: Sets a new name for a logical Transformation to call.
Parameters:
  uses - is the new name of the Transformation to use.
See Also:   Derivation.getUses()
See Also:   Transformation



setUsesspace
public void setUsesspace(String usesspace)(Code)
Accessor: Sets a new namespace identifier for a logical Transformation to call.
Parameters:
  usesspace - is the new namespace of theTransformation.
See Also:   Derivation.getUsesspace()
See Also:   Transformation



toString
public void toString(Writer stream) throws IOException(Code)
Dumps the content of the given element into a string. This function traverses all sibling classes as necessary and converts the data into textual output. Note that order of the actual arguments is not preserved.
Parameters:
  stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output.
exception:
  IOException - if something fishy happens to the stream.



toXML
public void toXML(Writer stream, String indent, String namespace) throws IOException(Code)
Dump the state of the current element as XML output. This function traverses all sibling classes as necessary, and converts the data into pretty-printed XML output. The stream interface should be able to handle large output efficiently, if you use a buffered writer.
Parameters:
  stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output.
Parameters:
  indent - is a String of spaces used for prettyprinting. The initial amount of spaces should be an empty string.The parameter is used internally for the recursive traversal.If a null value is specified, no indentation norlinefeeds will be generated.
Parameters:
  namespace - is the XML schema namespace prefix. If neitherempty nor null, each element will be prefixed with this prefix,and the root element will map the XML namespace.
See Also:   org.griphyn.vdl.Chimera.writeAttribute(WriterStringString)
exception:
  IOException - if something fishy happens to the stream.



Fields inherited from org.griphyn.vdl.classes.Definition
final public static int DERIVATION(Code)(Java Doc)
final public static int TRANSFORMATION(Code)(Java Doc)

Methods inherited from org.griphyn.vdl.classes.Definition
public int compareTo(Object o)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getKeyword()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getNamespace()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
abstract public int getType()(Code)(Java Doc)
public String getUrl()(Code)(Java Doc)
public String getVersion()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public String identify()(Code)(Java Doc)
public boolean match(int type, String namespace, String name, String version)(Code)(Java Doc)
public void setDescription(String description)(Code)(Java Doc)
public void setKeyword(String keyword)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setNamespace(String namespace)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setUrl(String url)(Code)(Java Doc)
public void setVersion(String version)(Code)(Java Doc)
public static String shortID(Definition d, String namespace, String name, String version)(Code)(Java Doc)
public String shortID()(Code)(Java Doc)
public String toXML()(Code)(Java Doc)
public void toXML(Writer stream) throws IOException(Code)(Java Doc)


www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.