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, wait
getLastUpdated
protected CatalogData catalogData
public Map<String,Attribute> getAttributes()
CatalogReader
getAttributes
in interface CatalogReader
public Attribute getAttribute(String name)
CatalogReader
getAttribute
in interface CatalogReader
name
- The attribute name.public Category getCategory(String name)
CatalogReader
getCategory
in interface CatalogReader
name
- The category name.public Event getEvent(String name)
getEvent
in interface CatalogReader
public Product getProduct(String name)
getProduct
in interface CatalogReader
public String readCatalog()
CatalogReader
readCatalog
in interface CatalogReader
public CatalogData read()
CatalogReader
read
in interface CatalogReader
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.