org.yaml.snakeyaml.introspector
Class MethodProperty

java.lang.Object
  extended by org.yaml.snakeyaml.introspector.Property
      extended by org.yaml.snakeyaml.introspector.GenericProperty
          extended by org.yaml.snakeyaml.introspector.MethodProperty
All Implemented Interfaces:
Comparable<Property>

public class MethodProperty
extends GenericProperty

A MethodProperty is a Property which is accessed through accessor methods (setX, getX). It is possible to have a MethodProperty which has only setter, only getter, or both. It is not possible to have a MethodProperty which has neither setter nor getter.


Constructor Summary
MethodProperty(PropertyDescriptor property)
           
 
Method Summary
 Object get(Object object)
           
 boolean isReadable()
           
 boolean isWritable()
           
 void set(Object object, Object value)
           
 
Methods inherited from class org.yaml.snakeyaml.introspector.GenericProperty
getActualTypeArguments
 
Methods inherited from class org.yaml.snakeyaml.introspector.Property
compareTo, equals, getName, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodProperty

public MethodProperty(PropertyDescriptor property)
Method Detail

set

public void set(Object object,
                Object value)
         throws Exception
Specified by:
set in class Property
Throws:
Exception

get

public Object get(Object object)
Specified by:
get in class Property

isWritable

public boolean isWritable()
Overrides:
isWritable in class Property

isReadable

public boolean isReadable()
Overrides:
isReadable in class Property


Copyright © 2008-2012. All Rights Reserved.