public class DefaultDocbookUpdateHandler extends DockbookUpdateHandler implements Serviceable
Modifier and Type | Field and Description |
---|---|
private static Logger |
_logger |
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
_contentHandler, _createdContent, _createdObject, _initialAOPath, _initialContent, _initialContentPath, _initialObject, _lexicalHandler
Constructor and Description |
---|
DefaultDocbookUpdateHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
_copyAttributes(Attributes attrs,
AttributesImpl newAttrs)
Copy attributes
|
protected Attributes |
_getAttributesForLink(Attributes attrs)
Get attributes for link elements
|
protected Attributes |
_getAttributesForMediaObject(Attributes attrs)
Get attributes for media objects such as image, flash
|
protected String |
_getUpdatedAmetysObjectId(String id)
Return the updated ametys object id
|
protected String |
_getUpdatedHrefForLocalData(String href)
Returns the updated href for local data
|
void |
service(ServiceManager smanager) |
void |
startElement(String uri,
String loc,
String raw,
Attributes attrs) |
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setCreatedContent, setCreatedObject, setDocumentLocator, setInitialContent, setInitialObject, setLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
public DefaultDocbookUpdateHandler()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DockbookUpdateHandler
SAXException
protected Attributes _getAttributesForLink(Attributes attrs)
attrs
- the attributesprotected Attributes _getAttributesForMediaObject(Attributes attrs)
attrs
- the attributesprotected void _copyAttributes(Attributes attrs, AttributesImpl newAttrs)
attrs
- the attributes to copynewAttrs
- the new attributesprotected String _getUpdatedHrefForLocalData(String href)
href
- the href to updateprotected String _getUpdatedAmetysObjectId(String id)
id
- the id to update