|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.Metadata
public class Metadata
Defines public version, date, etc., metadata about the P4Java API.
The version strings are mostly intended for support, debugging, and logging purposes, meaning the format and semantics of much of the data here is intentionally opaque.
Field Summary | |
---|---|
static String |
DEFAULT_DATE_STRING
The value returned by the getP4JDateString method if it can not determine the correct date from the associated JAR manifest. |
static int |
DEFAULT_MINIMUM_SUPPORTED_SERVER_VERSION
The default minimum Perforce server level supported by the entire P4Java API. |
static String |
DEFAULT_VERSION_STRING
The value returned by the getP4JVersionString method if it can not determine the correct version from the associated JAR manifest. |
static String |
P4JAVA_PROPS_KEY_PREFIX
The Java properties key prefix use to pick up P4Java properties from the passed-in properties, etc. |
Constructor Summary | |
---|---|
Metadata()
|
Method Summary | |
---|---|
static Manifest |
getManifest()
Get the JAR Manifest associated with this P4Java instance, if it exists. |
static String |
getP4JDateString()
Return the P4Java date string associated with this instance as contained in the enclosing JAR file's manifest Build-Date attribute. |
static String |
getP4JVersionString()
Return the P4Java version string associated with this instance as contained in the enclosing JAR file's manifest IMPLEMENTATION_TITLE attribute. |
static void |
main(String[] args)
Public main method, used solely for allowing customers to print version and other metadata information from the enclosing JAR file's manifest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String P4JAVA_PROPS_KEY_PREFIX
public static final int DEFAULT_MINIMUM_SUPPORTED_SERVER_VERSION
public static final String DEFAULT_VERSION_STRING
public static final String DEFAULT_DATE_STRING
Constructor Detail |
---|
public Metadata()
Method Detail |
---|
public static String getP4JVersionString()
The format and semantics of this string are not specified here.
public static String getP4JDateString()
The format and semantics of this string are not specified here.
public static void main(String[] args)
args
- not used.public static Manifest getManifest() throws Exception
Exception
- if the manifest can't be found or retrieved
for any reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |