|
SimpleServlets v5.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.simpleservlets.htmlobjects.GenericHTMLElement
com.simpleservlets.htmlobjects.HTMLEntity
public class HTMLEntity
Represents an HTML entity as an HTMLElement.
Does not have a start or end tag (NoTag) and
does not support the addition of any children (NoChildrenAllowed).
| Field Summary |
|---|
| Fields inherited from interface com.simpleservlets.htmlobjects.HTMLElement |
|---|
ZERO_LEN_ARRAY |
| Constructor Summary | |
|---|---|
HTMLEntity(String text)
Does: this(text, null); (no parent currently). |
|
HTMLEntity(String text,
HTMLElement parent)
Creates an entity with the specified text. |
|
| Method Summary | |
|---|---|
static HTMLEntity |
createAmp()
Creates the & entity for "&" (ampersand). |
static HTMLEntity |
createApos()
Creates the ' entity for "'" (apostrophe or single quote). |
static HTMLEntity |
createCopy()
Creates the © entity for "©" (copyright). |
static HTMLEntity |
createGt()
Creates the > entity for ">" (greater than). |
static HTMLEntity |
createLt()
Creates the < entity for "<" (less than). |
static HTMLEntity |
createNbsp()
Creates the entity for " " (non-breaking space). |
static HTMLEntity |
createQuot()
Creates the " entity for """ (double quote). |
static HTMLEntity |
createReg()
Creates the ® entity for "®" (registered trademark). |
static HTMLEntity |
createTrade()
Creates the ™ entity for "™" (trademark). |
String |
getEntity()
|
| Methods inherited from class com.simpleservlets.htmlobjects.GenericHTMLElement |
|---|
add, add, addSibling, addSibling, getAttributes, getChildren, getName, getParent, hasAttributes, hasChildren, isSafeToWrapWithWhitespace, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeGroup, setParent, setSafeToWrapWithWhitespace, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.simpleservlets.htmlobjects.HTMLElement |
|---|
add, add, addSibling, addSibling, getAttributes, getChildren, getName, getParent, hasAttributes, hasChildren, isSafeToWrapWithWhitespace, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeGroup, setParent, setStyle |
| Constructor Detail |
|---|
public HTMLEntity(String text,
HTMLElement parent)
throws HTMLException
text - the entity body (without the & prefix and ; suffix)parent - the parent of this element. If null is passed
in, then this entity does not currently have a parent.
HTMLException - if the specified text is null or trims to
a zero-length string.public HTMLEntity(String text)
| Method Detail |
|---|
public String getEntity()
public static HTMLEntity createLt()
public static HTMLEntity createGt()
public static HTMLEntity createAmp()
public static HTMLEntity createQuot()
public static HTMLEntity createApos()
public static HTMLEntity createNbsp()
public static HTMLEntity createCopy()
public static HTMLEntity createReg()
public static HTMLEntity createTrade()
|
SimpleServlets v5.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||