|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Compartment models one compartmnet of a development configuration.
The compartmnet contains a softwware state of one software component.
The software state can consist of an archive state and or a source state.
The compartment also lists the build variants existin gfor this software state.
Aliases for software components which are used in definitions of developement
components are resolved by the alias mapping of the compartment.
| Method Summary | |
void |
addBuildVariant(BuildVariant variant)
add a new buile variant or overwrite existing one with same name. |
Property |
addProperty(java.lang.String name,
java.lang.String namespaceURI)
Adds a property to the list of properties. |
Property |
addProperty(java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
Adds a property to the list of properties. |
void |
addUsedCompartment(java.lang.String usedCompartmentName)
add a new used compartment |
java.util.Map |
emptyBuildVariants()
remove all entries from the alias map or return anew empty map |
java.util.List |
emptyProperties()
Removes the entries from the list of properties, or creates a new empty property list. |
java.util.Map |
emptyScAliases()
remove all entries from the alias map or return anew empty map |
java.util.Set |
emptyUsedCompartments()
remove all entries from the used compartments Set or return a new empty set |
java.util.Map |
getBuildVariants()
gets a Map with the build variants for this Compartment interface. |
java.lang.String |
getCaption()
gets the display name |
java.lang.String |
getDescription()
gets the String describing the purpose of the compartment |
boolean |
getHasArchiveState()
get the information whether this compartment contains at least partially an archive state. |
java.lang.String |
getLocalArchiveFolder()
Returns the name of local archive Folder where pre-installed archives are located. |
java.lang.String |
getName()
get the String with the techincal name of the compartment. |
java.util.List |
getProperties()
Returns the list of properties. |
Property |
getProperty(java.lang.String name)
Returns the property matching the given name. |
Property |
getProperty(java.lang.String name,
java.lang.String namespaceURI)
Returns the property matching the given name and namespace. |
java.lang.String |
getSCAlias(java.lang.String targetCompartment)
get the alias name for compartment with some SC that is used by this one. |
java.util.Map |
getScAliases()
get Map with the mapping of alias name to the name of the target compartment. |
java.lang.String |
getScName()
get the name of the software component contained in the compartment |
java.lang.String |
getScVendor()
get the String with the vendor of the software component contained in the compartment |
SourceState |
getSourceState()
gets the SourceState object with the information about the source state contained in this compartment or null if the compartment does not contain a source state |
java.util.Set |
getUsedCompartments()
returns a Set with the names of all the compartments to which this compartment has a usage relationship. |
boolean |
hasInactiveSourceState()
get the information whether there is an inactive source state for this compartment. |
boolean |
hasLocalArchivesOnly()
returns whether this is a localOnly compartment that contains only pre-installed archives in the local archive folder |
boolean |
hasLocalSourceStateOnly()
get the information whether there is a local-only source state for this compartment. |
boolean |
hasSourceState()
get the information whether there is a source state for this compartment. |
boolean |
isActivationAllowed()
get the information whether activation is allowed in this compartment |
boolean |
IsDefaultCompartment()
get the setIsDefaultCompartment porperty. |
boolean |
isLocal()
returns whether this is a localOnly compartment that has either archives or sources only locally. |
boolean |
isModificationAllowed()
get the information whether development or source import is possible and allowed in this compartment |
void |
removeUsedCompartment(java.lang.String usedCompartmentName)
removes a compartment from the list of used compartments |
void |
serialize(XMLWriter writer)
Serializes the Compartment to the given XMLWriter. |
void |
serialize(XMLWriter writer,
java.lang.String schemaVersion)
|
void |
setCaption(java.lang.String value)
sets the display name |
void |
setDefaultCompartment(boolean value)
set the setIsDefaultDepartment property. constraint: there can be only one default compartmnets for each (sc-vandor,sc-name) combination. |
void |
setDescription(java.lang.String value)
sets the String describing the purpose of the compartment |
void |
setHasArchiveState(boolean value)
set the information whether this compartmnet contains an archive state |
void |
setLocalArchiveFolder(java.lang.String value)
Sets the local archive Folder where pre-installed archives are located. |
void |
setName(java.lang.String value)
set the String with the name of the compartment. |
void |
setScName(java.lang.String value)
set the name of the software component contained in the compartment |
void |
setScVendor(java.lang.String value)
set the String with the vendor of the software component contained in the compartment |
void |
setSourceState(SourceState value)
sets the SourceState object for the source state contained in this compartment. |
void |
setUsedCompartments(java.util.Set usedCompartments)
Deprecated. |
void |
validate()
Verifies that the object is valid. |
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getCaption()
public void setCaption(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public boolean getHasArchiveState()
public void setHasArchiveState(boolean value)
public boolean IsDefaultCompartment()
public boolean hasSourceState()
public boolean hasLocalSourceStateOnly()
public boolean hasInactiveSourceState()
public boolean isModificationAllowed()
public boolean isActivationAllowed()
public java.lang.String getSCAlias(java.lang.String targetCompartment)
targetCompartment - the compartmnet for which the alias should be returned#getSCAliases()public void setDefaultCompartment(boolean value)
getIsDefaultDepartmentpublic java.lang.String getScVendor()
public void setScVendor(java.lang.String value)
public java.lang.String getScName()
public void setScName(java.lang.String value)
public java.util.List emptyProperties()
public Property addProperty(java.lang.String name,
java.lang.String namespaceURI)
name - the name of the propertynamespaceURI - an URI or URL identifying the namespace to which the
property belongs to.
public Property addProperty(java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
name - the name of the propertynamespaceURI - an URI or URL identifying the namespace to which the
property belongs to.value - the simple value of the property.public Property getProperty(java.lang.String name)
name - the name of the property
public Property getProperty(java.lang.String name,
java.lang.String namespaceURI)
name - the name of the propertynamespaceURI - the namespace the property belongs to
identified by a URIpublic java.util.List getProperties()
public SourceState getSourceState()
public void setSourceState(SourceState value)
public java.util.Map getScAliases()
public java.util.Map emptyScAliases()
public java.util.Set emptyUsedCompartments()
public void addUsedCompartment(java.lang.String usedCompartmentName)
public void removeUsedCompartment(java.lang.String usedCompartmentName)
public java.util.Map getBuildVariants()
public void addBuildVariant(BuildVariant variant)
public java.util.Map emptyBuildVariants()
public java.util.Set getUsedCompartments()
public void setUsedCompartments(java.util.Set usedCompartments)
public boolean hasLocalArchivesOnly()
public boolean isLocal()
public java.lang.String getLocalArchiveFolder()
DevelopmentConfiguration object.public void setLocalArchiveFolder(java.lang.String value)
validate() method if a non-null source state is also specified.
It will also lead to a validation error in the validate() method
of the DevelopmentConfiguration if a build server is specified.
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.
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||