public interface EditableElementParser
Modifier and Type | Method and Description |
---|---|
default com.liferay.portal.kernel.json.JSONObject |
getAttributes(org.jsoup.nodes.Element element) |
default com.liferay.portal.kernel.json.JSONObject |
getFieldTemplateConfigJSONObject(java.lang.String fieldName,
java.util.Locale locale,
java.lang.Object fieldValue) |
java.lang.String |
getValue(org.jsoup.nodes.Element element) |
default java.lang.String |
parseFieldValue(java.lang.Object fieldValue) |
void |
replace(org.jsoup.nodes.Element element,
java.lang.String value)
Replaces the editable element value with a new one.
|
default void |
replace(org.jsoup.nodes.Element element,
java.lang.String value,
com.liferay.portal.kernel.json.JSONObject configJSONObject)
Replaces the editable element value with a new one and applies the
configuration values.
|
default void |
validate(org.jsoup.nodes.Element element)
Validates the editable element.
|
default com.liferay.portal.kernel.json.JSONObject getAttributes(org.jsoup.nodes.Element element)
default com.liferay.portal.kernel.json.JSONObject getFieldTemplateConfigJSONObject(java.lang.String fieldName, java.util.Locale locale, java.lang.Object fieldValue)
java.lang.String getValue(org.jsoup.nodes.Element element)
default java.lang.String parseFieldValue(java.lang.Object fieldValue)
void replace(org.jsoup.nodes.Element element, java.lang.String value)
element
- the editable element to replacevalue
- the new element valuedefault void replace(org.jsoup.nodes.Element element, java.lang.String value, com.liferay.portal.kernel.json.JSONObject configJSONObject)
element
- the editable element to replacevalue
- the new element valueconfigJSONObject
- the configuration valuesdefault void validate(org.jsoup.nodes.Element element) throws com.liferay.fragment.exception.FragmentEntryContentException
element
- the editable element to validatecom.liferay.fragment.exception.FragmentEntryContentException
- if an invalid editable element is
detected