Class PropertySubstitute

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

public class PropertySubstitute
extends Property
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.Class<?>[] parameters  
    protected java.lang.Class<?> targetType  
  • Constructor Summary

    Constructors 
    Constructor Description
    PropertySubstitute​(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?>... params)  
    PropertySubstitute​(java.lang.String name, java.lang.Class<?> type, java.lang.String readMethod, java.lang.String writeMethod, java.lang.Class<?>... params)  
  • 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.
    java.lang.String getName()  
    java.lang.Class<?> getType()  
    boolean isReadable()  
    boolean isWritable()  
    void set​(java.lang.Object object, java.lang.Object value)  
    void setActualTypeArguments​(java.lang.Class<?>... args)  
    void setDelegate​(Property delegate)  
    void setTargetType​(java.lang.Class<?> targetType)  

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

    compareTo, equals, hashCode, toString

    Methods inherited from class java.lang.Object

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

    • targetType

      protected java.lang.Class<?> targetType
    • parameters

      protected java.lang.Class<?>[] parameters
  • Constructor Details

    • PropertySubstitute

      public PropertySubstitute​(java.lang.String name, java.lang.Class<?> type, java.lang.String readMethod, java.lang.String writeMethod, java.lang.Class<?>... params)
    • PropertySubstitute

      public PropertySubstitute​(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?>... params)
  • Method Details

    • getActualTypeArguments

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

      public void setActualTypeArguments​(java.lang.Class<?>... args)
    • set

      public void set​(java.lang.Object object, java.lang.Object value) throws java.lang.Exception
      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
    • setTargetType

      public void setTargetType​(java.lang.Class<?> targetType)
    • getName

      public java.lang.String getName()
      Overrides:
      getName in class Property
    • getType

      public java.lang.Class<?> getType()
      Overrides:
      getType in class Property
    • isReadable

      public boolean isReadable()
      Overrides:
      isReadable in class Property
    • isWritable

      public boolean isWritable()
      Overrides:
      isWritable in class Property
    • setDelegate

      public void setDelegate​(Property delegate)