Class Button
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Button
-
public class Button extends Element
Class representing a Symphony Elements button- Since:
- 03/21/19
- Author:
- lumoura
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_ATTRstatic StringMESSAGEML_TAGstatic StringTYPE_ATTRstatic Set<String>VALID_CLASSESstatic Set<String>VALID_TYPES-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, STYLE_ATTR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()voidbuildAttribute(Node item)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, asText, buildAll, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, size
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
ID_ATTR
public static final String ID_ATTR
- See Also:
- Constant Field Values
-
TYPE_ATTR
public static final String TYPE_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Button
public Button(Element parent)
-
-
Method Detail
-
buildAttribute
public void buildAttribute(Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
validate
public void validate() throws InvalidInputException- Throws:
InvalidInputException
-
-