Class Link
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Link
-
public class Link extends Element
Class representing a link.- 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 Link(Element parent, String href, IDataProvider dataProvider)Link(Element parent, IDataProvider dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()protected voidbuildAttribute(MessageMLParser parser, Node item)URIgetUri()voidsetUri(URI url)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, asText, 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
-
Link
public Link(Element parent, IDataProvider dataProvider) throws InvalidInputException
- Throws:
InvalidInputException
-
Link
public Link(Element parent, String href, IDataProvider dataProvider) throws InvalidInputException
- Throws:
InvalidInputException
-
-
Method Detail
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
validate
public void validate() throws InvalidInputException- Throws:
InvalidInputException
-
getUri
public URI getUri()
-
setUri
public void setUri(URI url)
-
-