se.biltmore.tools.odttoapt.maven.plugin.models
Class APTImageHRef
java.lang.Object
se.biltmore.tools.odttoapt.maven.plugin.models.APT
se.biltmore.tools.odttoapt.maven.plugin.models.APTImageHRef
public class APTImageHRef
- extends APT
This represents an image href for an image in a APT document. The href occurs as a separate tag
in the content.xml file of the .odt document therefore there is a separate model to represent it to
make life easier. The APTImage model will become a parent and receive this model as a child, and when
it gets it, it will use it as a href.
The setValue() methods in the APT base class is called for each element value in the content.xml file
when it is parsed. The href is however not an element value, but an attribute. The value field in the
APT base class is not intended to only be a reflection of xml element values. It is really only a
value and the origins of the value is irrelevant. That said, my personal emotions and feelings didn't
like putting the attribute href in the value, for some reason I cannot explain, so it is stored as
a private field in this class instead.
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT |
done, formatText, getParent, getUnformattedValue, hasValue, isAllowFormat, isLink, setAllowFormat, setLink, setParent, setValue, toString |
href
private String href
- The image href.
APTImageHRef
public APTImageHRef(String href)
- Creates a new APTImageHRef instance.
- Parameters:
href
- The image href.
getValue
public String getValue()
- Returns the href.
- Overrides:
getValue
in class APT
Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.