public class DocumentationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTRUCTOR_DOC |
static String |
DEFAULT_ASYNC_RETURN |
static String |
DEFAULT_FLUENT_RETURN |
static String |
DEFAULT_GETTER |
static String |
DEFAULT_GETTER_PARAM |
static String |
DEFAULT_SETTER |
static String |
DEFAULT_SETTER_PARAM |
static String |
DEFAULT_SYNC_RETURN |
static String |
LIST_VARARG_ADDITIONAL_DOC |
| Constructor and Description |
|---|
DocumentationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createLinkToServiceDocumentation(Metadata metadata,
ShapeModel shapeModel)
Create the HTML for a link to the operation/shape core AWS docs site
|
static String |
createLinkToServiceDocumentation(Metadata metadata,
String name)
Create the HTML for a link to the operation/shape core AWS docs site
|
static String |
escapeIllegalCharacters(String documentation)
Escapes Java comment breaking illegal character sequences.
|
static String |
generateGetterDocumentation() |
static String |
generateSetterDocumentation() |
static String |
generateWitherDocumentation() |
static String |
removeFromEnd(String string,
String stringToRemove) |
static String |
stripHTMLTags(String documentation)
Returns a documentation with HTML tags prefixed and suffixed removed, or
returns empty string if the input is empty or null.
|
public static final String DEFAULT_ASYNC_RETURN
public static final String DEFAULT_SYNC_RETURN
public static final String DEFAULT_SETTER
public static final String DEFAULT_SETTER_PARAM
public static final String DEFAULT_GETTER
public static final String DEFAULT_GETTER_PARAM
public static final String DEFAULT_FLUENT_RETURN
public static final String CONSTRUCTOR_DOC
public static final String LIST_VARARG_ADDITIONAL_DOC
public static String generateSetterDocumentation()
public static String generateGetterDocumentation()
public static String generateWitherDocumentation()
public static String stripHTMLTags(String documentation)
documentation - unprocessed input documentationpublic static String escapeIllegalCharacters(String documentation)
documentation - unprocessed input documentationpublic static String createLinkToServiceDocumentation(Metadata metadata, String name)
metadata - the UID for the service from that services metadataname - the name of the shape/request/operationpublic static String createLinkToServiceDocumentation(Metadata metadata, ShapeModel shapeModel)
metadata - the UID for the service from that services metadatashapeModel - the model of the shapeCopyright © 2023. All rights reserved.