Class DocbookOutgoingReferencesExtractor
- java.lang.Object
-
- org.ametys.cms.transformation.docbook.DocbookOutgoingReferencesExtractor
-
- All Implemented Interfaces:
RichTextOutgoingReferencesExtractor
,Serviceable
- Direct Known Subclasses:
HTMLOutgoingReferencesExtractor
public class DocbookOutgoingReferencesExtractor extends Object implements RichTextOutgoingReferencesExtractor, Serviceable
This impl extract outgoing references on docbook rich texts
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceManager
_manager
Avalon service managerstatic String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description DocbookOutgoingReferencesExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Node
_getNodeAfterXSLT(RichText metadata)
Take the metadata stream and transform it using the xslt configured (_getXSLTURI)protected String
_getXSLTURI()
The uri to use for conversion to outgoing references formatOutgoingReferences
getOutgoingReferences(RichText richText)
This method analyzes a rich text to return the list of outgoing referencesvoid
service(ServiceManager manager)
-
-
-
Field Detail
-
_manager
protected ServiceManager _manager
Avalon service manager
-
-
Constructor Detail
-
DocbookOutgoingReferencesExtractor
public DocbookOutgoingReferencesExtractor()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_getXSLTURI
protected String _getXSLTURI()
The uri to use for conversion to outgoing references format- Returns:
- The uri
-
_getNodeAfterXSLT
protected Node _getNodeAfterXSLT(RichText metadata)
Take the metadata stream and transform it using the xslt configured (_getXSLTURI)- Parameters:
metadata
- The metadata to transform- Returns:
- The root node of the result XML after the transformation
-
getOutgoingReferences
public OutgoingReferences getOutgoingReferences(RichText richText)
Description copied from interface:RichTextOutgoingReferencesExtractor
This method analyzes a rich text to return the list of outgoing references- Specified by:
getOutgoingReferences
in interfaceRichTextOutgoingReferencesExtractor
- Parameters:
richText
- The rich text to analyze- Returns:
- The outgoing references for the rich text
-
-