public abstract class HeaderElement extends AbstractXMLParent implements org.docgene.model.globals.XMLRootElement
chapters, paragraphs
ARTICLE, CATEGORIES, CATEGORY, DICTIONARY, FOOTER, FULL_TEXT_SEARCH, GLOSSARY, HEADER, IMAGE_DEFINITION, IMAGES_DEFINITION, INFOBOX_DEFINITION, INFOBOX_PROPERTY, MENUS, PACKAGE, RESOURCE_DEFINITION, RESOURCES_DEFINITION, UNDEFINED
Constructor and Description |
---|
HeaderElement() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getInputFile()
Return the element input XML file.
|
XMLImage |
getLeftImage()
Return the associated left image.
|
java.lang.String |
getPackage()
Return the article package.
|
XMLParent |
getParent()
Return null.
|
org.docgene.model.globals.RootDirectory |
getRoot()
Return the root directory.
|
boolean |
hasLeftImage()
Return true if there is an associated left image.
|
boolean |
hasPackage()
Return true if the article has a package.
|
void |
setInputFile(java.io.File file)
Set the element input XML file.
|
void |
setLeftImage(XMLImage image)
Set the associated left image.
|
void |
setPackage(java.lang.String pack)
Set the package ID of the article.
|
void |
setRoot(org.docgene.model.globals.RootDirectory root)
Set the root directory.
|
addChapter, addParagraph, getChapters, getParagraphs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public XMLParent getParent()
public void setRoot(org.docgene.model.globals.RootDirectory root)
root
- the rootpublic org.docgene.model.globals.RootDirectory getRoot()
getRoot
in interface org.docgene.model.globals.RootElement
public void setPackage(java.lang.String pack)
setPackage
in interface org.docgene.model.globals.XMLRootElement
pack
- the package ID of the articlepublic java.lang.String getPackage()
getPackage
in interface org.docgene.model.globals.PackagedElement
getPackage
in interface org.docgene.model.globals.XMLRootElement
public boolean hasPackage()
hasPackage
in interface org.docgene.model.globals.PackagedElement
hasPackage
in interface org.docgene.model.globals.XMLRootElement
public void setLeftImage(XMLImage image)
image
- the imagepublic XMLImage getLeftImage()
public boolean hasLeftImage()
public void setInputFile(java.io.File file)
setInputFile
in interface org.docgene.model.globals.XMLRootElement
file
- the element input XML filepublic java.io.File getInputFile()
getInputFile
in interface org.docgene.model.globals.RootElement
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence