Java Doc for ScriptSpec.java in  » Science » Cougaar12_4 » org » cougaar » lib » aggagent » query » 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 » Science » Cougaar12_4 » org.cougaar.lib.aggagent.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.lib.aggagent.query.ScriptSpec

ScriptSpec
public class ScriptSpec implements Serializable(Code)
An instance of this class may be used to represent a script, including the code itself plus a variety of information concerning the intended usage of the script.



Constructor Summary
public  ScriptSpec(ScriptType t, Language l, String s)
     Create a new ScriptSpec for the provided script with the purpose and language specified.
public  ScriptSpec(Language l, XmlFormat f, String s)
     Create a new ScriptSpec for an IncrementFormat, with the language and XmlFormat specified.
public  ScriptSpec(Language l, AggType agg, String s, String ids)
     Create a new ScriptSpec for an Aggregator, with the aggregation type, collation IDs, and script language specified.
public  ScriptSpec(ScriptType t, String s, Map p)
     Create a new ScriptSpec for a Java implementation.
public  ScriptSpec(XmlFormat f, String s, Map p)
     Create a new ScriptSpec for an IncrementFormat in Java.
public  ScriptSpec(AggType agg, String s, String ids, Map p)
     Create a new ScriptSpec for an Aggregator in Java.
public  ScriptSpec(Element root)
     Reconstitute a ScriptSpec that has been converted to XML.

Method Summary
public  StringgetAggIdString()
     Retrieve the list of collation IDs for an Aggregator script.
public  AggTypegetAggType()
     Retrieve the type of aggregation that this script provides.
public  XmlFormatgetFormat()
     Retrieve the type of XML encoding that this script provides.
public  LanguagegetLanguage()
     Tell the language in which this script is written.
public  StringgetText()
     Supply the caller with the text of the script.
public  ScriptTypegetType()
     Tell the basic purpose of the script.
public  voidincludeXml(InverseSax doc)
    
public static  AggregatormakeAggregator(Element elt)
     Create an Aggregator directly from an XML representation.
public static  AlertmakeAlert(Element elt)
     Create an Alert directly from an XML representation.
public static  IncrementFormatmakeIncrementFormat(Element elt)
     Create an IncrementFormat directly from an XML representation.
public static  ObjectmakeObject(Element elt)
     Create an Object of the appropriate type directly from an XML representation.
public static  UnaryPredicatemakeUnaryPredicate(Element elt)
     Create a UnaryPredicate directly from an XML representation.
public  AggregatortoAggregator()
     Create an Aggregator from this ScriptSpec, if appropriate.
public  AlerttoAlert()
     Create an Alert from this ScriptSpec, if appropriate.
public  IncrementFormattoIncrementFormat()
     Create an IncrementFormat from this ScriptSpec, if appropriate.
public  ObjecttoObject()
     Convert this ScriptSpec to a Java Object of the appropriate type.
public  UnaryPredicatetoUnaryPredicate()
     Create a UnaryPredicate from this ScriptSpec, if appropriate.
public  StringtoXml()
     Convert this ScriptSpec to XML for transmission over a network.


Constructor Detail
ScriptSpec
public ScriptSpec(ScriptType t, Language l, String s)(Code)
Create a new ScriptSpec for the provided script with the purpose and language specified. Everything else is left as its default value.



ScriptSpec
public ScriptSpec(Language l, XmlFormat f, String s)(Code)
Create a new ScriptSpec for an IncrementFormat, with the language and XmlFormat specified.



ScriptSpec
public ScriptSpec(Language l, AggType agg, String s, String ids)(Code)
Create a new ScriptSpec for an Aggregator, with the aggregation type, collation IDs, and script language specified.



ScriptSpec
public ScriptSpec(ScriptType t, String s, Map p)(Code)
Create a new ScriptSpec for a Java implementation. Here, the purpose of the script, the class name, and a parameter map for the Java class are supplied by the caller.



ScriptSpec
public ScriptSpec(XmlFormat f, String s, Map p)(Code)
Create a new ScriptSpec for an IncrementFormat in Java. The XmlFormat, class name, and parameter list are provided by the caller.



ScriptSpec
public ScriptSpec(AggType agg, String s, String ids, Map p)(Code)
Create a new ScriptSpec for an Aggregator in Java. The caller supplies the AggType, class name, collation IDs, and a parameter map for the Java class.



ScriptSpec
public ScriptSpec(Element root)(Code)
Reconstitute a ScriptSpec that has been converted to XML. In effect, this constructor is the inverse of the toXml() method of this class.




Method Detail
getAggIdString
public String getAggIdString()(Code)
Retrieve the list of collation IDs for an Aggregator script.



getAggType
public AggType getAggType()(Code)
Retrieve the type of aggregation that this script provides. See Enum.AggType for details. This value is only meaningful if the script type is Enum.ScriptType.AGGREGATOR, and should be ignored otherwise.



getFormat
public XmlFormat getFormat()(Code)
Retrieve the type of XML encoding that this script provides. See Enum.XmlFormat for details. This value is only meaningful if the script type is Enum.ScriptType.INCREMENT_FORMAT, and should be ignored otherwise.



getLanguage
public Language getLanguage()(Code)
Tell the language in which this script is written. See Enum.Language for details.



getText
public String getText()(Code)
Supply the caller with the text of the script. In the case of a Java representation, the class name is returned.



getType
public ScriptType getType()(Code)
Tell the basic purpose of the script. See Enum.ScriptType for details.



includeXml
public void includeXml(InverseSax doc)(Code)



makeAggregator
public static Aggregator makeAggregator(Element elt) throws Exception(Code)
Create an Aggregator directly from an XML representation. If the document does not specify an Aggregator, an Exception may be raised.



makeAlert
public static Alert makeAlert(Element elt) throws Exception(Code)
Create an Alert directly from an XML representation. If the document does not specify an Alert, an Exception may be raised.



makeIncrementFormat
public static IncrementFormat makeIncrementFormat(Element elt) throws Exception(Code)
Create an IncrementFormat directly from an XML representation. If the document does not specify an IncrementFormat, an Exception may be raised.



makeObject
public static Object makeObject(Element elt) throws Exception(Code)
Create an Object of the appropriate type directly from an XML representation.



makeUnaryPredicate
public static UnaryPredicate makeUnaryPredicate(Element elt) throws Exception(Code)
Create a UnaryPredicate directly from an XML representation. If the document does not specify a UnaryPredicate, an Exception may be raised.



toAggregator
public Aggregator toAggregator() throws Exception(Code)
Create an Aggregator from this ScriptSpec, if appropriate. If the language spec is not one of those recognized, then this method will return null. If the script is not an Aggregator script, then an Exception will be raised.



toAlert
public Alert toAlert() throws Exception(Code)
Create an Alert from this ScriptSpec, if appropriate. If the language spec is not one of those recognized, then this method will return null. If the script is not an Alert script, then an Exception will be raised.



toIncrementFormat
public IncrementFormat toIncrementFormat() throws Exception(Code)
Create an IncrementFormat from this ScriptSpec, if appropriate. If the language spec is not one of those recognized, then this method will return null. If the script is not an IncrementFormat script, then an Exception will be raised.



toObject
public Object toObject() throws Exception(Code)
Convert this ScriptSpec to a Java Object of the appropriate type.



toUnaryPredicate
public UnaryPredicate toUnaryPredicate() throws Exception(Code)
Create a UnaryPredicate from this ScriptSpec, if appropriate. If the language spec is not one of those recognized, then this method will return null. If the script is not a UnaryPredicate script, then an Exception will be raised.



toXml
public String toXml()(Code)
Convert this ScriptSpec to XML for transmission over a network. The parsed XML document can then be used to reconstruct the ScriptSpec using the constructor that takes an Element as its argument.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.