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

java.lang.Object
  extended by se.biltmore.tools.odttoapt.maven.plugin.models.APT
      extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTText
All Implemented Interfaces:
IgnoreChildren, NonParentSpaceReceiver
Direct Known Subclasses:
APTAnchor, APTLineBreak, APTLink, APTNonBreakingSpace, APTPageBreak, APTSpaces, APTTextBold, APTTextItalic, APTTextMonospaced

public class APTText
extends APT
implements NonParentSpaceReceiver, IgnoreChildren

This represents a part of a paragraph in a APT document. An APTParagraph has one or more APTText children. This class also has some subclasses handling specific formats like bold, italic, etc.


Constructor Summary
APTText()
          Creates a new APTText instance.
 
Method Summary
 void addSpace(APTSpaces space)
          Receives a set of spaces.
protected  String getAPTTextValue()
          For subclasses of this to override.
 String getUnformattedValue()
          Subclasses of this needs to supply their style formatting even on "unformatted".
protected  String getValue()
          Returns the value.
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT
done, formatText, getParent, 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
 

Constructor Detail

APTText

public APTText()
Creates a new APTText instance.

Method Detail

getAPTTextValue

protected String getAPTTextValue()
For subclasses of this to override.


getUnformattedValue

public String getUnformattedValue()
Subclasses of this needs to supply their style formatting even on "unformatted".

Overrides:
getUnformattedValue in class APT

getValue

protected String getValue()
Returns the value.

Overrides:
getValue in class APT

addSpace

public void addSpace(APTSpaces space)
Receives a set of spaces.

Specified by:
addSpace in interface NonParentSpaceReceiver
Parameters:
space - The space to receive.


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