public class XMLCategoryReference extends java.lang.Object implements ParagraphElement, ElementReference
<catRef id="mycat" desc="the description" />This links to the category which ID is "mycat".
TYPE_NONE
Constructor and Description |
---|
XMLCategoryReference(XMLArticle article,
java.lang.String catID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(ArticleCategory refCat)
Set the referenced category.
|
ArticleCategory |
getCategory()
Return the referenced article.
|
java.lang.String |
getDesc()
Return the reference text.
|
java.lang.String |
getID()
Return the referenced category ID.
|
int |
getLineNumber()
Return the line where the reference appear.
|
XMLArticle |
getOriginArticle()
Return the article which emit the reference.
|
void |
setDesc(java.lang.String desc)
Set the reference text.
|
void |
setLineNumber(int lineNumber)
Set the line number where the reference appear.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
hasLineNumber
public XMLCategoryReference(XMLArticle article, java.lang.String catID)
article
- the article which emit the referencecatID
- the category IDpublic XMLArticle getOriginArticle()
public ArticleCategory getCategory()
public void setLineNumber(int lineNumber)
lineNumber
- the line numberpublic int getLineNumber()
getLineNumber
in interface ElementReference
public void setDesc(java.lang.String desc)
desc
- the reference textpublic java.lang.String getID()
public java.lang.String getDesc()
public void bind(ArticleCategory refCat)
refCat
- the referenced categoryCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence