Class ConfigurationImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.external.impl.ConfigurationImpl
-
- All Implemented Interfaces:
Configuration
- Direct Known Subclasses:
DummyConfigurationKD990SolImpl,DummyConfigurationWecDragonCarImpl
public class ConfigurationImpl extends java.lang.Object implements Configuration
Default implementation: External representation of configuration
-
-
Constructor Summary
Constructors Constructor Description ConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCharacteristicValue(CharacteristicValue csticValue)Adds a new characteristic value to the configurationvoidaddContextAttribute(ContextAttribute contextAttribute)Adds a new context attribute to the configurationvoidaddInstance(Instance instance)Adds an instance to the instance listvoidaddPartOfRelation(PartOfRelation partOfRelation)Adds a partOf relationjava.util.List<CharacteristicValue>getCharacteristicValues()java.util.List<ContextAttribute>getContextAttributes()java.util.List<Instance>getInstances()KBKeygetKbKey()java.util.List<PartOfRelation>getPartOfRelations()InstancegetRootInstance()voidsetKbKey(KBKey kbKey)Sets the knowledge base key datavoidsetRootInstance(Instance rootInstance)Sets root instance of the configuration
-
-
-
Method Detail
-
getRootInstance
public Instance getRootInstance()
- Specified by:
getRootInstancein interfaceConfiguration- Returns:
- Root instance of the configuration
-
setRootInstance
public void setRootInstance(Instance rootInstance)
Description copied from interface:ConfigurationSets root instance of the configuration- Specified by:
setRootInstancein interfaceConfiguration
-
getInstances
public java.util.List<Instance> getInstances()
- Specified by:
getInstancesin interfaceConfiguration- Returns:
- List of instances belonging to this configuration
-
addInstance
public void addInstance(Instance instance)
Description copied from interface:ConfigurationAdds an instance to the instance list- Specified by:
addInstancein interfaceConfiguration- Parameters:
instance- Instance to be added
-
getPartOfRelations
public java.util.List<PartOfRelation> getPartOfRelations()
- Specified by:
getPartOfRelationsin interfaceConfiguration- Returns:
- List of partOf relations between instances
-
addPartOfRelation
public void addPartOfRelation(PartOfRelation partOfRelation)
Description copied from interface:ConfigurationAdds a partOf relation- Specified by:
addPartOfRelationin interfaceConfiguration
-
getCharacteristicValues
public java.util.List<CharacteristicValue> getCharacteristicValues()
- Specified by:
getCharacteristicValuesin interfaceConfiguration- Returns:
- List of assigned characteristic values
-
addCharacteristicValue
public void addCharacteristicValue(CharacteristicValue csticValue)
Description copied from interface:ConfigurationAdds a new characteristic value to the configuration- Specified by:
addCharacteristicValuein interfaceConfiguration
-
getContextAttributes
public java.util.List<ContextAttribute> getContextAttributes()
- Specified by:
getContextAttributesin interfaceConfiguration- Returns:
- List of context attributes
-
addContextAttribute
public void addContextAttribute(ContextAttribute contextAttribute)
Description copied from interface:ConfigurationAdds a new context attribute to the configuration- Specified by:
addContextAttributein interfaceConfiguration
-
getKbKey
public KBKey getKbKey()
- Specified by:
getKbKeyin interfaceConfiguration- Returns:
- knowledge base key data
-
setKbKey
public void setKbKey(KBKey kbKey)
Description copied from interface:ConfigurationSets the knowledge base key data- Specified by:
setKbKeyin interfaceConfiguration
-
-