org.joda.property.type
Interface ClassProperty
- All Superinterfaces:
- DataProperty, ModelElement, Property, java.io.Serializable
- All Known Implementing Classes:
- DefaultClassProperty
- public interface ClassProperty
- extends DataProperty
Interface for Class properties.
- Author:
- Stephen Colebourne
Method Summary |
java.lang.Class |
get()
Get the property's value as a Class. |
java.lang.Object |
newInstance()
Create a new instance of the class. |
java.lang.Class |
toClass()
Get the property's value as a Class. |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
get
public java.lang.Class get()
- Get the property's value as a Class.
- Returns:
- the property value as a Class
toClass
public java.lang.Class toClass()
- Get the property's value as a Class.
- Returns:
- the property value as a Class
newInstance
public java.lang.Object newInstance()
- Create a new instance of the class.
- Returns:
- a new instance of the class
- Throws:
java.lang.IllegalStateException
- if an error occurs
Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.