se.biltmore.tools.odttoapt.maven.plugin.models
Class APTDocumentAttribute

java.lang.Object
  extended by se.biltmore.tools.odttoapt.maven.plugin.models.APT
      extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTDocumentAttribute

public class APTDocumentAttribute
extends APT

This represents one of 'title', 'author', and 'date' document attributes.

An APT document has these 3 attributes that are optional and must come first in the document. This model indicates which of the 3 values it represents. When this model is added to APTDocument it checks what type of value it represents and saves it as that value.


Field Summary
static byte AUTHOR
          Indicates that this model represents the document author.
static byte DATE
          Indicates that this model represent the document date.
static byte TITLE
          Indicates that this model represents the document title.
private  byte type
          The type of attribute.
 
Constructor Summary
APTDocumentAttribute(byte type)
          Creates a new APTDocumentAttribute instance.
 
Method Summary
 boolean isAuthor()
          Returns true if this is an author attribute.
 boolean isDate()
          Returns true if this is a date attribute.
 boolean isTitle()
          Returns true if this is a title attribute.
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT
done, formatText, getParent, getUnformattedValue, getValue, hasValue, isAllowFormat, isLink, setAllowFormat, setLink, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TITLE

public static final byte TITLE
Indicates that this model represents the document title.

See Also:
Constant Field Values

AUTHOR

public static final byte AUTHOR
Indicates that this model represents the document author.

See Also:
Constant Field Values

DATE

public static final byte DATE
Indicates that this model represent the document date.

See Also:
Constant Field Values

type

private byte type
The type of attribute.

Constructor Detail

APTDocumentAttribute

public APTDocumentAttribute(byte type)
Creates a new APTDocumentAttribute instance.

Parameters:
type - The type of this document attrubute.
Method Detail

isTitle

public boolean isTitle()
Returns true if this is a title attribute.


isAuthor

public boolean isAuthor()
Returns true if this is an author attribute.


isDate

public boolean isDate()
Returns true if this is a date attribute.



Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.