Class GroupedElement
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.FormElement
-
- org.symphonyoss.symphony.messageml.elements.GroupedElement
-
public abstract class GroupedElement extends FormElement
- Author:
- enrico.molino (15/06/2020)
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCHECKED_ATTRprotected static StringFOR_ATTRprotected static StringPRESENTATIONML_LABEL_TAGprotected static StringVALUE_ATTR-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.FormElement
INPUT_TAG, NAME_ATTR, TYPE_ATTR
-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, ID_ATTR, MAPPER, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description GroupedElement(Element parent, String messageMLTag, FormatEnum format)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidasPresentationML(XmlPrintStream out, MessageMLContext context)voidbuildAll(MessageMLParser parser, Element element)Process a DOM element, descending into its children, and construct the output MessageML tree.protected voidbuildElementAttrFromInputTag(MessageMLParser parser, Node inputElement)protected voidbuildElementFromGroupDiv(MessageMLParser parser, Element element)protected Map<String,String>buildGroupedElementInputAttributes(String id)protected abstract StringgetPresentationMLDivClass()protected abstract StringgetPresentationMLInputType()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.FormElement
validate
-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildNode, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
-
-
-
Field Detail
-
PRESENTATIONML_LABEL_TAG
protected static final String PRESENTATIONML_LABEL_TAG
- See Also:
- Constant Field Values
-
VALUE_ATTR
protected static final String VALUE_ATTR
- See Also:
- Constant Field Values
-
CHECKED_ATTR
protected static final String CHECKED_ATTR
- See Also:
- Constant Field Values
-
FOR_ATTR
protected static final String FOR_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GroupedElement
public GroupedElement(Element parent, String messageMLTag, FormatEnum format)
-
-
Method Detail
-
buildAll
public void buildAll(MessageMLParser parser, Element element) throws InvalidInputException, ProcessingException
Description copied from class:ElementProcess a DOM element, descending into its children, and construct the output MessageML tree.- Overrides:
buildAllin classElement- Throws:
InvalidInputExceptionProcessingException
-
asPresentationML
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
-
buildElementFromGroupDiv
protected void buildElementFromGroupDiv(MessageMLParser parser, Element element) throws InvalidInputException, ProcessingException
-
buildElementAttrFromInputTag
protected void buildElementAttrFromInputTag(MessageMLParser parser, Node inputElement) throws InvalidInputException
- Throws:
InvalidInputException
-
buildGroupedElementInputAttributes
protected Map<String,String> buildGroupedElementInputAttributes(String id)
-
getPresentationMLInputType
protected abstract String getPresentationMLInputType()
-
getPresentationMLDivClass
protected abstract String getPresentationMLDivClass()
-
-