public class Meta extends Object implements Element
Element
that contains
some meta information about the document.
An object of type Meta
can not be constructed by the user.
User defined meta information should be placed in a Header
-object.
Meta
is reserved for: Subject, Keywords, Author, Title, Producer
and Creationdate information.
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR
The possible value of an alignment attribute.
|
private StringBuffer |
content
This is the content of the Meta-information.
|
static String |
CREATIONDATE
The possible value of an alignment attribute.
|
static String |
KEYWORDS
The possible value of an alignment attribute.
|
static String |
PRODUCER
The possible value of an alignment attribute.
|
static String |
SUBJECT
The possible value of an alignment attribute.
|
static String |
TITLE
The possible value of an alignment attribute.
|
private int |
type
This is the type of Meta-information this object contains.
|
static String |
UNKNOWN
The possible value of an alignment attribute.
|
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PTABLE, RECTANGLE, SECTION, WRITABLE_DIRECT, YMARK
Constructor and Description |
---|
Meta(int type,
String content)
Constructs a
Meta . |
Meta(String tag,
String content)
Constructs a
Meta . |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
append(String string)
appends some text to this
Meta . |
List<Chunk> |
getChunks()
Gets all the chunks in this element.
|
String |
getContent()
Returns the content of the meta information.
|
String |
getName()
Returns the name of the meta information.
|
static int |
getType(String tag)
Returns the name of the meta information.
|
boolean |
isContent()
Checks if this element is a content object.
|
boolean |
isNestable()
Checks if this element is nestable.
|
boolean |
process(ElementListener listener)
Processes the element by adding it (or the different parts) to a
ElementListener . |
int |
type()
Gets the type of the text element.
|
private final int type
private final StringBuffer content
public static final String UNKNOWN
public static final String PRODUCER
public static final String CREATIONDATE
public static final String AUTHOR
public static final String KEYWORDS
public static final String SUBJECT
public static final String TITLE
Meta(int type, String content)
Meta
.type
- the type of meta-informationcontent
- the contentpublic boolean process(ElementListener listener)
ElementListener
.public int type()
public boolean isContent()
Element
isContent
in interface Element
Element.isContent()
public boolean isNestable()
Element
isNestable
in interface Element
Element.isNestable()
public StringBuffer append(String string)
Meta
.string
- a String
StringBuffer
public String getContent()
String
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses