|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.types.Paragraph
public final class Paragraph
A paragraph of HTML.
Field Summary | |
---|---|
static int |
MAX_NAME_LENGTH
MAX_NAME_LENGTH : int. |
static int |
MAX_TEXT_LENGTH
MAX_TEXT_LENGTH : int. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static java.lang.String |
escape(java.lang.String string)
Escape a html/xhtml string. |
static Paragraph |
fromBoolean(java.lang.String name,
java.lang.Boolean b)
Factory method. |
static Paragraph |
fromDate(java.lang.String name,
java.util.Date date)
Factory method. |
static Paragraph |
fromList(java.lang.String name,
java.util.List<java.lang.String> list)
Factory method. |
static Paragraph |
fromNumber(java.lang.String name,
java.math.BigDecimal number)
Factory method. |
static Paragraph |
fromNumber(java.lang.String name,
double number)
Factory method. |
static Paragraph |
fromNumber(java.lang.String name,
long number)
Factory method. |
static Paragraph |
fromText(java.lang.String name,
java.lang.String text)
Factory method. |
java.lang.Boolean |
getBoolean()
Accessor. |
java.util.Date |
getDate()
Accessor. |
java.util.List<java.lang.String> |
getList()
Accessor. |
java.lang.String |
getName()
Accessor. |
java.math.BigDecimal |
getNumber()
Accessor. |
java.lang.String |
getText()
Accessor. |
ParagraphType |
getType()
Accessor. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_NAME_LENGTH
public static final int MAX_TEXT_LENGTH
Method Detail |
---|
public static Paragraph fromText(java.lang.String name, java.lang.String text)
text
- The text for this paragraph.name
- The name of the paragraph.
public static Paragraph fromBoolean(java.lang.String name, java.lang.Boolean b)
b
- The boolean for this paragraph.name
- The name of the paragraph.
public static Paragraph fromDate(java.lang.String name, java.util.Date date)
date
- The date for this paragraph.name
- The name of the paragraph.
public static Paragraph fromNumber(java.lang.String name, long number)
number
- The number for this paragraph.name
- The name of the paragraph.
public static Paragraph fromNumber(java.lang.String name, double number)
number
- The number for this paragraph.name
- The name of the paragraph.
public static Paragraph fromNumber(java.lang.String name, java.math.BigDecimal number)
number
- The number for this paragraph.name
- The name of the paragraph.
public static Paragraph fromList(java.lang.String name, java.util.List<java.lang.String> list)
name
- The name of the paragraph.list
- The list for the paragraph.
public java.math.BigDecimal getNumber()
public java.lang.String getText()
public ParagraphType getType()
public java.lang.Boolean getBoolean()
public java.util.Date getDate()
public java.util.List<java.lang.String> getList()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static java.lang.String escape(java.lang.String string)
This method converts all HTML 4.01 'markup significant' characters to their equivalent entities, as follows:
string
- The string to escape.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |