public abstract class AbstractCatalogReader extends Object implements CatalogReader
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Attribute> |
attributes |
protected CatalogData |
catalogData |
| Constructor and Description |
|---|
AbstractCatalogReader() |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(String name)
Retrieves an Attribute.
|
Map<String,Attribute> |
getAttributes()
Return all the Attributes as a Map.
|
Category |
getCategory(String name)
Retrieves a Category.
|
Event |
getEvent(String name) |
Product |
getProduct(String name) |
CatalogData |
read()
Returns the Catalog object.
|
String |
readCatalog()
Returns a String representation of the Catalog.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastUpdatedprotected CatalogData catalogData
public Map<String,Attribute> getAttributes()
CatalogReadergetAttributes in interface CatalogReaderpublic Attribute getAttribute(String name)
CatalogReadergetAttribute in interface CatalogReadername - The attribute name.public Category getCategory(String name)
CatalogReadergetCategory in interface CatalogReadername - The category name.public Event getEvent(String name)
getEvent in interface CatalogReaderpublic Product getProduct(String name)
getProduct in interface CatalogReaderpublic String readCatalog()
CatalogReaderreadCatalog in interface CatalogReaderpublic CatalogData read()
CatalogReaderread in interface CatalogReaderCopyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.