Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.extension

public Class ExtensionAdapter

extends DataType
Class Inheritance
Imports
org.apache.tools.ant.BuildException, org.apache.tools.ant.types.DataType, .Reference, org.apache.tools.ant.util.DeweyDecimal

Simple class that represents an Extension and conforms to Ants patterns.

Field Summary

Modifier and TypeField and Description
private String
extensionName

The name of the optional package being made available, or required.

private String
implementationURL

The URL from which the most recent version of this optional package can be obtained if it is not already installed.

private String
implementationVendor

The name of the company or organization that produced this implementation of this optional package.

private String
implementationVendorID

The unique identifier of the company that produced the optional package contained in this JAR file.

private DeweyDecimal
implementationVersion

The version number (dotted decimal notation) for this implementation of the optional package.

private String
specificationVendor

The name of the company or organization that originated the specification to which this optional package conforms.

private DeweyDecimal
specificationVersion

The version number (dotted decimal notation) of the specification to which this optional package conforms.

Inherited from org.apache.tools.ant.types.DataType:
checkedref

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private ExtensionAdapter
public void
setExtensionName(final String
the name of extension
extensionName
)

Set the name of extension.

public void
setImplementationUrl(final String
the implementationURL of extension
implementationURL
)

Set the implementationURL of extension.

public void
setImplementationVendor(final String
the implementationVendor of extension
implementationVendor
)

Set the implementationVendor of extension.

public void
setImplementationVendorId(final String
the implementationVendorID of extension
implementationVendorID
)

Set the implementationVendorID of extension.

public void
setImplementationVersion(final String
the implementationVersion of extension
implementationVersion
)

Set the implementationVersion of extension.

public void
setRefid(final Reference
the reference to which this instance is associated
reference
)

Overrides org.apache.tools.ant.types.DataType.setRefid.

Makes this instance in effect a reference to another ExtensionAdapter instance.
public void
setSpecificationVendor(final String
the specificationVendor of extension
specificationVendor
)

Set the specificationVendor of extension.

public void
setSpecificationVersion(final String
the specificationVersion of extension
specificationVersion
)

Set the specificationVersion of extension.

pack-priv Extension

Returns:

the extension object
toExtension
()

Convert this adapter object into an extension object.

public String

Returns:

the extension in a string.
toString
()

Overrides org.apache.tools.ant.types.DataType.toString.

a debug toString method.
private void
Inherited from org.apache.tools.ant.types.DataType:
checkAttributesAllowedcheckChildrenAllowedcircularReferenceclonedieOnCircularReferencedieOnCircularReferencedieOnCircularReferencegetCheckedRefgetCheckedRefgetCheckedRefgetCheckedRefgetCheckedRefgetDataTypeNamegetRefidinvokeCircularReferenceCheckisCheckedisReferencenoChildrenAllowedpushAndInvokeCircularReferenceChecksetCheckedtooManyAttributes

Field Detail

extensionNameback to summary
private String extensionName

The name of the optional package being made available, or required.

implementationURLback to summary
private String implementationURL

The URL from which the most recent version of this optional package can be obtained if it is not already installed.

implementationVendorback to summary
private String implementationVendor

The name of the company or organization that produced this implementation of this optional package.

implementationVendorIDback to summary
private String implementationVendorID

The unique identifier of the company that produced the optional package contained in this JAR file.

implementationVersionback to summary
private DeweyDecimal implementationVersion

The version number (dotted decimal notation) for this implementation of the optional package.

specificationVendorback to summary
private String specificationVendor

The name of the company or organization that originated the specification to which this optional package conforms.

specificationVersionback to summary
private DeweyDecimal specificationVersion

The version number (dotted decimal notation) of the specification to which this optional package conforms.

Constructor Detail

ExtensionAdapterback to summary
public ExtensionAdapter()

Method Detail

getRefback to summary
private ExtensionAdapter getRef()
setExtensionNameback to summary
public void setExtensionName(final String extensionName)

Set the name of extension.

Parameters
extensionName:String

the name of extension

setImplementationUrlback to summary
public void setImplementationUrl(final String implementationURL)

Set the implementationURL of extension.

Parameters
implementationURL:String

the implementationURL of extension

setImplementationVendorback to summary
public void setImplementationVendor(final String implementationVendor)

Set the implementationVendor of extension.

Parameters
implementationVendor:String

the implementationVendor of extension

setImplementationVendorIdback to summary
public void setImplementationVendorId(final String implementationVendorID)

Set the implementationVendorID of extension.

Parameters
implementationVendorID:String

the implementationVendorID of extension

setImplementationVersionback to summary
public void setImplementationVersion(final String implementationVersion)

Set the implementationVersion of extension.

Parameters
implementationVersion:String

the implementationVersion of extension

setRefidback to summary
public void setRefid(final Reference reference) throws BuildException

Overrides org.apache.tools.ant.types.DataType.setRefid.

Makes this instance in effect a reference to another ExtensionAdapter instance.

You must not set another attribute or nest elements inside this element if you make it a reference.

Parameters
reference:Reference

the reference to which this instance is associated

Annotations
@Override
Exceptions
BuildException:
if this instance already has been configured.
setSpecificationVendorback to summary
public void setSpecificationVendor(final String specificationVendor)

Set the specificationVendor of extension.

Parameters
specificationVendor:String

the specificationVendor of extension

setSpecificationVersionback to summary
public void setSpecificationVersion(final String specificationVersion)

Set the specificationVersion of extension.

Parameters
specificationVersion:String

the specificationVersion of extension

toExtensionback to summary
pack-priv Extension toExtension() throws BuildException

Convert this adapter object into an extension object.

Returns:Extension

the extension object

toStringback to summary
public String toString()

Overrides org.apache.tools.ant.types.DataType.toString.

a debug toString method.

Returns:String

the extension in a string.

Annotations
@Override
See Also
java.lang.Object#toString()
verifyNotAReferenceback to summary
private void verifyNotAReference() throws BuildException