Class Form
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Form
-
public class Form extends Element
Class representing a Symphony Elements form- Since:
- 03/21/19
- Author:
- lumoura
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEML_TAG-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, ID_MAX_LENGTH, MAPPER, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description Form(Element parent, FormatEnum format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()protected voidbuildAttribute(MessageMLParser parser, Node item)BooleanhasIdAttribute()Informs if the element has an "id" attribute.voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, buildAll, buildNode, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Form
public Form(Element parent, FormatEnum format)
-
-
Method Detail
-
hasIdAttribute
public Boolean hasIdAttribute()
Description copied from class:ElementInforms if the element has an "id" attribute. The parser that builds all elements keeps track of all ids from the elements that have it, in order to ensure unique values.- Overrides:
hasIdAttributein classElement
-
validate
public void validate() throws InvalidInputException- Throws:
InvalidInputException
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
-