public class PCMMetadata extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<AbstractFeature,Integer> |
featurePositions |
protected PCM |
pcm |
protected Boolean |
productAsLines |
protected Map<Product,Integer> |
productPositions |
| Constructor and Description |
|---|
PCMMetadata(PCM pcm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getFeaturePosition(AbstractFeature feature)
Returns the absolute position of the feature or create if not exists
|
Integer |
getLastFeatureIndex()
Return the last feature index used
|
Integer |
getLastProductIndex()
Return the last product index used
|
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
|
void |
setFeaturePosition(AbstractFeature feature,
int position)
Define the absolute position of the feature in the PCM
|
void |
setProductAsLines(Boolean productAsLines) |
void |
setProductPosition(Product product,
int position)
Define the absolute position of the product in the PCM
|
String |
toString() |
protected PCM pcm
protected Boolean productAsLines
protected Map<AbstractFeature,Integer> featurePositions
public PCMMetadata(PCM pcm)
public Integer getLastProductIndex()
public Integer getLastFeatureIndex()
public int getProductPosition(Product product)
product - public void setProductPosition(Product product, int position)
product - position - public int getFeaturePosition(AbstractFeature feature)
feature - public void setFeaturePosition(AbstractFeature feature, int position)
feature - position - public List<Product> getSortedProducts()
public List<Feature> getSortedFeatures()
public PCM getPcm()
public Boolean getProductAsLines()
public void setProductAsLines(Boolean productAsLines)
Copyright © 2015. All rights reserved.