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:
- 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.
MethodProperty
public MethodProperty(PropertyDescriptor property)
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.