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 |
|---|---|
boolean |
equals(Object obj) |
String |
getCreator() |
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
|
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 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 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)
Copyright © 2015. All rights reserved.