@Beta @NonNullByDefault public final class TypeComments extends Object
TypeComment
s.Modifier and Type | Method and Description |
---|---|
static Optional<TypeComment> |
description(org.opendaylight.yangtools.yang.model.api.DocumentedNode node)
Create a
TypeComment for a DocumentedNode 's description string. |
static Optional<TypeComment> |
javadoc(String javadoc)
Create a
TypeComment for a javadoc-compliant text snippet. |
public static Optional<TypeComment> javadoc(String javadoc)
TypeComment
for a javadoc-compliant text snippet. This snippet must be eligible for direct
inclusion in a Java comment without further escaping.javadoc
- Pre-formatted javadoc snippetTypeComment
, or empty if the snippet was emptypublic static Optional<TypeComment> description(org.opendaylight.yangtools.yang.model.api.DocumentedNode node)
TypeComment
for a DocumentedNode
's description string.node
- Documented node containing the description to be processedTypeComment
, or empty if the node's description was empty or non-present.Copyright © 2019 OpenDaylight. All rights reserved.