public class ContentPagesGenerator extends ServiceableGenerator
Page
s referencing the content.Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_resolver |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ContentPagesGenerator() |
Modifier and Type | Method and Description |
---|---|
private String |
_escape(String target) |
protected void |
_saxPage(Page page,
Zone zone,
ZoneItem zoneItem)
SAX a content's page.
|
protected void |
_saxTags(Page page,
AttributesImpl attrs)
SAX page's tags
|
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private AmetysObjectResolver _resolver
public ContentPagesGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void _saxPage(Page page, Zone zone, ZoneItem zoneItem) throws SAXException
page
- the page to SAX.zone
- the zone the content is in.zoneItem
- the the zone item the content belongs to.SAXException
- if an error occurs.protected void _saxTags(Page page, AttributesImpl attrs) throws AmetysRepositoryException
page
- the pageattrs
- the attributes to SAX intoAmetysRepositoryException
- if failed to get page's tags