org.yaml.snakeyaml.introspector
Class Property

java.lang.Object
  extended by org.yaml.snakeyaml.introspector.Property
All Implemented Interfaces:
Comparable<Property>
Direct Known Subclasses:
GenericProperty, MissingProperty

public abstract class Property
extends Object
implements Comparable<Property>

A Property represents a single member variable of a class, possibly including its accessor methods (getX, setX). The name stored in this class is the actual name of the property as given for the class, not an alias.

Objects of this class have a total ordering which defaults to ordering based on the name of the property.


Constructor Summary
Property(String name, Class<?> type)
           
 
Method Summary
 int compareTo(Property o)
           
 boolean equals(Object other)
           
abstract  Object get(Object object)
           
abstract  Class<?>[] getActualTypeArguments()
           
 String getName()
           
 Class<?> getType()
           
 int hashCode()
           
 boolean isReadable()
           
 boolean isWritable()
           
abstract  void set(Object object, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(String name,
                Class<?> type)
Method Detail

getType

public Class<?> getType()

getActualTypeArguments

public abstract Class<?>[] getActualTypeArguments()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Property o)
Specified by:
compareTo in interface Comparable<Property>

isWritable

public boolean isWritable()

isReadable

public boolean isReadable()

set

public abstract void set(Object object,
                         Object value)
                  throws Exception
Throws:
Exception

get

public abstract Object get(Object object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2008-2012. All Rights Reserved.