public class PCMMetadata extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
creator |
protected Map<AbstractFeature,Integer> |
featurePositions |
protected String |
license |
protected PCM |
pcm |
protected Boolean |
productAsLines |
protected Map<Product,Integer> |
productPositions |
protected String |
source |
| Constructor and Description |
|---|
PCMMetadata(PCM pcm) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFeaturePosition(AbstractFeature feature) |
void |
clearProductPosition(Product product) |
boolean |
equals(Object obj) |
String |
getCreator() |
int |
getFeaturePosition(AbstractFeature feature)
Returns the absolute position of the feature or create if not exists
|
List<List<AbstractFeature>> |
getFlattenFeatureHierarchy()
Return the flatten hierarchy of features
The features are sorted with respect to the metadata
Feature groups are referenced multiple times to respect the hierarchy with the subfeatures
e.g.
|
int |
getLastFeatureIndex()
Return the last feature index used
|
int |
getLastProductIndex()
Return the last product index used
|
String |
getLicense() |
PCM |
getPcm() |
Boolean |
getProductAsLines() |
int |
getProductPosition(Product product)
Returns the absolute position of the product or create if not exists
|
List<Feature> |
getSortedFeatures()
Return the sorted features concordingly with metadata
|
List<Product> |
getSortedProducts()
Return the sorted products concordingly with metadata
|
String |
getSource() |
void |
setCreator(String creator) |
void |
setFeaturePosition(AbstractFeature feature,
int position)
Define the absolute position of the feature in the PCM
|
void |
setLicense(String license) |
void |
setProductAsLines(Boolean productAsLines) |
void |
setProductPosition(Product product,
int position)
Define the absolute position of the product in the PCM
|
void |
setSource(String source) |
String |
toString() |
protected PCM pcm
protected Boolean productAsLines
protected Map<AbstractFeature,Integer> featurePositions
protected String source
protected String license
protected String creator
public PCMMetadata(PCM pcm)
public int getLastProductIndex()
public int getLastFeatureIndex()
public int getProductPosition(Product product)
product - productpublic void setProductPosition(Product product, int position)
product - productposition - positionpublic int getFeaturePosition(AbstractFeature feature)
feature - public void setFeaturePosition(AbstractFeature feature, int position)
feature - featureposition - positionpublic List<Product> getSortedProducts()
public List<Feature> getSortedFeatures()
public List<List<AbstractFeature>> getFlattenFeatureHierarchy()
public String getSource()
public void setSource(String source)
public String getLicense()
public void setLicense(String license)
public PCM getPcm()
public Boolean getProductAsLines()
public void setProductAsLines(Boolean productAsLines)
public String getCreator()
public void setCreator(String creator)
public void clearProductPosition(Product product)
public void clearFeaturePosition(AbstractFeature feature)
Copyright © 2016. All rights reserved.