org.asciidoctor.ast
public class StructuredDocument extends Object
Modifier and Type | Method and Description |
---|---|
static StructuredDocument |
createStructuredDocument(DocumentHeader header,
List<ContentPart> parts) |
DocumentHeader |
getHeader() |
ContentPart |
getPartById(String id)
Return first matched part by id
|
ContentPart |
getPartByRole(String role)
Return first matched part by role
|
ContentPart |
getPartByStyle(String style)
Return first matched part by style
|
List<ContentPart> |
getParts() |
List<ContentPart> |
getPartsByContext(String context)
Return all parts that match specified context
|
List<ContentPart> |
getPartsByRole(String role)
Return all parts that match specified role
|
List<ContentPart> |
getPartsByStyle(String style)
Return all parts that match specified style
|
public List<ContentPart> getParts()
public DocumentHeader getHeader()
public ContentPart getPartById(String id)
id
- public ContentPart getPartByStyle(String style)
style
- public ContentPart getPartByRole(String role)
style
- public List<ContentPart> getPartsByContext(String context)
style
- public List<ContentPart> getPartsByStyle(String style)
style
- public List<ContentPart> getPartsByRole(String role)
style
- public static StructuredDocument createStructuredDocument(DocumentHeader header, List<ContentPart> parts)
Copyright © 2014. All Rights Reserved.