|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.onego.industrial.catalog.meta.CatalogImpl
public class CatalogImpl
Default implementation of the Catalog interface.
| Constructor Summary | |
|---|---|
CatalogImpl()
Constructor for the object. |
|
| Method Summary | |
|---|---|
void |
add(Catalog catalog)
Adds data from another catalog. |
void |
add(java.lang.String identificator,
CatalogLine catalogLine)
Adds given line to the catalog. |
CatalogLine |
createCatalogLine(java.lang.String identificator)
Creates new catalog line with the given identificator. |
void |
deleteLine(CatalogLine line)
Removes given line from the catalog. |
CatalogLine |
get(int line)
Returns catalog line with the given index. |
CatalogLine |
get(java.lang.String identificator)
Returns catalog line with the given identificator. |
java.util.List<java.lang.String> |
getColumns()
Returns column names of this catalog. |
java.lang.String |
getIdentificator(int index)
Returns identificator of the line with the given index. |
java.util.List<CatalogLine> |
getLines()
Returns list of all line in the catalog. |
int |
size()
Returns number of lines in this catalog. |
void |
updateLine(java.lang.String identificator,
CatalogLine catalogLine)
Updates line with the given identificator with data stored in the given catalog line. |
static java.lang.String |
valueHash(java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogImpl()
throws MetaException
MetaException - Thrown if error occur while reading init parameters from parser.ini| Method Detail |
|---|
public void add(java.lang.String identificator,
CatalogLine catalogLine)
throws MetaException
identificator - Identificator of the linecatalogLine - Line to be added
MetaException - Thrown if any error occur while adding
public void add(Catalog catalog)
throws MetaException
Catalog
add in interface Catalogcatalog - Source catalog
MetaException - Should be thrown if catalogs have different metadata
public CatalogLine createCatalogLine(java.lang.String identificator)
throws MetaException
Catalog
createCatalogLine in interface Catalogidentificator - Unique identificator of the line
CatalogLine interface
MetaException - Thrown if any error occurs while creating the linepublic int size()
Catalog
size in interface Catalog
public void updateLine(java.lang.String identificator,
CatalogLine catalogLine)
throws MetaException
Catalog
updateLine in interface Catalogidentificator - Identificator of the linecatalogLine - Source catalog line
MetaException - Thrown if metadata differs or error occur while setting values
public void deleteLine(CatalogLine line)
throws MetaException
Catalog
deleteLine in interface Catalogline - Line to be removed
MetaException - Thrown if line is not part of this catalog
public CatalogLine get(int line)
throws MetaException
Catalog
get in interface Catalogline - Index of the line
CatalogLine object
MetaException - Thrown if index is out of bounds
public CatalogLine get(java.lang.String identificator)
throws MetaException
Catalog
get in interface Catalogidentificator - Identificator of the line
CatalogLine object
MetaException - Thrown if line with the given identificator is not found
public java.lang.String getIdentificator(int index)
throws MetaException
Catalog
getIdentificator in interface Catalogindex - Index of the line
MetaException - Thrown if index is out of boundspublic java.util.List<java.lang.String> getColumns()
Catalog
getColumns in interface Catalogpublic java.util.List<CatalogLine> getLines()
Catalog
getLines in interface Catalogpublic static java.lang.String valueHash(java.lang.String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||