Class HorizontalRule
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.HorizontalRule
-
public class HorizontalRule extends Element
Class representing a horizontal rule.- Since:
- 3/27/17
- Author:
- lukasz
-
-
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_ATTR, STYLE_ATTR
-
-
Constructor Summary
Constructors Constructor Description HorizontalRule(Element parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareNestedElementsAllowed()Return true if nested elements are allowed By default true, override to false for elements that dont support nested elementsorg.commonmark.node.NodeasMarkdown()StringasText()Return a text representation of the element, descending into its children.StringtoString()voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HorizontalRule
public HorizontalRule(Element parent)
-
-
Method Detail
-
asText
public String asText()
Description copied from class:ElementReturn a text representation of the element, descending into its children.
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
validate
public void validate() throws InvalidInputException- Throws:
InvalidInputException
-
areNestedElementsAllowed
public boolean areNestedElementsAllowed()
Description copied from class:ElementReturn true if nested elements are allowed By default true, override to false for elements that dont support nested elements- Overrides:
areNestedElementsAllowedin classElement
-
-