| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
CDM_DATE_FORMAT
The CDM date format.
|
| Modifier | Constructor and Description |
|---|---|
private |
CDMHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
date2CDM(ContentHandler contentHandler,
String tagName,
Date value)
SAX a date in a CDM document.
|
static void |
richText2CDM(ContentHandler contentHandler,
RichText richText,
SourceResolver sourceResolver)
Transform a docbook metadata in a CDM infoBlock way.
|
static void |
richText2CDM(ContentHandler contentHandler,
String tag,
RichText richText,
SourceResolver sourceResolver)
Transform a docbook metadata in a CDM infoBlock way.
|
static void |
richText2CDM(ContentHandler contentHandler,
String tag,
RichText richText,
SourceResolver sourceResolver,
AttributesImpl attrs)
Transform a docbook metadata in a CDM infoBlock way.
|
static void |
richText2CDM(ContentHandler contentHandler,
String tag,
RichText richText,
SourceResolver sourceResolver,
boolean writeIfEmpty)
Transform a docbook metadata in a CDM infoBlock way.
|
static void |
richText2CDM(ContentHandler contentHandler,
String tag,
RichText richText,
SourceResolver sourceResolver,
boolean writeIfEmpty,
AttributesImpl attrs)
Transform a docbook metadata in a CDM infoBlock way.
|
public static final DateFormat CDM_DATE_FORMAT
private CDMHelper()
public static void richText2CDM(ContentHandler contentHandler, String tag, RichText richText, SourceResolver sourceResolver) throws SAXException
contentHandler - the handler to SAX CDM.tag - the surrounding tag.richText - the metadata. If richText is null, nothing is SAXed.sourceResolver - the Cocoon SourceResolver.SAXException - if an error occurs.public static void richText2CDM(ContentHandler contentHandler, String tag, RichText richText, SourceResolver sourceResolver, AttributesImpl attrs) throws SAXException
contentHandler - the handler to SAX CDM.tag - the surrounding tag.richText - the metadata. If richText is null, nothing is SAXed.sourceResolver - the Cocoon SourceResolver.attrs - The attributes to SAXSAXException - if an error occurs.public static void richText2CDM(ContentHandler contentHandler, String tag, RichText richText, SourceResolver sourceResolver, boolean writeIfEmpty) throws SAXException
contentHandler - the handler to SAX CDM.tag - the surrounding tag.richText - the metadata. If richText is null, nothing is SAXed.sourceResolver - the Cocoon SourceResolver.writeIfEmpty - true to sax CDM info block even if the rich text is emptySAXException - if an error occurs.public static void richText2CDM(ContentHandler contentHandler, String tag, RichText richText, SourceResolver sourceResolver, boolean writeIfEmpty, AttributesImpl attrs) throws SAXException
contentHandler - the handler to SAX CDM.tag - the surrounding tag.richText - the metadata. If richText is null, nothing is SAXedwriteIfEmpty - true to sax CDM info block even if the rich text is emptyattrs - The attributes to SAXsourceResolver - the Cocoon SourceResolver.SAXException - if an error occurs.public static void richText2CDM(ContentHandler contentHandler, RichText richText, SourceResolver sourceResolver) throws SAXException
contentHandler - the handler to SAX CDM.richText - the metadata. If richText is null, nothing is SAXedsourceResolver - the Cocoon SourceResolver.SAXException - if an error occurs.public static void date2CDM(ContentHandler contentHandler, String tagName, Date value) throws SAXException
contentHandler - The content handler to SAX into.tagName - The element name.value - The date value.SAXException - if an error occurs.