Class Annotation
- java.lang.Object
-
- io.openapiprocessor.jsonschema.validator.Annotation
-
public class Annotation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Annotation(java.lang.String keyword, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanasBoolean()java.lang.IntegerasInteger()java.util.Collection<java.lang.Integer>asIntegers()java.util.Collection<java.lang.String>asStrings()java.lang.StringgetKeyword()java.lang.ObjectgetValue()<T> booleanis(java.lang.Class<T> type)
-
-
-
Method Detail
-
getKeyword
public java.lang.String getKeyword()
-
getValue
public java.lang.Object getValue()
-
is
public <T> boolean is(java.lang.Class<T> type)
-
asBoolean
public java.lang.Boolean asBoolean()
-
asInteger
public java.lang.Integer asInteger()
-
asStrings
public java.util.Collection<java.lang.String> asStrings()
-
asIntegers
public java.util.Collection<java.lang.Integer> asIntegers()
-
-