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

java.lang.Object
  extended by se.biltmore.tools.odttoapt.maven.plugin.models.APT
      extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTParent
Direct Known Subclasses:
APTDocument, APTHorizontalRule, APTImage, APTListItem, APTParagraph

public abstract class APTParent
extends APT

This is a model base class extending APT with child support.


Field Summary
private  List<APT> children
          A possible set of children.
 
Constructor Summary
protected APTParent()
          Creates a new ATP subclass instance since this class is abstract.
 
Method Summary
 void addChild(APT apt)
          Adds the specified APT object as a child to this APT object.
protected  List<APT> getChildren()
          Returns all child APT objects.
 APT getLastChild()
          Returns the last child or null if no children.
protected  String getUnformattedValue()
          Returns the unformatted value by collectiong all unformatted child values.
protected  boolean hasChildren()
          Returns true if there are children available.
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT
done, formatText, getParent, 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

children

private List<APT> children
A possible set of children.

Constructor Detail

APTParent

protected APTParent()
Creates a new ATP subclass instance since this class is abstract.

Method Detail

addChild

public void addChild(APT apt)
Adds the specified APT object as a child to this APT object.

Parameters:
apt - The APT object to add.

getChildren

protected List<APT> getChildren()
Returns all child APT objects.


hasChildren

protected boolean hasChildren()
Returns true if there are children available.


getLastChild

public APT getLastChild()
Returns the last child or null if no children. This is to support odtSAXHandler to handle "linking" of certain APTParagraph subclasses.


getUnformattedValue

protected String getUnformattedValue()
Returns the unformatted value by collectiong all unformatted child values.

Overrides:
getUnformattedValue in class APT


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