public class XMLCategoryReference extends java.lang.Object implements ParagraphElement, org.docgene.model.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(org.docgene.model.globals.ArticleCategory refCat)
Set the referenced category.
|
org.docgene.model.globals.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, waitgetCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylepublic XMLCategoryReference(XMLArticle article, java.lang.String catID)
article - the article which emit the referencecatID - the category IDpublic XMLArticle getOriginArticle()
public org.docgene.model.globals.ArticleCategory getCategory()
public void setLineNumber(int lineNumber)
lineNumber - the line numberpublic int getLineNumber()
getLineNumber in interface org.docgene.model.ElementReferencepublic void setDesc(java.lang.String desc)
desc - the reference textpublic java.lang.String getID()
public java.lang.String getDesc()
public void bind(org.docgene.model.globals.ArticleCategory refCat)
refCat - the referenced categoryCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence