public class XMLTitle
extends org.docgene.model.AbstractStyledElement
implements org.docgene.model.TitledElement
TYPE_NONE
Constructor and Description |
---|
XMLTitle(int level,
java.lang.String title,
boolean keepCase)
Constructor.
|
XMLTitle(int level,
java.lang.String title,
java.lang.String id,
boolean keepCase)
Constructor.
|
XMLTitle(java.lang.String title,
boolean isSeeAlso,
boolean keepCase)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getID()
Return the title id.
|
int |
getLevel()
Return the title level.
|
java.lang.String |
getSeq()
Return the title sequence id.
|
java.lang.String |
getTitle()
Return the title title.
|
boolean |
hasSeq()
Return true if the title has a forced sequence id.
|
boolean |
hasThematicBreak()
Return true if the title has a thematic break ("hr") before the title.
|
boolean |
isDuplicate()
Return true if the title is a duplicate of another existing title.
|
boolean |
isKeepingCase()
Return true if the title description should keep the title description case.
|
boolean |
isResolved()
Return true if the title element has having been already resolved.
|
boolean |
isSearchable()
Return true if the title is searchable.
|
boolean |
isSeeAlso()
Return true if the TitledElement correspond to a See Also title.
|
void |
setDuplicate(boolean isDuplicate)
Set if the title is a duplicate of another existing title.
|
void |
setID(java.lang.String id)
Set the title id.
|
void |
setKeepCase(boolean keepCase)
Set if the title description should keep the title description case.
|
void |
setLevel(int level)
Set the title level.
|
void |
setResolved()
Set the titled element as being resolved.
|
void |
setSearchable(boolean isSearchable)
Set if the title is searchable
|
void |
setSeq(java.lang.String seq)
Set the title sequence id.
|
void |
setThematicBreak(boolean hasHR)
Set if the title has a thematic break ("hr") before the title.
|
void |
setTitle(java.lang.String title)
Set the title.
|
getCustomStyles, getInlinedStyle, setCustomStyles, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStyle, hasInlinedStyle, setCustomStyles
public XMLTitle(int level, java.lang.String title, boolean keepCase)
level
- the title leveltitle
- the title titlekeepCase
- true if the title description should keep the title description casepublic XMLTitle(int level, java.lang.String title, java.lang.String id, boolean keepCase)
level
- the title leveltitle
- the title titleid
- the title idkeepCase
- true if the title description should keep the title description casepublic XMLTitle(java.lang.String title, boolean isSeeAlso, boolean keepCase)
title
- the title titleisSeeAlso
- true for a SeeAlso titlekeepCase
- true if the title description should keep the title description casepublic void setTitle(java.lang.String title)
setTitle
in interface org.docgene.model.TitledElement
title
- the titlepublic java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public void setSeq(java.lang.String seq)
setSeq
in interface org.docgene.model.TitledElement
seq
- the sequence idpublic boolean hasSeq()
hasSeq
in interface org.docgene.model.TitledElement
public java.lang.String getSeq()
getSeq
in interface org.docgene.model.TitledElement
public void setLevel(int level)
setLevel
in interface org.docgene.model.TitledElement
level
- the title levelpublic void setSearchable(boolean isSearchable)
isSearchable
- true if the title is searchablepublic boolean isSearchable()
isSearchable
in interface org.docgene.model.TitledElement
public void setDuplicate(boolean isDuplicate)
isDuplicate
- true if the title is a duplicate of another existing titlepublic boolean isDuplicate()
isDuplicate
in interface org.docgene.model.TitledElement
public void setKeepCase(boolean keepCase)
keepCase
- true if the title description should keep the title description casepublic boolean isKeepingCase()
isKeepingCase
in interface org.docgene.model.TitledElement
public void setResolved()
setResolved
in interface org.docgene.model.TitledElement
public boolean isResolved()
isResolved
in interface org.docgene.model.TitledElement
public void setThematicBreak(boolean hasHR)
hasHR
- true if the title has a thematic break ("hr") before the titlepublic boolean hasThematicBreak()
public boolean isSeeAlso()
isSeeAlso
in interface org.docgene.model.TitledElement
public int getLevel()
getLevel
in interface org.docgene.model.TitledElement
public java.lang.String getTitle()
getTitle
in interface org.docgene.model.AnchorElement
getTitle
in interface org.docgene.model.TitledElement
public void setID(java.lang.String id)
setID
in interface org.docgene.model.AnchorElement
id
- the title idpublic java.lang.String getID()
getID
in interface org.docgene.model.AnchorElement
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence