Java Doc for Definition.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

All known Subclasses:   org.griphyn.vdl.classes.Transformation,  org.griphyn.vdl.classes.Derivation,
Definition
abstract public class Definition extends VDL implements Comparable,Serializable(Code)
This is a base class which collects attributes that belong to Transformation and Derivation.

Note: this class has a natural ordering that may be inconsistent with equals due to differing implementations. The equal method will take object type and primary key triple into consideration, making extensive null checks. The compareTo method compares the type and short ids of the Definitions.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $
See Also:   Transformation
See Also:   Derivation
See Also:   



Field Summary
final public static  intDERIVATION
     This is the return value for Definition.getType() from a Derivation .
final public static  intTRANSFORMATION
     This is the return value for Definition.getType() from a Transformation .

Constructor Summary
public  Definition()
    
public  Definition(String name)
     Convenience ctor: name the definition.
public  Definition(String namespace, String name)
     Convenience ctor: name the definition.
public  Definition(String namespace, String name, String version)
     Convenience ctor: name the definition.

Method Summary
public  intcompareTo(Object o)
     Implementation of the java.lang.Comparable interface. Compares this object with the specified object for order.
public  booleanequals(Object obj)
     Accessor: match primary keys of two Definitions. Note, this match is not wildcard capable.
public  StringgetDescription()
     Accessor: Obtains the current description state.
public  StringgetKeyword()
     Accessor: Obtains the current keyword state. a string containing a collection of keywords describing thedefinition, or null for no keywords.
public  StringgetName()
     Accessor: Obtains the current name of the definition.
public  StringgetNamespace()
     Accessor: Obtains the current namespace that is used for the definition.
public  StringgetTitle()
     Accessor: Obtains the current title state.
abstract public  intgetType()
     This is an abstract function that must be implemented by instantiable children, of which currently only exist Transformation and Derivation siblings and derivatives.
public  StringgetUrl()
     Accessor: Obtains the current URI definition.
public  StringgetVersion()
     Accessor: Obtains the current version of the definition.
public  inthashCode()
     Calculate a hash code value for the object to support hash tables.
abstract public  Stringidentify()
     Identify the transformation or derivation by its name.
public  booleanmatch(int type, String namespace, String name, String version)
     Accessor: match the primary key of a definition. Note, this match is not wildcard capable.
public  voidsetDescription(String description)
     Accessor: Sets the description.
public  voidsetKeyword(String keyword)
     Accessor: Sets or overwrites the keyword list.
public  voidsetName(String name)
     Accessor: Sets or overwrite the currently given name.
public  voidsetNamespace(String namespace)
     Accessor: Sets or overwrites the namespace identifier.
public  voidsetTitle(String title)
     Accessor: Sets the current title for the definition.
public  voidsetUrl(String url)
     Accessor: Sets the project reference.
public  voidsetVersion(String version)
     Accessor: Sets the version of the definition.
public static  StringshortID(Definition d, String namespace, String name, String version)
     Create the short id from ns:id:version.
Parameters:
  d - is a Definition, or null for non-siblings
Parameters:
  namespace - is the namespace to use, may be null.
Parameters:
  name - is the name to produce the id for, should not be null.
Parameters:
  version - is a version string, may be null.
public  StringshortID()
     Constructs dynamically a short descriptive, hopefully unique identifier for this derivation w/o referring to any transformation. FIXME: Anonymous derivations get their hash code, which is well for the first versions working without database.
public  StringtoXML()
     The toXML method is a partial method, to be incorporated/called by its sibling class method of the same name.
public  voidtoXML(Writer stream)
     The toXML method is a partial method, to be incorporated/called by its sibling class method of the same name.

Field Detail
DERIVATION
final public static int DERIVATION(Code)
This is the return value for Definition.getType() from a Derivation .



TRANSFORMATION
final public static int TRANSFORMATION(Code)
This is the return value for Definition.getType() from a Transformation .




Constructor Detail
Definition
public Definition()(Code)
ctor: empty



Definition
public Definition(String name)(Code)
Convenience ctor: name the definition. The name is part of a logical Transformation . Note that a Derivation may remain anonymous. The namespace will be the default namespace, or taken from the Definitions . The version remains unset.
Parameters:
  name - is the name to be used for the defintion.



Definition
public Definition(String namespace, String name)(Code)
Convenience ctor: name the definition. The name is part of a logical Transformation . Note that a Derivation may remain anonymous. The version remains unset.
Parameters:
  namespace - is the namespace the name resides in.
Parameters:
  name - is the name to be used for the defintion.



Definition
public Definition(String namespace, String name, String version)(Code)
Convenience ctor: name the definition. The name is part of a logical Transformation . Note that a Derivation may remain anonymous.
Parameters:
  namespace - is the namespace the name resides in.
Parameters:
  name - is the name to be used for the defintion.
Parameters:
  version - is the version of this definition.




Method Detail
compareTo
public int compareTo(Object o)(Code)
Implementation of the java.lang.Comparable interface. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The definitions are compared by their type, and by their short ids.
Parameters:
  o - is the object to be compared a negative number, zero, or a positive number, if the object compared against is less than, equals or greater thanthis object.
exception:
  ClassCastException - if the specified object's typeprevents it from being compared to this Object.



equals
public boolean equals(Object obj)(Code)
Accessor: match primary keys of two Definitions. Note, this match is not wildcard capable. The type of the definitions will also be checked. The primary key of a definition is the triple namespace, name and version. The equals function is null-capable.
Parameters:
  obj - the reference object with which to compare. true, if the primary keys match, false otherwise.



getDescription
public String getDescription()(Code)
Accessor: Obtains the current description state. a string containing a descriptive remark on the definition,or null for no description.
See Also:   Definition.setDescription(java.lang.String)



getKeyword
public String getKeyword()(Code)
Accessor: Obtains the current keyword state. a string containing a collection of keywords describing thedefinition, or null for no keywords.
See Also:   Definition.setKeyword(java.lang.String)



getName
public String getName()(Code)
Accessor: Obtains the current name of the definition. Note that a name is mandatory for any Transformation , but a Derivation may remain anonymous. the current name used for the definition. Note that derivationsmay be anonymous. Returns null, if no name exists.
See Also:   Definition.setName(java.lang.String)



getNamespace
public String getNamespace()(Code)
Accessor: Obtains the current namespace that is used for the definition. Note that a namespace is part of the key for any Transformation . the namespace the definition resides in, or null, ifno namespace was defined.
See Also:   Definition.setNamespace(java.lang.String)



getTitle
public String getTitle()(Code)
Accessor: Obtains the current title state. the title given to this definition, or null, if therewas no title defined.
See Also:   Definition.setTitle(java.lang.String)



getType
abstract public int getType()(Code)
This is an abstract function that must be implemented by instantiable children, of which currently only exist Transformation and Derivation siblings and derivatives. the integer representing the concrete definition type of a instance. The value of -1 *might* be used to indicate an unknowntype.



getUrl
public String getUrl()(Code)
Accessor: Obtains the current URI definition. the URL pointing to related information or a project, ornull, if no URL was registered.
See Also:   Definition.setUrl(java.lang.String)



getVersion
public String getVersion()(Code)
Accessor: Obtains the current version of the definition. A version is an integral part of a logical Transformation . the version number of this definition, or null, if noversion number was defined.
See Also:   Definition.setVersion(java.lang.String)



hashCode
public int hashCode()(Code)
Calculate a hash code value for the object to support hash tables. a hash code value for the object.



identify
abstract public String identify()(Code)
Identify the transformation or derivation by its name.



match
public boolean match(int type, String namespace, String name, String version)(Code)
Accessor: match the primary key of a definition. Note, this match is not wildcard capable. The type of the definitions will also be checked. The primary key of a definition is the triple namespace, name and version. This function is null-capable.
Parameters:
  type - is the type identifier TRANSFORMATION or DERIVATION
Parameters:
  namespace - is the namespace
Parameters:
  name - is the name
Parameters:
  version - is the version true, if the primary keys match, false otherwise.



setDescription
public void setDescription(String description)(Code)
Accessor: Sets the description.
Parameters:
  description -
See Also:   Definition.getDescription()



setKeyword
public void setKeyword(String keyword)(Code)
Accessor: Sets or overwrites the keyword list.
Parameters:
  keyword -
See Also:   Definition.getKeyword()



setName
public void setName(String name)(Code)
Accessor: Sets or overwrite the currently given name.
Parameters:
  name -
See Also:   Definition.getName()



setNamespace
public void setNamespace(String namespace)(Code)
Accessor: Sets or overwrites the namespace identifier.
Parameters:
  namespace -
See Also:   Definition.getNamespace()



setTitle
public void setTitle(String title)(Code)
Accessor: Sets the current title for the definition.
Parameters:
  title -
See Also:   Definition.getTitle()



setUrl
public void setUrl(String url)(Code)
Accessor: Sets the project reference.
Parameters:
  url -
See Also:   Definition.getUrl()



setVersion
public void setVersion(String version)(Code)
Accessor: Sets the version of the definition.
Parameters:
  version -
See Also:   Definition.getVersion()



shortID
public static String shortID(Definition d, String namespace, String name, String version)(Code)
Create the short id from ns:id:version.
Parameters:
  d - is a Definition, or null for non-siblings
Parameters:
  namespace - is the namespace to use, may be null.
Parameters:
  name - is the name to produce the id for, should not be null.
Parameters:
  version - is a version string, may be null. A string which textually identifies a Definition.
exception:
  RuntimeException - , if the name and definition are both null.



shortID
public String shortID()(Code)
Constructs dynamically a short descriptive, hopefully unique identifier for this derivation w/o referring to any transformation. 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



toXML
public String toXML()(Code)
The toXML method is a partial method, to be incorporated/called by its sibling class method of the same name. For this reason, it does not fit the VDL interface. a string containing the attributes collected in the base class.



toXML
public void toXML(Writer stream) throws IOException(Code)
The toXML method is a partial method, to be incorporated/called by its sibling class method of the same name. For this reason, it does not fit the VDL interface.
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.




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