Joda System API

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

Nested Class Summary
 
Nested classes inherited from class org.joda.property.Property
Property.Internal
 
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.type.DataProperty
toDataString
 
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
 
Methods inherited from interface org.joda.property.ModelElement
getAttribute, getAttributeCount, getAttributeMap, setAttribute
 

Method Detail

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

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.