@ConsumerType public static interface DAMContentFragment.DAMContentElement extends ComponentExporter
| Modifier and Type | Method and Description |
|---|---|
default @NotNull String |
getDataType()
Returns the string representation of data type of
FragmentData of the element. |
default @NotNull String |
getExportedType()
Returns the type of the resource for which the export is performed.
|
default @Nullable String |
getHtml()
Returns the value of a multiline text element converted to HTML.
|
default @NotNull String |
getName()
Returns the technical name of the element.
|
default @Nullable String |
getTitle()
Returns the title of the element.
|
default @Nullable Object |
getValue()
Returns the value of the element.
|
default boolean |
isMultiLine()
Returns
true if this is a multiline text element, i.e. |
default boolean |
isMultiValue()
Returns
true if this is a multi-valued element value. |
@NotNull default @NotNull String getName()
ContentElement.getName()@Nullable default @Nullable String getTitle()
ContentElement.getTitle()@NotNull default @NotNull String getDataType()
FragmentData of the element.
For the possible values see BasicDataType. Note that this doesn't
contain information about the multivalued characteristic of element. Eg. even if the actual value is of type
String [], the data type returned would be String.FragmentData.getDataType()@Nullable default @Nullable Object getValue()
BasicDataType or an array of those types.FragmentData.getValue()@NotNull default @NotNull String getExportedType()
getExportedType in interface ComponentExporterdefault boolean isMultiLine()
true if this is a multiline text element, i.e. a textual element containing multiple lines
(paragraphs).true if the element is a multiline text element, false otherwisedefault boolean isMultiValue()
true if this is a multi-valued element value.true if the element is multi-valued, false otherwise@Nullable default @Nullable String getHtml()
ContentTypeConverter.convertToHTML(String, String) to convert the
value to html. Returns null for non-multiline-text elements.null for non-multiline-text elementsisMultiLine(),
ContentTypeConverter.convertToHTML(String, String)Copyright © 2010 - 2020 Adobe. All Rights Reserved