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

Definitions
public class Definitions extends VDL implements Serializable(Code)
This class implements the container to carry any number of Transformation and Derivation instances. In addition, it captures some attributes from the root element of the XML document.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $
See Also:   Definition
See Also:   Transformation
See Also:   Derivation


Field Summary
final public static  StringSCHEMA_LOCATION
     The "not-so-official" location URL of the VDLx schema definition.
final public static  StringSCHEMA_NAMESPACE
     The "official" namespace URI of the VDLx schema.

Constructor Summary
public  Definitions()
     ctor.
public  Definitions(String vdlns)
     ctor: Create a new container, using the given namespace.
public  Definitions(String vdlns, String version)
     ctor: Create a new container, using a namespace and version.

Method Summary
public  voidaddDefinition(Definition d)
     Accessor: Appends a Definition to the container.
public  voidaddDefinition(int index, Definition d)
     Accessor: Inserts a Definition at a particular place.
public  EnumerationenumerateDefinition()
     Accessor: Provides an iterator for the list of Transformation and Derivation .
public  DefinitiongetDefinition(int index)
     Accessor: Obtains a Definition at a particular place in this container.
Parameters:
  index - is the place to look up the element.
public  Definition[]getDefinition()
     Accessor: Obtains all Definition s available.
public  intgetDefinitionCount()
     Accessor: Counts the number of Transformation and Derivation definitions.
public  java.util.ListgetDefinitionList()
     Accessor: Obtains all Definition s available. This list is read-only.
public  java.util.ListgetDefinitionOfAKind(int type)
     Obtains a vector of all definition instances that share the same instance type.
public  StringgetVdlns()
     Accessor: Obtains the document namespace.
public  StringgetVersion()
     Accessor: Obtains the document version number. the version number from the document header, or null,if unset.
public  IteratoriterateDefinition()
     Accessor: Provides an iterator for the list of Transformation and Derivation references.
public  ListIteratorlistIterateDefinition()
     Accessor: Provides an iterator for the list of Transformation and Derivation references.
public  ListIteratorlistIterateDefinition(int start)
     Accessor: Provides an iterator for the list of Transformation and Derivation references.
Parameters:
  start - is the starting point of the iteration.
public  intpositionOfDefinition(Definition d)
     Accessor: Search the database for the existence of a Definition with the same primary keys and type as the parameter.
public  voidremoveAllDefinition()
     Accessor: Removes all definitions we know about.
public  DefinitionremoveDefinition(int index)
     Accessor: Removes a definition.
public  booleanremoveDefinition(Definition d)
     Accessor: Removes a definition named by its reference.
protected  voidsanitizeDefinition(Definition d)
     Clean-up definition and perform abstract type checks before submitting them into the document.
exception:
  IllegalArgumentException - will be thrown if theDefinition is neither a Derivation nor aTransformation.
public  DefinitionsetDefinition(int index, Definition d)
     Accessor: Sets the component at the specified index of this vector to be the specified object.
public  voidsetDefinition(Definition[] definitionArray)
     Accessor: Replace all Definition s with a new list.
public  voidsetDefinition(Collection definitions)
     Accessor: Replace all Definition s with a new list.
public  voidsetVdlns(String vdlns)
     Accessor: Sets the document default namespace.
Parameters:
  vdlns - is the new namespace to use.
public  voidsetVersion(String version)
     Accessor: Replaces the version number of the document.
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.
public  voidwriteXMLHeader(Writer stream, String indent, String namespace)
     Writes the header of the XML output.

Field Detail
SCHEMA_LOCATION
final public static String SCHEMA_LOCATION(Code)
The "not-so-official" location URL of the VDLx schema definition.



SCHEMA_NAMESPACE
final public static String SCHEMA_NAMESPACE(Code)
The "official" namespace URI of the VDLx schema.




Constructor Detail
Definitions
public Definitions()(Code)
ctor. It is strongly suggested that you set the namespace and version of the object before adding any other Definition objects.



Definitions
public Definitions(String vdlns)(Code)
ctor: Create a new container, using the given namespace. It is highly recommended that you set the version number before you add any Definition instance.
Parameters:
  vdlns - is the namespace to use for elements w/o namespace.



Definitions
public Definitions(String vdlns, String version)(Code)
ctor: Create a new container, using a namespace and version.
Parameters:
  vdlns - is the namespace to propagate to children w/o namespace.
Parameters:
  version - is a version of the XML document used to transportthe data.




Method Detail
addDefinition
public void addDefinition(Definition d) throws IndexOutOfBoundsException(Code)
Accessor: Appends a Definition to the container. The namespace and version information will be, in case they are missing, updated from the definitions namespace and version respectively.
Parameters:
  d - is the Transformation or Derivationto append to the internal container.
throws:
  IndexOutOfBoundsException - if the definition does not fit intothe container.



addDefinition
public void addDefinition(int index, Definition d) throws IndexOutOfBoundsException(Code)
Accessor: Inserts a Definition at a particular place. The namespace and version information will be, in case they are missing, updated from the definitions namespace and version respectively.

Each component in this vector with an index greater or equal to the specified index is shifted upward to have an index one greater than the value it had previously.
Parameters:
  index - is the position to insert a Definition
Parameters:
  d - is the Transformation or Derivationto append to the internal container.
throws:
  IndexOutOfBoundsException - if the definition does not fit intothe container.




enumerateDefinition
public Enumeration enumerateDefinition()(Code)
Accessor: Provides an iterator for the list of Transformation and Derivation . the iterator to traverse the container of Definitions.
See Also:   java.util.Enumeration



getDefinition
public Definition getDefinition(int index) throws IndexOutOfBoundsException(Code)
Accessor: Obtains a Definition at a particular place in this container.
Parameters:
  index - is the place to look up the element. the Definition at the specified place.
throws:
  IndexOutOfBoundsException - if the referenced position doesnot exist.
See Also:   Definition



getDefinition
public Definition[] getDefinition()(Code)
Accessor: Obtains all Definition s available. This array is a copy to avoid write-through modifications. an array containing either a Transformationor Derivation at each position.



getDefinitionCount
public int getDefinitionCount()(Code)
Accessor: Counts the number of Transformation and Derivation definitions. item count.



getDefinitionList
public java.util.List getDefinitionList()(Code)
Accessor: Obtains all Definition s available. This list is read-only. an array containing either a Transformationor Derivation at each position.



getDefinitionOfAKind
public java.util.List getDefinitionOfAKind(int type)(Code)
Obtains a vector of all definition instances that share the same instance type. Please note that the definitions below may change after the vector is obtained. a vector with all Transformation or Derivationobjects. The vector may have zero size, if no such instances exist.



getVdlns
public String getVdlns()(Code)
Accessor: Obtains the document namespace. the namespace of the document, or null, if not used.
See Also:   Definitions.setVdlns(java.lang.String)



getVersion
public String getVersion()(Code)
Accessor: Obtains the document version number. the version number from the document header, or null,if unset. Since the version number is a required attribute,it should never return null, only an empty string.



iterateDefinition
public Iterator iterateDefinition()(Code)
Accessor: Provides an iterator for the list of Transformation and Derivation references. a list iterator to traverse the container of Definitions.
See Also:   java.util.ListIterator



listIterateDefinition
public ListIterator listIterateDefinition()(Code)
Accessor: Provides an iterator for the list of Transformation and Derivation references. a list iterator to traverse the container of Definitions.
See Also:   java.util.ListIterator



listIterateDefinition
public ListIterator listIterateDefinition(int start)(Code)
Accessor: Provides an iterator for the list of Transformation and Derivation references.
Parameters:
  start - is the starting point of the iteration. a list iterator to traverse the container of Definitions.
See Also:   java.util.ListIterator



positionOfDefinition
public int positionOfDefinition(Definition d)(Code)
Accessor: Search the database for the existence of a Definition with the same primary keys and type as the parameter.
Parameters:
  d - is the Definition to search for the position of the selfsame Definition, or -1 if not found.



removeAllDefinition
public void removeAllDefinition()(Code)
Accessor: Removes all definitions we know about.
See Also:   Definition



removeDefinition
public Definition removeDefinition(int index)(Code)
Accessor: Removes a definition. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously. The size of this vector is decreased by 1.
Parameters:
  index - is the position to remove the argument fragment from. the removed Definition.
exception:
  ArrayIndexOutOfBoundsException - if the index was invalid.
See Also:   Definition



removeDefinition
public boolean removeDefinition(Definition d)(Code)
Accessor: Removes a definition named by its reference. Removes the first occurrence of the specified element in this Vector.
Parameters:
  d - is a definition instance that originated from this list. true, if the first occurance of the element was deleted,false, if there was nothing found to be removed.
See Also:   Definition



sanitizeDefinition
protected void sanitizeDefinition(Definition d) throws IllegalArgumentException, IncompatibleLinkageException, UndeclaredVariableException, IllegalTransformationException(Code)
Clean-up definition and perform abstract type checks before submitting them into the document.
exception:
  IllegalArgumentException - will be thrown if theDefinition is neither a Derivation nor aTransformation. This should not happen.
exception:
  UndeclaredVariableException - will be thrown, ifa Transformation uses a bound variable via Use,but fails to declare the formal argument with Declare.
exception:
  IncompatibleLinkageException - will be thrown, ifthe declared linkage of a formal argument is incompatible with theusage of such a bound variable within a Transformation.
exception:
  IllegalTransformationException - will be thrown, ifthe Transformation has simultaneously Calland Argument items. This exception is bound to vanishwith the next major re-design.
See Also:   Transformation
See Also:   Derivation
See Also:   Use
See Also:   Declare



setDefinition
public Definition setDefinition(int index, Definition d) throws IndexOutOfBoundsException(Code)
Accessor: Sets the component at the specified index of this vector to be the specified object. The previous component at that position is discarded. The index must be a value greater than or equal to 0 and less than the current size of the vector.
Parameters:
  index - is the postion at which to replace a Definition.
Parameters:
  d - is either a Transformation or Derivation to use for replacement.
throws:
  IndexOutOfBoundsException - if the index was invalid.



setDefinition
public void setDefinition(Definition[] definitionArray)(Code)
Accessor: Replace all Definition s with a new list.
Parameters:
  definitionArray - is an array of possibly mixed Transformation and Derivation elements.



setDefinition
public void setDefinition(Collection definitions)(Code)
Accessor: Replace all Definition s with a new list.
Parameters:
  definitions - is an collection of possibly mixed Transformation and Derivation elements.



setVdlns
public void setVdlns(String vdlns)(Code)
Accessor: Sets the document default namespace.
Parameters:
  vdlns - is the new namespace to use. Note that the change willnot be propagated to contained elememts.
See Also:   Definitions.getVdlns()



setVersion
public void setVersion(String version)(Code)
Accessor: Replaces the version number of the document.
Parameters:
  version - is the new version number.
See Also:   Definitions.getVersion()



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.
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.
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.
exception:
  IOException - if something fishy happens to the stream.



writeXMLHeader
public void writeXMLHeader(Writer stream, String indent, String namespace) throws IOException(Code)
Writes the header of the XML output. The output contains the special strings to start an XML document, some comments, and the root element. The latter points to the XML schema via XML Instances.
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.
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.
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.