|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.arsdigita.apm.Specification
An APM specfication defines an APM Package Type. An APM package type is a type of APM package that specifies the properties of an ACS software program. These programs can be ACS services or ACS applications. The Specification serves a similar purpose as the JAR Manifest in that they both specify the component files of the application, but the Specification contains ACS specific information. Specifications are XML files that conform to a the APM-PACKAGE.dtd available at http://developer.arsdigita.com/doc/apm/apm-package.dtd
java.util.jar.Manifest,
ACSPackageType| Field Summary | |
static java.lang.String |
cvsId
|
| Constructor Summary | |
Specification()
Constructs a new empty Specification instance. |
|
Specification(ACSPackageType pt,
ACSPackageVersion pv)
Creates a new Specification instance from an existing
ACSPackageType and ACSPackageVersion. |
|
Specification(java.math.BigDecimal versionPK)
Creates a new Specification instance from a specific
package version. |
|
Specification(java.io.File file)
Constructs a new Specification instance from the given file. |
|
Specification(java.io.InputStream is)
Constructs a new Specification instance from the specified input stream. |
|
Specification(Specification spec)
Constructs a new Specificaiton by copying the old one. |
|
| Method Summary | |
void |
clear()
Clear the contents of the Specification. |
java.lang.String[] |
getDataModels()
|
java.lang.String |
getKey()
Returns the package key. |
ACSPackageType |
getPackageType()
Get the value of packageType. |
ACSPackageVersion |
getPackageVersion()
Get the value of packageVersion. |
void |
read(java.io.InputStream is)
Reads the Specification from the specified InputStream. |
void |
register()
|
void |
setPackageType(ACSPackageType v)
Set the value of packageType. |
void |
setPackageVersion(ACSPackageVersion v)
Set the value of packageVersion. |
java.lang.String |
toString()
Return the XML contents of the specification. |
void |
write(java.io.OutputStream out)
Write the specification to the specified OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String cvsId
| Constructor Detail |
public Specification()
throws ApmException
Specification instance.ApmException - if the XML parser is unavailable.
public Specification(ACSPackageType pt,
ACSPackageVersion pv)
throws ApmException
Specification instance from an existing
ACSPackageType and ACSPackageVersion.pt - an ACSPackageType valuepv - an ACSPackageVersion valueApmException - if the XML parser is unavailable.
public Specification(java.math.BigDecimal versionPK)
throws ApmException
Specification instance from a specific
package version.versionPK - a BigDecimal valueApmException - if an error occurs
public Specification(java.io.InputStream is)
throws ApmException
is - an InputStream valueApmException - if an error occurs
public Specification(java.io.File file)
throws ApmException
file - The file.ApmException - Thrown when an error occurs.
public Specification(Specification spec)
throws ApmException
spec - a Specification valueApmException - if the XML parser is unavailable.| Method Detail |
public void read(java.io.InputStream is)
throws ApmException
is - an InputStream valuepublic java.lang.String getKey()
public java.lang.String[] getDataModels()
public void register()
throws ApmException
public void write(java.io.OutputStream out)
throws java.io.IOException
out - an OutputStream valuepublic void clear()
public ACSPackageVersion getPackageVersion()
public void setPackageVersion(ACSPackageVersion v)
v - Value to assign to packageVersion.public ACSPackageType getPackageType()
public void setPackageType(ACSPackageType v)
v - Value to assign to packageType.public java.lang.String toString()
toString in class java.lang.ObjectString value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||