public class XMLIncludedAPI extends java.lang.Object implements ParagraphElement, ParagraphElementParent
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
api
The API.
|
static short |
CLASS
class.
|
static short |
ENUM
enum.
|
static short |
INTERFACE
interface.
|
TYPE_NONE
Constructor and Description |
---|
XMLIncludedAPI(short language,
short type) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
int |
countFields()
Count the number of fields.
|
int |
countMethods()
Count the number of methods.
|
java.lang.String |
getAPI()
Return the API name.
|
java.util.List<XMLIncludedAPIMember> |
getConstructors()
Return the list of constructors.
|
java.util.Set<java.lang.String> |
getCustomStyles()
Return the element custom classes.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of elements.
|
java.lang.String |
getElementType()
Return the element type as a String.
|
java.util.SortedMap<java.lang.String,XMLIncludedAPIMember> |
getFields()
Return the map of fields.
|
java.util.SortedMap<java.lang.String,java.util.List<XMLIncludedAPIMember>> |
getFieldsAsList()
Return the map of fields as a map of lists.
|
short |
getLanguage()
Return the API language.
|
java.util.SortedMap<java.lang.String,java.util.List<XMLIncludedAPIMember>> |
getMethods()
Return the map of methods.
|
java.lang.String |
getModifiers()
Return the modifiers.
|
java.lang.String |
getPath()
Return the path.
|
short |
getType()
Return the element type.
|
boolean |
hasConstructors()
Return true if there are constructors declarations in the API.
|
boolean |
hasFields()
Return true if there are fields declarations in the API.
|
boolean |
hasMethods()
Return true if there are methods declarations in the API.
|
boolean |
hasThematicBreak()
Return true if the api has thematic breaks("hr").
|
void |
setCustomStyles(java.util.Set<java.lang.String> classes)
Set the element custom classes.
|
void |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void |
setModifiers(java.lang.String modifiers)
Set the modifiers.
|
void |
setPath(java.lang.String path)
Set the path.
|
void |
setThematicBreak(boolean hasHR)
Set if the api has thematic breaks("hr").
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
public static final short CLASS
public static final short ENUM
public static final short INTERFACE
protected java.lang.String api
public short getType()
public java.lang.String getElementType()
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public short getLanguage()
public void setModifiers(java.lang.String modifiers)
modifiers
- the modifierspublic java.lang.String getModifiers()
public java.lang.String getAPI()
public void setPath(java.lang.String path)
path
- the pathpublic java.lang.String getPath()
public void setThematicBreak(boolean hasHR)
hasHR
- true if the api has thematic breaks("hr")public boolean hasThematicBreak()
public void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles
in interface StyledElement
classes
- the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles
in interface StyledElement
public void setElements(java.util.List<ParagraphElement> elements)
setElements
in interface ParagraphElementParent
elements
- the list of elementspublic void addElement(ParagraphElement element)
addElement
in interface ParagraphElementParent
element
- the elementpublic java.util.List<ParagraphElement> getElements()
getElements
in interface ParagraphElementParent
public int countFields()
public int countMethods()
public java.util.SortedMap<java.lang.String,XMLIncludedAPIMember> getFields()
public java.util.SortedMap<java.lang.String,java.util.List<XMLIncludedAPIMember>> getFieldsAsList()
public boolean hasFields()
public java.util.List<XMLIncludedAPIMember> getConstructors()
public boolean hasConstructors()
public java.util.SortedMap<java.lang.String,java.util.List<XMLIncludedAPIMember>> getMethods()
public boolean hasMethods()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence