|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A SourceState instance describes a source
state of a software component contained in compartment
of a configration. A source state definition always contains
a repository definition.
A source state can hav etow types, depending on whether activation is allowed in the
current configuration or not.
If activation is allowed for a source state (type WITH_ACTIVATION),
an inactive and an active location (workspace) must be specified
If a source state is only built but no chnages can be activated in
the configuration (type NO_ACTIVATE), only one location (workspace)
must be specified.
| Field Summary | |
static int |
ACTIVATION
source state type: activation: changes are allowed and activation is required. |
static int |
CHANGE
source state type: changeable but no activation in place In this case you have one location which must be a changeable workspace |
static int |
LOCAL
source state type: only locally, no repository, no remote locations |
static int |
READONLY
source state type: readonly: changes and also activation are not allowed In this case you have one location (workspace or snapshot). |
| Method Summary | |
java.lang.String |
getInactiveLocation()
gets the String with the inactive location. |
java.lang.String |
getLocation()
gets the String with the location. |
Repository |
getRepository()
gets the Repository object with the server parameters |
int |
getType()
gets the typ of the source state location. |
boolean |
isChangeable()
Returns whether changes are allowed in ths source state. |
boolean |
isExportAllowed()
returns whether source code export from this software state is allowed. |
boolean |
isLocal()
returns whether the sources exist only locally and is not connected to a repository |
boolean |
isLocationChangeable()
Returns whether changes are allowed in the source code location returned by getLocation().
|
void |
serialize(XMLWriter writer)
Serializes the source state info to the given XMLWriter. |
void |
serialize(XMLWriter writer,
java.lang.String schemaVersion)
|
void |
setExportAllowed(boolean value)
sets whether source code export from this software state is allowed. |
void |
setInactiveLocation(java.lang.String value)
sets the String with the inactive location. |
void |
setLocation(java.lang.String value)
sets the String with the location Depending on the type, this is if OPEN_WITH_ACTIVATE_ALLOWED: the name of the active workspace if OPEN_NO_ACTIVATION: a workspace path if CLOSED a snapshot path |
void |
setRepository(Repository value)
sets the Repository object wit the server parameters |
void |
setType(int value)
sets the type of the source state location This can be one of the following constants ACTIVATION READONLY CHANGE LOCAL |
java.lang.String |
typeAsString()
Returns the source state in a readable form. |
void |
validate()
Verifies that the SourceState is valid. |
| Field Detail |
public static final int ACTIVATION
location and the
inactive location.
Changes are allowed only in the inactive location but not in the (active)
location.public static final int READONLY
public static final int CHANGE
public static final int LOCAL
| Method Detail |
public int getType()
public void setType(int value)
public Repository getRepository()
public void setRepository(Repository value)
public java.lang.String getLocation()
public void setLocation(java.lang.String value)
public java.lang.String getInactiveLocation()
public void setInactiveLocation(java.lang.String value)
public boolean isExportAllowed()
public void setExportAllowed(boolean value)
value - treu if export should be allowedpublic boolean isLocal()
public boolean isLocationChangeable()
getLocation().
The result is true as far as the configuration is concerned. Settings on the respoistory may still prevent changes.
getLocation())public boolean isChangeable()
public void serialize(XMLWriter writer)
throws ValidationException
writer - the XMLWriter to use for serialization.
public void serialize(XMLWriter writer,
java.lang.String schemaVersion)
throws ValidationException
public void validate()
throws ValidationException
ValidationException - if the object is not valid.public java.lang.String typeAsString()
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||