Package io.sundr.model
Class AttributeSupport
- java.lang.Object
-
- io.sundr.model.AttributeSupport
-
- All Implemented Interfaces:
Attributeable,Node
- Direct Known Subclasses:
AnnotationRef,ModifierSupport,TypeParamDef,TypeRef
public class AttributeSupport extends Object implements Attributeable
-
-
Field Summary
-
Fields inherited from interface io.sundr.model.Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT
-
Fields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG
-
-
Constructor Summary
Constructors Constructor Description AttributeSupport(Map<AttributeKey,Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAttribute(AttributeKey<T> key)Map<AttributeKey,Object>getAttributes()<T> booleanhasAttribute(AttributeKey<T> key)
-
-
-
Constructor Detail
-
AttributeSupport
public AttributeSupport(Map<AttributeKey,Object> attributes)
-
-
Method Detail
-
getAttributes
public Map<AttributeKey,Object> getAttributes()
- Specified by:
getAttributesin interfaceAttributeable
-
getAttribute
public <T> T getAttribute(AttributeKey<T> key)
- Specified by:
getAttributein interfaceAttributeable
-
hasAttribute
public <T> boolean hasAttribute(AttributeKey<T> key)
- Specified by:
hasAttributein interfaceAttributeable
-
-