Package org.yaml.snakeyaml.introspector
Class MissingProperty
java.lang.Object
org.yaml.snakeyaml.introspector.Property
org.yaml.snakeyaml.introspector.MissingProperty
- All Implemented Interfaces:
Comparable<Property>
A property that does not map to a real property; this is used when
PropertyUtils
.setSkipMissingProperties(boolean) is set to true.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
<A extends Annotation>
AgetAnnotation
(Class<A> annotationType) Returns property's annotation for the given type ornull
if it's not present.Returns the annotations that are present on this property or emptyList
if there're no annotations.void
Setter does nothing.Methods inherited from class org.yaml.snakeyaml.introspector.Property
compareTo, equals, getName, getType, hashCode, isReadable, isWritable, toString
-
Constructor Details
-
MissingProperty
-
-
Method Details
-
getActualTypeArguments
- Specified by:
getActualTypeArguments
in classProperty
-
set
Setter does nothing. -
get
-
getAnnotations
Description copied from class:Property
Returns the annotations that are present on this property or emptyList
if there're no annotations.- Specified by:
getAnnotations
in classProperty
- Returns:
- the annotations that are present on this property or empty
List
if there're no annotations
-
getAnnotation
Description copied from class:Property
Returns property's annotation for the given type ornull
if it's not present.- Specified by:
getAnnotation
in classProperty
- Type Parameters:
A
- class of the annotation- Parameters:
annotationType
- the type of the annotation to be returned- Returns:
- property's annotation for the given type or
null
if it's not present
-