public class XMLWord extends java.lang.Object implements ParagraphElement, AnchorElement
TYPE_NONE
Constructor and Description |
---|
XMLWord(XMLArticle article)
Constructor.
|
XMLWord(XMLArticle article,
java.lang.String word)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
XMLArticle |
getArticle()
Return the article.
|
ArticleRef |
getArticleRef()
Return the article ref.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getID()
Return the ID of the anchor.
|
java.lang.String |
getText()
Return the text.
|
java.lang.String |
getWord()
Return the associated word.
|
boolean |
getWriteInstruction()
Return the write instruction for the the word.
|
boolean |
hasID()
Return true if this anchor has an id.
|
boolean |
isOnAnchor()
Return true if the word as being put on an existing anchor.
|
boolean |
isOnArticle()
Return true if the word anchor is on an article.
|
void |
setID(java.lang.String id)
Set the ID of the anchor.
|
void |
setOnAnchor(boolean isOnAnchor)
Set the word as being put on an existing anchor.
|
void |
setText(java.lang.String text)
Set the text.
|
void |
setWriteInstruction(boolean toWrite)
Set the write instruction for the the word.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
getTitle
public XMLWord(XMLArticle article)
article
- the articlepublic XMLWord(XMLArticle article, java.lang.String word)
article
- the articleword
- the word of the anchorpublic XMLArticle getArticle()
public ArticleRef getArticleRef()
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public boolean isOnArticle()
public void setOnAnchor(boolean isOnAnchor)
isOnAnchor
- true if the word is being put on an existing anchorpublic boolean isOnAnchor()
public java.lang.String getWord()
public void setWriteInstruction(boolean toWrite)
toWrite
- true if the word must be writtenpublic boolean getWriteInstruction()
public void setText(java.lang.String text)
text
- the textpublic java.lang.String getText()
public java.lang.String getID()
getID
in interface AnchorElement
public boolean hasID()
public void setID(java.lang.String id)
setID
in interface AnchorElement
id
- the ID of the anchorCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence