|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.tc.complib.ConfigurationFactory
Factory for creating configurations, compartments, buildVariants, repository descriptions, source state descriptions for marshalling/unmarshalling of configurations
| Field Summary | |
static java.lang.String |
SCHEMA_VERSION
The schema version number of this API |
static java.lang.String |
SCHEMA_VERSION_0_2
ID vor schema version 0_2. |
static java.lang.String |
SCHEMA_VERSION_0_3
ID vor schema version 0_3. |
static java.lang.String |
SCHEMA_VERSION_1_0
ID vor schema version 1_0. |
| Constructor Summary | |
ConfigurationFactory()
|
|
| Method Summary | |
static BuildVariant |
createBuildVariant()
Create an uninitialized BuildVariant instance |
static BuildVariant |
createBuildVariant(java.lang.String name)
Create a BuildVariant |
static BuildVariant |
createBuildVariant(java.lang.String name,
boolean isRequired)
Create a partially initialized BuildVariant (without options). |
static Compartment |
createCompartment()
Create an uninitialized Compartment instance |
static Compartment |
createCompartment(java.lang.String name,
java.lang.String scName,
java.lang.String scVendor)
Create an intialized Compartment instance for a compartment with archive state only name compartment name scName name attribute of contained software component scVendor vendor attribute of contained software component |
static Compartment |
createCompartment(java.lang.String name,
java.lang.String scName,
java.lang.String scVendor,
boolean hasArchiveState,
SourceState sourceState)
Create an intialized Compartment instance for a compartmnet with sourceState name compartment name scName name attribute of contained software component scVendor vendor attribute of contained software component hasArchiveState boolean telling if the compartment contains foreign archives sourceState SourceState object to describe the contained source state |
static DevelopmentConfiguration |
createDevelopmentConfiguration()
Create an unitialized DevelopmentConfiguration instance |
static DevelopmentConfiguration |
createDevelopmentConfiguration(java.lang.String name,
java.lang.String caption,
java.lang.String description,
java.lang.String buildserver,
java.lang.String configVersion)
Create a DevelopmentConfiguration instance with initialized attributes but no children |
static Repository |
createRepository()
Create an uninitialized Repository instance |
static Repository |
createRepository(java.lang.String type,
java.lang.String url)
Create an initialized Repository instance |
static SourceState |
createSourceState()
Create an uninitialized SourceState instance |
static SourceState |
createSourceStateForChange(Repository repository,
java.lang.String workspace)
Create a SourceState object for a source state for which chnages are allowed bit no activation. |
static SourceState |
createSourceStateForRead(Repository repository,
java.lang.String workspace)
Create a SourceState object for a source state for which neither change nor activation is allowed. |
static SourceState |
createSourceStateWithActivation(Repository repository,
java.lang.String inactiveWorkspace,
java.lang.String activeWorkspace)
Create an a SourceState object for source state for which activation is allowed |
static java.lang.String[] |
getSchemaVersions()
Returns the (sorted) list of schema versions supported by this API. |
static DevelopmentConfiguration |
initializeDevelopmentConfiguration(ConfigurationInputProvider provider)
Get a DevelopmentConfiguration instance which is initialized from the configuration description encapsulated by the specified ConfigurationInputProvider |
static boolean |
isSchemaAllowed(java.lang.String schemaVersion)
Checks whether this library is capable of writing the given schema version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SCHEMA_VERSION_0_2
public static final java.lang.String SCHEMA_VERSION_0_3
public static final java.lang.String SCHEMA_VERSION_1_0
public static final java.lang.String SCHEMA_VERSION
| Constructor Detail |
public ConfigurationFactory()
| Method Detail |
public static java.lang.String[] getSchemaVersions()
public static boolean isSchemaAllowed(java.lang.String schemaVersion)
schemaVersion - the schema version to checkpublic static DevelopmentConfiguration createDevelopmentConfiguration()
public static DevelopmentConfiguration createDevelopmentConfiguration(java.lang.String name,
java.lang.String caption,
java.lang.String description,
java.lang.String buildserver,
java.lang.String configVersion)
name - a String with the technical identifiercaption - a String with the display namedescription - a String with the description (comment)buildserver - the url of the build server that builds this configurationpublic static Compartment createCompartment()
public static Compartment createCompartment(java.lang.String name,
java.lang.String scName,
java.lang.String scVendor)
public static Compartment createCompartment(java.lang.String name,
java.lang.String scName,
java.lang.String scVendor,
boolean hasArchiveState,
SourceState sourceState)
public static SourceState createSourceStateForRead(Repository repository,
java.lang.String workspace)
repository - Repository object describing a repository serverworkspace - String identifying a workspace or snapshot in the repository
public static SourceState createSourceStateForChange(Repository repository,
java.lang.String workspace)
repository - Repository object describing a repository serverworkspace - String identifying a workspace in the repository
public static SourceState createSourceStateWithActivation(Repository repository,
java.lang.String inactiveWorkspace,
java.lang.String activeWorkspace)
repository - Repository object describing a repository serverinactiveWorkspace - String identifying the repository workspace used for changing (inactive)activeWorkspace - String identifying the repository workspace with the active sourcespublic static SourceState createSourceState()
repository - Repository object describing a repository serverpublic static Repository createRepository()
repository - Repository object describing a repository server
public static Repository createRepository(java.lang.String type,
java.lang.String url)
type - the repository typehost - the host name or addressprotocol - the protocol nameport - the port number as a StringremoteRoot - the root path on the serverpublic static BuildVariant createBuildVariant()
public static BuildVariant createBuildVariant(java.lang.String name)
name - name of the variant
public static BuildVariant createBuildVariant(java.lang.String name,
boolean isRequired)
name - name of the variantisRequired - variant is needed in order to activate a change
public static DevelopmentConfiguration initializeDevelopmentConfiguration(ConfigurationInputProvider provider)
throws java.io.IOException,
XMLException,
ProviderException,
ValidationException
provider - a ConfigurationInputProvider from where the configuration description is read
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||