public class Spec extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Spec.JarType
The different kind of Spec Jar files.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
API_SUFFIX
ArtifactId suffix for Spec with
api JarType. |
static String |
JAKARTA_GROUP_ID
GroupId used for JakartaEE specs.
|
static String |
JAVAX_GROUP_ID
GroupId used for JavaEE specs.
|
| Constructor and Description |
|---|
Spec()
Create a new instance of
Spec. |
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Get the Spec Artifact.
|
List<String> |
getErrors()
Get the errors collected during verification.
|
Metadata |
getMetadata()
Get the Spec Metadata.
|
void |
read(JarFile jarfile)
Populate the spec artifact and metadata from the given JAR file.
|
void |
setApiPackage(String pkg)
Set the API package for this spec.
|
void |
setArtifact(Artifact a)
Set the artifact for this spec.
|
void |
setGroupIdPrefix(String prefix)
Set the groupId prefix for this spec.
|
void |
setImplBuild(String build)
Set the implementation build for this spec.
|
void |
setImplNamespace(String namespace)
Set the implementation namespace for this spec.
|
void |
setImplVersion(String version)
Set the implementation version for this spec.
|
void |
setJarType(String type)
Set the spec JAR type.
|
void |
setMetadata(Metadata mdata)
Set metadata for this spec.
|
void |
setNewImplVersion(String version)
Set the new spec implementation version for this spec.
|
void |
setNewSpecVersion(String version)
Set the new spec version for this spec.
|
void |
setNonFinal(boolean nfinal)
Set the spec non final flag.
|
void |
setSpecBuild(String build)
Set the spec build for this spec.
|
void |
setSpecImplVersion(String version)
Set the spec implementation version for this spec.
|
void |
setSpecVersion(String version)
Set the spec version for this spec.
|
String |
toString()
Create a readable inline description of the spec.
|
void |
verify()
Perform the Spec verification.
|
public static final String JAVAX_GROUP_ID
public static final String JAKARTA_GROUP_ID
public static final String API_SUFFIX
api JarType.public void read(JarFile jarfile) throws IOException
jarfile - the JAR file to processIOException - if an error occurs while reading the JAR filepublic void verify()
public Artifact getArtifact()
public Metadata getMetadata()
public List<String> getErrors()
public void setGroupIdPrefix(String prefix)
prefix - the groupId prefix to usepublic void setApiPackage(String pkg)
pkg - the apiPackage to usepublic void setImplNamespace(String namespace)
namespace - the implementation namespacepublic void setImplVersion(String version)
version - the implementation versionpublic void setSpecVersion(String version)
version - the spec versionpublic void setNewImplVersion(String version)
version - the spec versionpublic void setSpecBuild(String build)
build - the spec buildpublic void setSpecImplVersion(String version)
version - the spec implementation versionpublic void setNewSpecVersion(String version)
version - the new spec versionpublic void setImplBuild(String build)
build - the implementation buildpublic void setArtifact(Artifact a)
a - the artifact to usepublic void setNonFinal(boolean nfinal)
nfinal - the non final value to usepublic void setJarType(String type)
type - the JAR type to usepublic void setMetadata(Metadata mdata)
mdata - the metadata useCopyright © 2018 Oracle Corporation. All Rights Reserved.