public abstract class BasicVersion extends Version
emptyVersion, MAX_VERSION, RAW_PREFIX| Constructor and Description |
|---|
BasicVersion() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getMajor()
Returns the OSGi major component of this version identifier.
|
abstract int |
getMicro()
Returns the OSGi micro component of this version identifier.
|
abstract int |
getMinor()
Returns the OSGi minor component of this version identifier.
|
abstract java.lang.String |
getQualifier()
Returns the OSGi qualifier component of this version identifier.
|
abstract void |
originalToString(java.lang.StringBuffer sb,
boolean rangeSafe)
Appends the original for this version onto the
sb StringBuffer
if present. |
abstract void |
rawToString(java.lang.StringBuffer sb,
boolean rangeSafe)
Appends the raw format for this version onto the
sb StringBuffer. |
compile, create, createOSGi, createOSGi, getFormat, getOriginal, getPad, getSegment, getSegmentCount, isOSGiCompatible, parseVersion, toString, toStringpublic abstract int getMajor()
java.lang.UnsupportedOperationException - if the first element in the
vector is not a number.Version.isOSGiCompatible()public abstract int getMicro()
java.lang.UnsupportedOperationException - if the third element in the
vector is not a number.Version.isOSGiCompatible()public abstract int getMinor()
java.lang.UnsupportedOperationException - if the second element in the
vector is not a number.Version.isOSGiCompatible()public abstract java.lang.String getQualifier()
null if not set.java.lang.UnsupportedOperationException - if the fourth element in the
vector is set to something other then a string.Version.isOSGiCompatible()public abstract void originalToString(java.lang.StringBuffer sb,
boolean rangeSafe)
sb StringBuffer
if present.sb - The buffer that will receive the raw string formatrangeSafe - Set to true if range delimiters should be escapedpublic abstract void rawToString(java.lang.StringBuffer sb,
boolean rangeSafe)
sb StringBuffer.sb - The buffer that will receive the raw string formatrangeSafe - Set to true if range delimiters should be escaped