Class Spec
java.lang.Object
org.glassfish.spec.Spec
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild bundle symbolic name from API package and API_SUFFIX.Get the Spec Artifact.Get the errors collected during verification.Get the Spec Metadata.voidPopulate the spec artifact and metadata from the given JAR file.voidsetApiPackage(String pkg) Set the API package for this spec.voidSet the artifact for this spec.voidsetImplBuild(String build) Set the implementation build for this spec.voidsetImplNamespace(String namespace) Set the implementation namespace for this spec.voidsetImplVersion(String version) Set the implementation version for this spec.voidsetJarType(String type) Set the spec JAR type.voidsetMetadata(Metadata mdata) Set metadata for this spec.voidsetNewImplVersion(String version) Set the new spec implementation version for this spec.voidsetNewSpecVersion(String version) Set the new spec version for this spec.voidsetNonFinal(boolean nfinal) Set the spec non final flag.voidsetSpecBuild(String build) Set the spec build for this spec.voidsetSpecImplVersion(String version) Set the spec implementation version for this spec.voidsetSpecMode(String name) Set spec mode value for this spec.voidsetSpecVersion(String version) Set the spec version for this spec.toString()Create a readable inline description of the spec.voidverify()Perform the Spec verification.
-
Field Details
-
JAVAX_GROUP_ID
-
JAKARTA_GROUP_ID
-
API_SUFFIX
-
-
Constructor Details
-
Spec
public Spec()Create a new instance ofSpec.
-
-
Method Details
-
read
Populate the spec artifact and metadata from the given JAR file.- Parameters:
jarfile- the JAR file to process- Throws:
IOException- if an error occurs while reading the JAR file
-
verify
public void verify()Perform the Spec verification. -
getArtifact
-
getMetadata
-
getErrors
-
setSpecMode
Set spec mode value for this spec.- Parameters:
name- spec mode value matching lower case value ofSpecModename attribute
-
setApiPackage
Set the API package for this spec.- Parameters:
pkg- the apiPackage to use
-
buildBundleSymbolicName
Build bundle symbolic name from API package and API_SUFFIX.- Returns:
- bundle symbolic name value to be supplied
as
spec.bundle.symbolic-nameproperty.
-
setImplNamespace
Set the implementation namespace for this spec.- Parameters:
namespace- the implementation namespace
-
setImplVersion
Set the implementation version for this spec.- Parameters:
version- the implementation version
-
setSpecVersion
Set the spec version for this spec.- Parameters:
version- the spec version
-
setNewImplVersion
Set the new spec implementation version for this spec.- Parameters:
version- the spec version
-
setSpecBuild
Set the spec build for this spec.- Parameters:
build- the spec build
-
setSpecImplVersion
Set the spec implementation version for this spec.- Parameters:
version- the spec implementation version
-
setNewSpecVersion
Set the new spec version for this spec.- Parameters:
version- the new spec version
-
setImplBuild
Set the implementation build for this spec.- Parameters:
build- the implementation build
-
setArtifact
Set the artifact for this spec.- Parameters:
a- the artifact to use
-
setNonFinal
public void setNonFinal(boolean nfinal) Set the spec non final flag.- Parameters:
nfinal- the non final value to use
-
setJarType
-
setMetadata
Set metadata for this spec.- Parameters:
mdata- the metadata use
-
toString
-