public final class VersionInfo
extends org.apache.tools.ant.types.DataType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
companyName
Company name.
|
private java.lang.String |
compatibilityVersion
compatibility version
|
private org.apache.tools.ant.types.Reference |
extendsRef
extends property.
|
private java.lang.String |
fileComments
comments.
|
private java.lang.String |
fileDescription
Description.
|
private java.lang.String |
fileVersion
file version.
|
private java.lang.String |
ifCond
if property.
|
private java.lang.String |
internalName
internal name.
|
private java.lang.String |
language
file language.
|
private java.lang.String |
legalCopyright
legal copyright.
|
private java.lang.String |
legalTrademarks
legal trademark.
|
private java.lang.String |
originalFilename
original filename.
|
private java.lang.Boolean |
patched
prerease build.
|
private java.lang.Boolean |
prerelease
prerease build.
|
private java.lang.String |
privateBuild
private build.
|
private java.lang.String |
productName
product name.
|
private java.lang.String |
productVersion
Product version.
|
private java.lang.String |
specialBuild
Special build
|
private java.lang.String |
unlessCond
unless property.
|
Modifier | Constructor and Description |
---|---|
|
VersionInfo()
Constructor.
|
private |
VersionInfo(java.util.Vector stack)
Private constructor for merge.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Methods is required for documentation generation, throws
exception if called.
|
java.lang.String |
getCompanyname()
Gets Company name.
|
java.lang.String |
getCompatibilityversion()
Gets compatibility version.
|
org.apache.tools.ant.types.Reference |
getExtends() |
java.lang.String |
getFilecomments()
Gets comments.
|
java.lang.String |
getFiledescription()
Gets Description.
|
java.lang.String |
getFileversion()
Gets file version.
|
java.lang.String |
getIf()
Gets if property name.
|
java.lang.String |
getInternalname()
Gets internal name.
|
java.lang.String |
getLanguage()
Gets file language, should be an IETF RFC 3066 identifier, for example, en-US.
|
java.lang.String |
getLegalcopyright()
Gets legal copyright.
|
java.lang.String |
getLegaltrademarks()
Gets legal trademark.
|
java.lang.String |
getOriginalfilename()
Gets original filename.
|
java.lang.Boolean |
getPatched()
Gets patched.
|
java.lang.Boolean |
getPrerelease()
Gets prerelease.
|
java.lang.String |
getPrivatebuild()
Gets private build.
|
java.lang.String |
getProductname()
Gets product name.
|
java.lang.String |
getProductversion()
Gets Product version.
|
java.lang.String |
getSpecialbuild()
Special build
|
java.lang.String |
getUnless()
Gets if property name.
|
boolean |
isActive()
Returns true if the define's if and unless conditions (if any) are
satisfied.
|
VersionInfo |
merge()
Returns a VersionInfo that reflects any inherited version information.
|
void |
setCompanyname(java.lang.String value)
Sets company name.
|
void |
setCompatibilityversion(java.lang.String value)
Sets compatibility version.
|
void |
setExtends(org.apache.tools.ant.types.Reference extendsRef)
Specifies that this element extends the element with id attribute with a
matching value.
|
void |
setFilecomments(java.lang.String value)
Sets comments.
|
void |
setFiledescription(java.lang.String value)
Sets file description.
|
void |
setFileversion(java.lang.String value)
Sets file version.
|
void |
setId(java.lang.String id)
Sets an id that can be used to reference this element.
|
void |
setIf(java.lang.String propName)
Sets the property name for the 'if' condition.
|
void |
setInternalname(java.lang.String value)
Sets internal name.
|
void |
setLanguage(java.lang.String value)
Sets language.
|
void |
setLegalcopyright(java.lang.String value)
Sets legal copyright.
|
void |
setLegaltrademarks(java.lang.String value)
Sets legal trademark.
|
void |
setOriginalfilename(java.lang.String value)
Sets original name.
|
void |
setPatched(boolean value)
Sets prerelease.
|
void |
setPrerelease(boolean value)
Sets prerelease.
|
void |
setPrivatebuild(java.lang.String value)
Sets private build.
|
void |
setProductname(java.lang.String value)
Sets product name.
|
void |
setProductversion(java.lang.String value)
Sets product version.
|
void |
setRefid(org.apache.tools.ant.types.Reference r)
Specifies that this element should behave as if the content of the
element with the matching id attribute was inserted at this location.
|
void |
setSpecialbuild(java.lang.String value)
Sets private build.
|
void |
setUnless(java.lang.String propName)
Set the property name for the 'unless' condition.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
private java.lang.String ifCond
private java.lang.String unlessCond
private org.apache.tools.ant.types.Reference extendsRef
private java.lang.String fileVersion
private java.lang.String productVersion
private java.lang.String language
private java.lang.String fileComments
private java.lang.String companyName
private java.lang.String fileDescription
private java.lang.String internalName
private java.lang.String legalCopyright
private java.lang.String legalTrademarks
private java.lang.String originalFilename
private java.lang.String privateBuild
private java.lang.String productName
private java.lang.String specialBuild
private java.lang.String compatibilityVersion
private java.lang.Boolean prerelease
private java.lang.Boolean patched
public VersionInfo()
private VersionInfo(java.util.Vector stack)
stack
- list of version infos with most significant first.public VersionInfo merge()
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if calledpublic final boolean isActive() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- throws build exception if name is not setpublic void setId(java.lang.String id)
id
- idpublic org.apache.tools.ant.types.Reference getExtends()
public void setExtends(org.apache.tools.ant.types.Reference extendsRef) throws org.apache.tools.ant.BuildException
extendsRef
- Reference to the extended processor definition.org.apache.tools.ant.BuildException
- if this processor definition is a referencepublic final java.lang.String getIf()
public final void setIf(java.lang.String propName)
propName
- property namepublic void setRefid(org.apache.tools.ant.types.Reference r) throws org.apache.tools.ant.BuildException
setRefid
in class org.apache.tools.ant.types.DataType
org.apache.tools.ant.BuildException
public final java.lang.String getUnless()
public final void setUnless(java.lang.String propName)
propName
- name of propertypublic java.lang.String getFileversion()
public java.lang.String getProductversion()
public java.lang.String getCompatibilityversion()
public java.lang.String getLanguage()
public java.lang.String getFilecomments()
public java.lang.String getCompanyname()
public java.lang.String getFiledescription()
public java.lang.String getInternalname()
public java.lang.String getLegalcopyright()
public java.lang.String getLegaltrademarks()
public java.lang.String getOriginalfilename()
public java.lang.String getPrivatebuild()
public java.lang.Boolean getPrerelease()
public java.lang.Boolean getPatched()
public java.lang.String getProductname()
public java.lang.String getSpecialbuild()
public void setFileversion(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setProductversion(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setCompatibilityversion(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setLanguage(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new value, should be an IETF RFC 3066 language identifier.org.apache.tools.ant.BuildException
- if specified with refidpublic void setFilecomments(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setFiledescription(java.lang.String value)
value
- new valuepublic void setCompanyname(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setInternalname(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setLegalcopyright(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setLegaltrademarks(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setOriginalfilename(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setPrivatebuild(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setPrerelease(boolean value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setPatched(boolean value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setProductname(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refidpublic void setSpecialbuild(java.lang.String value) throws org.apache.tools.ant.BuildException
value
- new valueorg.apache.tools.ant.BuildException
- if specified with refid