public class PCMImpl extends Object implements PCM
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PCMVisitor visitor) |
void |
addFeature(AbstractFeature abstractFeature) |
void |
addProduct(Product product) |
PCMElement |
clone(PCMFactory factory) |
DiffResult |
diff(PCM pcm,
PCMElementComparator pcmElementComparator) |
boolean |
equals(Object o) |
List<Feature> |
getConcreteFeatures() |
List<AbstractFeature> |
getFeatures() |
int |
getFeaturesDepth() |
PCM |
getKpcm() |
String |
getName() |
Feature |
getOrCreateFeature(String name,
PCMFactory factory) |
Product |
getOrCreateProduct(String name,
PCMFactory factory) |
List<Product> |
getProducts() |
Feature |
getProductsKey() |
int |
hashCode() |
void |
invert(PCMFactory factory) |
boolean |
isValid() |
void |
merge(PCM pcm,
PCMFactory factory) |
void |
normalize(PCMFactory factory) |
void |
removeFeature(AbstractFeature abstractFeature) |
void |
removeProduct(Product product) |
void |
setName(String s) |
void |
setProductsKey(Feature feature) |
String |
toString() |
public PCMImpl(PCM kpcm)
public PCM getKpcm()
public List<Product> getProducts()
getProducts in interface PCMpublic Feature getProductsKey()
getProductsKey in interface PCMpublic void setProductsKey(Feature feature)
setProductsKey in interface PCMpublic void addProduct(Product product)
addProduct in interface PCMpublic void removeProduct(Product product)
removeProduct in interface PCMpublic List<AbstractFeature> getFeatures()
getFeatures in interface PCMpublic void addFeature(AbstractFeature abstractFeature)
addFeature in interface PCMpublic void removeFeature(AbstractFeature abstractFeature)
removeFeature in interface PCMpublic List<Feature> getConcreteFeatures()
getConcreteFeatures in interface PCMpublic Feature getOrCreateFeature(String name, PCMFactory factory)
getOrCreateFeature in interface PCMpublic Product getOrCreateProduct(String name, PCMFactory factory)
getOrCreateProduct in interface PCMpublic void accept(PCMVisitor visitor)
accept in interface PCMElementpublic void merge(PCM pcm, PCMFactory factory) throws MergeConflictException
merge in interface PCMMergeConflictExceptionpublic void normalize(PCMFactory factory)
public DiffResult diff(PCM pcm, PCMElementComparator pcmElementComparator)
public void invert(PCMFactory factory)
public int getFeaturesDepth()
getFeaturesDepth in interface PCMpublic PCMElement clone(PCMFactory factory)
clone in interface PCMElementCopyright © 2016. All rights reserved.