Package ch.so.agi.mcp.util
Class AnnotationRenderer
java.lang.Object
ch.so.agi.mcp.util.AnnotationRenderer
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringindentBlock(String text, String indent) static List<MetaAttributeSpec> mergeMetaAttributes(@Nullable List<MetaAttributeSpec> defaults, @Nullable List<MetaAttributeSpec> overrides) static List<MetaAttributeSpec> normalizeMetaAttributes(@Nullable List<MetaAttributeSpec> metaAttributes, boolean requireNonEmpty, boolean rejectDuplicates) static StringrenderAnnotations(@Nullable String iliDoc, @Nullable List<MetaAttributeSpec> metaAttributes) static StringrenderMetaAttributeBlock(@Nullable List<MetaAttributeSpec> metaAttributes, boolean requireNonEmpty, boolean rejectDuplicates)
-
Method Details
-
renderAnnotations
public static String renderAnnotations(@Nullable String iliDoc, @Nullable List<MetaAttributeSpec> metaAttributes) -
indentBlock
-
mergeMetaAttributes
public static List<MetaAttributeSpec> mergeMetaAttributes(@Nullable List<MetaAttributeSpec> defaults, @Nullable List<MetaAttributeSpec> overrides) -
renderMetaAttributeBlock
public static String renderMetaAttributeBlock(@Nullable List<MetaAttributeSpec> metaAttributes, boolean requireNonEmpty, boolean rejectDuplicates) -
normalizeMetaAttributes
public static List<MetaAttributeSpec> normalizeMetaAttributes(@Nullable List<MetaAttributeSpec> metaAttributes, boolean requireNonEmpty, boolean rejectDuplicates)
-