Java Doc for Extension.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » extension » 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 » Build » ANT » org.apache.tools.ant.taskdefs.optional.extension 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.optional.extension.Extension

Extension
final public class Extension (Code)

Utility class that represents either an available "Optional Package" (formerly known as "Standard Extension") as described in the manifest of a JAR file, or the requirement for such an optional package.

For more information about optional packages, see the document Optional Package Versioning in the documentation bundle for your Java2 Standard Edition package, in file guide/extensions/versioning.html.



Field Summary
final public static  CompatibilityCOMPATIBLE
     Enum indicating that extension is compatible with other extension.
final public static  Attributes.NameEXTENSION_LIST
     Manifest Attribute Name object for EXTENSION_LIST.
final public static  Attributes.NameEXTENSION_NAME
     Manifest Attribute Name object for EXTENSION_NAME.
final public static  Attributes.NameIMPLEMENTATION_URL
     Manifest Attribute Name object for IMPLEMENTATION_URL.
final public static  Attributes.NameIMPLEMENTATION_VENDOR
     Manifest Attribute Name object for IMPLEMENTATION_VENDOR.
final public static  Attributes.NameIMPLEMENTATION_VENDOR_ID
     Manifest Attribute Name object for IMPLEMENTATION_VENDOR_ID.
final public static  Attributes.NameIMPLEMENTATION_VERSION
     Manifest Attribute Name object for IMPLEMENTATION_VERSION.
final public static  CompatibilityINCOMPATIBLE
     Enum indicating that extension is incompatible with other extension in ways other than other enums indicate).
final public static  Attributes.NameOPTIONAL_EXTENSION_LIST
     Name object for Optional-Extension-List manifest attribute used for declaring optional dependencies on installed extensions.
final public static  CompatibilityREQUIRE_IMPLEMENTATION_UPGRADE
     Enum indicating that extension requires an upgrade of implementation to be compatible with other extension.
final public static  CompatibilityREQUIRE_SPECIFICATION_UPGRADE
     Enum indicating that extension requires an upgrade of specification to be compatible with other extension.
final public static  CompatibilityREQUIRE_VENDOR_SWITCH
     Enum indicating that extension requires a vendor switch to be compatible with other extension.
final public static  Attributes.NameSPECIFICATION_VENDOR
     Manifest Attribute Name object for SPECIFICATION_VENDOR.
final public static  Attributes.NameSPECIFICATION_VERSION
     Manifest Attribute Name object for SPECIFICATION_VERSION.

Constructor Summary
public  Extension(String extensionName, String specificationVersion, String specificationVendor, String implementationVersion, String implementationVendor, String implementationVendorId, String implementationURL)
     The constructor to create Extension object.

Method Summary
public static  voidaddExtension(Extension extension, Attributes attributes)
     Add Extension to the specified manifest Attributes.
public static  voidaddExtension(Extension extension, String prefix, Attributes attributes)
     Add Extension to the specified manifest Attributes.
public static  Extension[]getAvailable(Manifest manifest)
     Return an array of Extension objects representing optional packages that are available in the JAR file associated with the specified Manifest.
public  CompatibilitygetCompatibilityWith(Extension required)
     Return a Compatibility enum indicating the relationship of this Extension with the specified Extension.
public  StringgetExtensionName()
     Get the name of the extension.
public  StringgetImplementationURL()
     Get the url of the extensions implementation.
public  StringgetImplementationVendor()
     Get the vendor of the extensions implementation.
public  StringgetImplementationVendorID()
     Get the vendorID of the extensions implementation.
public  DeweyDecimalgetImplementationVersion()
     Get the version of the extensions implementation.
public static  Extension[]getOptions(Manifest manifest)
     Return the set of Extension objects representing "Optional Packages" that the application declares they will use if present.
public static  Extension[]getRequired(Manifest manifest)
     Return the set of Extension objects representing optional packages that are required by the application contained in the JAR file associated with the specified Manifest.
public  StringgetSpecificationVendor()
     Get the vendor of the extensions specification.
public  DeweyDecimalgetSpecificationVersion()
     Get the version of the extensions specification.
public  booleanisCompatibleWith(Extension required)
     Return true if the specified Extension (which represents an optional package required by an application) is satisfied by this Extension (which represents an optional package that is already installed.
public  StringtoString()
     Return a String representation of this object.

Field Detail
COMPATIBLE
final public static Compatibility COMPATIBLE(Code)
Enum indicating that extension is compatible with other extension.



EXTENSION_LIST
final public static Attributes.Name EXTENSION_LIST(Code)
Manifest Attribute Name object for EXTENSION_LIST.



EXTENSION_NAME
final public static Attributes.Name EXTENSION_NAME(Code)
Manifest Attribute Name object for EXTENSION_NAME.



IMPLEMENTATION_URL
final public static Attributes.Name IMPLEMENTATION_URL(Code)
Manifest Attribute Name object for IMPLEMENTATION_URL.



IMPLEMENTATION_VENDOR
final public static Attributes.Name IMPLEMENTATION_VENDOR(Code)
Manifest Attribute Name object for IMPLEMENTATION_VENDOR.



IMPLEMENTATION_VENDOR_ID
final public static Attributes.Name IMPLEMENTATION_VENDOR_ID(Code)
Manifest Attribute Name object for IMPLEMENTATION_VENDOR_ID.



IMPLEMENTATION_VERSION
final public static Attributes.Name IMPLEMENTATION_VERSION(Code)
Manifest Attribute Name object for IMPLEMENTATION_VERSION.



INCOMPATIBLE
final public static Compatibility INCOMPATIBLE(Code)
Enum indicating that extension is incompatible with other extension in ways other than other enums indicate). For example the other extension may have a different ID.



OPTIONAL_EXTENSION_LIST
final public static Attributes.Name OPTIONAL_EXTENSION_LIST(Code)
Name object for Optional-Extension-List manifest attribute used for declaring optional dependencies on installed extensions. Note that the dependencies declared by this method are not required for the library to operate but if present will be used. It is NOT part of the official "Optional Package" specification.
See Also:    * Installed extension dependency



REQUIRE_IMPLEMENTATION_UPGRADE
final public static Compatibility REQUIRE_IMPLEMENTATION_UPGRADE(Code)
Enum indicating that extension requires an upgrade of implementation to be compatible with other extension.



REQUIRE_SPECIFICATION_UPGRADE
final public static Compatibility REQUIRE_SPECIFICATION_UPGRADE(Code)
Enum indicating that extension requires an upgrade of specification to be compatible with other extension.



REQUIRE_VENDOR_SWITCH
final public static Compatibility REQUIRE_VENDOR_SWITCH(Code)
Enum indicating that extension requires a vendor switch to be compatible with other extension.



SPECIFICATION_VENDOR
final public static Attributes.Name SPECIFICATION_VENDOR(Code)
Manifest Attribute Name object for SPECIFICATION_VENDOR.



SPECIFICATION_VERSION
final public static Attributes.Name SPECIFICATION_VERSION(Code)
Manifest Attribute Name object for SPECIFICATION_VERSION.




Constructor Detail
Extension
public Extension(String extensionName, String specificationVersion, String specificationVendor, String implementationVersion, String implementationVendor, String implementationVendorId, String implementationURL)(Code)
The constructor to create Extension object. Note that every component is allowed to be specified but only the extensionName is mandatory.
Parameters:
  extensionName - the name of extension.
Parameters:
  specificationVersion - the specification Version of extension.
Parameters:
  specificationVendor - the specification Vendor of extension.
Parameters:
  implementationVersion - the implementation Version of extension.
Parameters:
  implementationVendor - the implementation Vendor of extension.
Parameters:
  implementationVendorId - the implementation VendorId of extension.
Parameters:
  implementationURL - the implementation URL of extension.




Method Detail
addExtension
public static void addExtension(Extension extension, Attributes attributes)(Code)
Add Extension to the specified manifest Attributes.
Parameters:
  attributes - the attributes of manifest to add to
Parameters:
  extension - the extension



addExtension
public static void addExtension(Extension extension, String prefix, Attributes attributes)(Code)
Add Extension to the specified manifest Attributes. Use the specified prefix so that dependencies can added with a prefix such as "java3d-" etc.
Parameters:
  attributes - the attributes of manifest to add to
Parameters:
  extension - the extension
Parameters:
  prefix - the name to prefix to extension



getAvailable
public static Extension[] getAvailable(Manifest manifest)(Code)
Return an array of Extension objects representing optional packages that are available in the JAR file associated with the specified Manifest. If there are no such optional packages, a zero-length array is returned.
Parameters:
  manifest - Manifest to be parsed the "available" extensions in specified manifest



getCompatibilityWith
public Compatibility getCompatibilityWith(Extension required)(Code)
Return a Compatibility enum indicating the relationship of this Extension with the specified Extension.
Parameters:
  required - Description of the required optional package the enum indicating the compatibility (or lack thereof)of specifed extension



getExtensionName
public String getExtensionName()(Code)
Get the name of the extension. the name of the extension



getImplementationURL
public String getImplementationURL()(Code)
Get the url of the extensions implementation. the url of the extensions implementation.



getImplementationVendor
public String getImplementationVendor()(Code)
Get the vendor of the extensions implementation. the vendor of the extensions implementation.



getImplementationVendorID
public String getImplementationVendorID()(Code)
Get the vendorID of the extensions implementation. the vendorID of the extensions implementation.



getImplementationVersion
public DeweyDecimal getImplementationVersion()(Code)
Get the version of the extensions implementation. the version of the extensions implementation.



getOptions
public static Extension[] getOptions(Manifest manifest)(Code)
Return the set of Extension objects representing "Optional Packages" that the application declares they will use if present. If there are no such optional packages, a zero-length list is returned.
Parameters:
  manifest - Manifest to be parsed the optional dependencies that are specified in manifest



getRequired
public static Extension[] getRequired(Manifest manifest)(Code)
Return the set of Extension objects representing optional packages that are required by the application contained in the JAR file associated with the specified Manifest. If there are no such optional packages, a zero-length list is returned.
Parameters:
  manifest - Manifest to be parsed the dependencies that are specified in manifes



getSpecificationVendor
public String getSpecificationVendor()(Code)
Get the vendor of the extensions specification. the vendor of the extensions specification.



getSpecificationVersion
public DeweyDecimal getSpecificationVersion()(Code)
Get the version of the extensions specification. the version of the extensions specification.



isCompatibleWith
public boolean isCompatibleWith(Extension required)(Code)
Return true if the specified Extension (which represents an optional package required by an application) is satisfied by this Extension (which represents an optional package that is already installed. Otherwise, return false.
Parameters:
  required - Description of the required optional package true if the specified extension is compatible with this extension



toString
public String toString()(Code)
Return a String representation of this object. string representation of object.



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)

w___w__w___.__ja__v___a2s__.__co___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.