public class XMLInclude extends java.lang.Object implements ParagraphArticleReference, TitleOrIncludeElement
TYPE_NONE| Constructor and Description |
|---|
XMLInclude(XMLArticle article,
java.lang.String refID,
java.lang.String pack)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(XMLParentArticle article)
Set the referenced article.
|
ArticleRef |
getArticleRef()
Return the associated reference.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getDesc()
Return the reference text.
|
int |
getLineNumber()
Return the line where the reference appear.
|
XMLArticle |
getOriginArticle()
Return the article which emit the reference.
|
java.lang.String |
getPackage()
Return the included article package.
|
int |
getPreviousTitleIndex()
Return the index of the title or chapter preceding the include element (0 means that there is no title or chapter before the include
element).
|
XMLParentArticle |
getReferencedArticle()
Return the referenced article.
|
java.lang.String |
getRefID()
Return the other article reference ID.
|
boolean |
isBound()
Return true if the reference is bound.
|
boolean |
isKeepingNumbering()
Return true if the titles numbering levels is kept.
|
void |
setKeepNumbering(boolean keepNumbering)
Set if the titles numbering levels is kept.
|
void |
setLineNumber(int lineNumber)
Set the line number where the reference appear.
|
void |
setPreviousTitleIndex(int previousTitleIndex)
Set the index of the title or chapter preceding the include element (0 means that there is no title or chapter before the include
element).
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, getAnchorElement, getRefPackage, isAutoDesc, isBareReference, setDescgetCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylehasLineNumberpublic XMLInclude(XMLArticle article, java.lang.String refID, java.lang.String pack)
article - the article which emit the referencerefID - the included article IDpack - the included article packagepublic void setLineNumber(int lineNumber)
lineNumber - the line numberpublic int getLineNumber()
getLineNumber in interface ElementReferencepublic void setKeepNumbering(boolean keepNumbering)
keepNumbering - true if the titles numbering levels is keptpublic boolean isKeepingNumbering()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic java.lang.String getPackage()
public void setPreviousTitleIndex(int previousTitleIndex)
previousTitleIndex - the index of the title or chapter preceding the include elementpublic int getPreviousTitleIndex()
public XMLArticle getOriginArticle()
public XMLParentArticle getReferencedArticle()
getReferencedArticle in interface ArticleReferencepublic ArticleRef getArticleRef()
getArticleRef in interface ArticleReferencepublic boolean isBound()
isBound in interface ArticleReferencepublic java.lang.String getDesc()
getDesc in interface ArticleReferencepublic java.lang.String getRefID()
XMLArticle.getDescription()XMLArticle.getID()getRefID in interface ArticleReferencepublic void bind(XMLParentArticle article)
bind in interface ArticleReferencearticle - the referenced articleCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence