Package org.yaml.snakeyaml.introspector
Class MethodProperty
- java.lang.Object
-
- org.yaml.snakeyaml.introspector.Property
-
- org.yaml.snakeyaml.introspector.GenericProperty
-
- org.yaml.snakeyaml.introspector.MethodProperty
-
- All Implemented Interfaces:
java.lang.Comparable<Property>
public class MethodProperty extends GenericProperty
A
MethodPropertyis aPropertywhich is accessed through accessor methods (setX, getX). It is possible to have aMethodPropertywhich has only setter, only getter, or both. It is not possible to have aMethodPropertywhich has neither setter nor getter.
-
-
Constructor Summary
Constructors Constructor Description MethodProperty(java.beans.PropertyDescriptor property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object object)booleanisReadable()booleanisWritable()voidset(java.lang.Object object, java.lang.Object value)-
Methods inherited from class org.yaml.snakeyaml.introspector.GenericProperty
getActualTypeArguments
-
-
-
-
Method Detail
-
set
public void set(java.lang.Object object, java.lang.Object value) throws java.lang.Exception
-
isWritable
public boolean isWritable()
- Overrides:
isWritablein classProperty
-
isReadable
public boolean isReadable()
- Overrides:
isReadablein classProperty
-
-