se.biltmore.tools.odttoapt.maven.plugin
Enum Style

java.lang.Object
  extended by java.lang.Enum<Style>
      extended by se.biltmore.tools.odttoapt.maven.plugin.Style
All Implemented Interfaces:
Serializable, Comparable<Style>

public enum Style
extends Enum<Style>

This is an enum of available APT styles.


Enum Constant Summary
Anchor
           
Bold
           
Comment
           
DocumentAuthor
           
DocumentDate
           
DocumentTitle
           
HorizontalRule
           
Italic
           
List
           
ListLetteredLowerCase
           
ListLetteredUpperCase
           
ListNumbered
           
ListRomanLowerCase
           
ListRomanUpperCase
           
Monospaced
           
NonBreakingSpace
           
Normal
           
Preformatted
           
PreformettedBoxed
           
SectionTitleL1
           
SectionTitleL2
           
SectionTitleL3
           
SectionTitleL4
           
SectionTitleL5
           
Text
           
 
Field Summary
private  int level
          The section title level
private  String templateStyle
          The name of the style in the APT.ott template.
private  char type
          The type of style.
 
Method Summary
static Style getByTemplate(String templateStyle)
          Returns the style by the APT.ott template style name.
 int getSectionTitleLevel()
          Returns the level of the section title.
 boolean isCharacter()
          Returns true if the style is character type style.
 boolean isDocumentMetaData()
          Returns true if the style is document meta data.
 boolean isList()
          Returns true if the style is list type style.
 boolean isParagraph()
          Returns true if the style is paragraph type style.
 boolean isSectionTitle()
          Returns true if the style is a section title.
static Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Style[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DocumentTitle

public static final Style DocumentTitle

DocumentAuthor

public static final Style DocumentAuthor

DocumentDate

public static final Style DocumentDate

SectionTitleL1

public static final Style SectionTitleL1

SectionTitleL2

public static final Style SectionTitleL2

SectionTitleL3

public static final Style SectionTitleL3

SectionTitleL4

public static final Style SectionTitleL4

SectionTitleL5

public static final Style SectionTitleL5

Text

public static final Style Text

Preformatted

public static final Style Preformatted

PreformettedBoxed

public static final Style PreformettedBoxed

Comment

public static final Style Comment

HorizontalRule

public static final Style HorizontalRule

Anchor

public static final Style Anchor

NonBreakingSpace

public static final Style NonBreakingSpace

Normal

public static final Style Normal

Bold

public static final Style Bold

Italic

public static final Style Italic

Monospaced

public static final Style Monospaced

List

public static final Style List

ListNumbered

public static final Style ListNumbered

ListLetteredUpperCase

public static final Style ListLetteredUpperCase

ListLetteredLowerCase

public static final Style ListLetteredLowerCase

ListRomanUpperCase

public static final Style ListRomanUpperCase

ListRomanLowerCase

public static final Style ListRomanLowerCase
Field Detail

templateStyle

private String templateStyle
The name of the style in the APT.ott template.


level

private int level
The section title level


type

private char type
The type of style.

Method Detail

values

public static Style[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Style c : Style.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Style valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByTemplate

public static Style getByTemplate(String templateStyle)
Returns the style by the APT.ott template style name.

Parameters:
templateStyle - The APT.ott template style name to lookup.

getSectionTitleLevel

public int getSectionTitleLevel()
Returns the level of the section title.


isSectionTitle

public boolean isSectionTitle()
Returns true if the style is a section title.


isDocumentMetaData

public boolean isDocumentMetaData()
Returns true if the style is document meta data.


isParagraph

public boolean isParagraph()
Returns true if the style is paragraph type style.


isCharacter

public boolean isCharacter()
Returns true if the style is character type style.


isList

public boolean isList()
Returns true if the style is list type style.



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