org.rhq.core.domain.content
Class PackageVersionFormatDescription
java.lang.Object
org.rhq.core.domain.content.PackageVersionFormatDescription
- All Implemented Interfaces:
- Serializable
public class PackageVersionFormatDescription
- extends Object
- implements Serializable
This class describes the qualities of a package version format
and is used by the UI to provide "next version" hints to the user
as well as for checking the version string format validity.
Note that this is going to be used in UI and therefore the regexes
need to be written using the Javascript regex synax, *NOT* the Java one.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackageVersionFormatDescription
protected PackageVersionFormatDescription()
PackageVersionFormatDescription
public PackageVersionFormatDescription(String fullFormatRegex,
String osgiVersionExtractionRegex,
int osgiVersionGroupIndex,
String textualDescription)
- Parameters:
fullFormatRegex
- the regex the user supplied version must matchosgiVersionExtractionRegex
- a regex to extract the osgi version string from the full version string.
The regex must match the whole version string and have a group enclosing the osgi version string within it.osgiVersionGroupIndex
- the index of the group in the osgi version regex that contains the actual osgi version stringtextualDescription
- the textual description of format
getFullFormatRegex
public String getFullFormatRegex()
- Returns:
- the fullFormatRegex
getOsgiVersionExtractionRegex
public String getOsgiVersionExtractionRegex()
- Returns:
- the osgiVersionExtractionRegex
getOsgiVersionGroupIndex
public int getOsgiVersionGroupIndex()
- Returns:
- the osgiVersionGroupIndex
getTextualDesctiption
public String getTextualDesctiption()
- Returns:
- the textualDesctiption
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.