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>
public class MissingProperty extends Property
A property that does not map to a real property; this is used whenPropertyUtils.setSkipMissingProperties(boolean) is set to true.
-
-
Constructor Summary
Constructors Constructor Description MissingProperty(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object object)Class<?>[]getActualTypeArguments()<A extends Annotation>
AgetAnnotation(Class<A> annotationType)Returns property's annotation for the given type ornullif it's not present.List<Annotation>getAnnotations()Returns the annotations that are present on this property or emptyListif there're no annotations.voidset(Object object, Object value)Setter does nothing.-
Methods inherited from class org.yaml.snakeyaml.introspector.Property
compareTo, equals, getName, getType, hashCode, isReadable, isWritable, toString
-
-
-
-
Constructor Detail
-
MissingProperty
public MissingProperty(String name)
-
-
Method Detail
-
getActualTypeArguments
public Class<?>[] getActualTypeArguments()
- Specified by:
getActualTypeArgumentsin classProperty
-
getAnnotations
public List<Annotation> getAnnotations()
Description copied from class:PropertyReturns the annotations that are present on this property or emptyListif there're no annotations.- Specified by:
getAnnotationsin classProperty- Returns:
- the annotations that are present on this property or empty
Listif there're no annotations
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
Description copied from class:PropertyReturns property's annotation for the given type ornullif it's not present.- Specified by:
getAnnotationin 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
nullif it's not present
-
-