Class MissingProperty

java.lang.Object
org.yaml.snakeyaml.introspector.Property
org.yaml.snakeyaml.introspector.MissingProperty
All Implemented Interfaces:
java.lang.Comparable<Property>

public class MissingProperty
extends 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 
    Constructor Description
    MissingProperty​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object get​(java.lang.Object object)  
    java.lang.Class<?>[] getActualTypeArguments()  
    <A extends java.lang.annotation.Annotation>
    A
    getAnnotation​(java.lang.Class<A> annotationType)
    Returns property's annotation for the given type or null if it's not present.
    java.util.List<java.lang.annotation.Annotation> getAnnotations()
    Returns the annotations that are present on this property or empty List if there're no annotations.
    void set​(java.lang.Object object, java.lang.Object value)
    Setter does nothing.

    Methods inherited from class org.yaml.snakeyaml.introspector.Property

    compareTo, equals, getName, getType, hashCode, isReadable, isWritable, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getActualTypeArguments

      public java.lang.Class<?>[] getActualTypeArguments()
      Specified by:
      getActualTypeArguments in class Property
    • set

      public void set​(java.lang.Object object, java.lang.Object value) throws java.lang.Exception
      Setter does nothing.
      Specified by:
      set in class Property
      Throws:
      java.lang.Exception
    • get

      public java.lang.Object get​(java.lang.Object object)
      Specified by:
      get in class Property
    • getAnnotations

      public java.util.List<java.lang.annotation.Annotation> getAnnotations()
      Description copied from class: Property
      Returns the annotations that are present on this property or empty List if there're no annotations.
      Specified by:
      getAnnotations in class Property
      Returns:
      the annotations that are present on this property or empty List if there're no annotations
    • getAnnotation

      public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> annotationType)
      Description copied from class: Property
      Returns property's annotation for the given type or null if it's not present.
      Specified by:
      getAnnotation in class Property
      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