Class Image
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Image
-
public class Image extends Element
Class representing an image.- 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, ID_MAX_LENGTH, MAPPER, STYLE_ATTR
-
-
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 elementsprotected voidbuildAttribute(MessageMLParser parser, Node item)voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, asText, buildAll, buildNode, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Image
public Image(Element parent)
-
-
Method Detail
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Throws:
InvalidInputException
-
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
-
-