public class XhtmlDt extends BasePrimitive<List<XMLEvent>>
| Constructor and Description |
|---|
XhtmlDt()
Constructor
|
XhtmlDt(String theTextDiv)
Constructor which accepts a string code
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
encode(List<XMLEvent> theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
boolean |
hasContent() |
boolean |
isEmpty() |
protected List<XMLEvent> |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
static String |
preprocessXhtmlNamespaceDeclaration(String value) |
void |
setValueAsString(String theValue)
Accepts a textual DIV and parses it into XHTML events which are stored internally.
|
equals, getValue, getValueAsString, hashCode, readExternal, setValue, toString, updateStringValue, writeExternalgetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment, isBaseEmptyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentpublic XhtmlDt()
protected String encode(List<XMLEvent> theValue)
BasePrimitiveencode in class BasePrimitive<List<XMLEvent>>theValue - Will not be nullpublic boolean hasContent()
public boolean isEmpty()
protected List<XMLEvent> parse(String theValue)
BasePrimitiveparse in class BasePrimitive<List<XMLEvent>>theValue - Will not be nullpublic void setValueAsString(String theValue) throws DataFormatException
Formatting note: The text will be trimmed String.trim(). If the text does not start with an HTML tag (generally this would be a div tag), a div tag will be automatically placed
surrounding the text.
Also note that if the parsed text contains any entities (&foo;) which are not a part of the entities defined in core XML (e.g. § which is valid in XHTML 1.0 but not in XML 1.0) they will be parsed and converted to their equivalent unicode character.
setValueAsString in interface IPrimitiveDatatype<List<XMLEvent>>setValueAsString in interface IPrimitiveType<List<XMLEvent>>setValueAsString in class BasePrimitive<List<XMLEvent>>DataFormatExceptionpublic static String preprocessXhtmlNamespaceDeclaration(String value)
Copyright © 2014–2017 University Health Network. All rights reserved.