org.openrdf.elmo.dynabean
Class DynaBeanSupport
java.lang.Object
org.openrdf.elmo.dynabean.DynaBeanSupport
- All Implemented Interfaces:
- DynaBean
public class DynaBeanSupport
- extends Object
- implements DynaBean
DynaBean interface for Elmo JavaBeans. Property names can be in one of three
supported formats:
- local-name of the property that existing in an ontology in the
repository;
- prefix:local-name of the property, where the prefix is defined in the
repository;
- uri of the property.
Unless the local-name format is used and the property is either functional or
has a cardinality of one, the property type will be a java.uti.Set.
- Author:
- James Leigh
- See Also:
DynaClassSupport
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynaBeanSupport
public DynaBeanSupport(Entity elmo)
getDynaClass
public DynaClass getDynaClass()
- Specified by:
getDynaClass in interface DynaBean
get
public Object get(String property)
- Specified by:
get in interface DynaBean
set
public void set(String property,
Object value)
- Specified by:
set in interface DynaBean
get
public Object get(String property,
int index)
- Specified by:
get in interface DynaBean
set
public void set(String property,
int index,
Object value)
- Specified by:
set in interface DynaBean
get
public Object get(String property,
String key)
- Specified by:
get in interface DynaBean
set
public void set(String property,
String key,
Object value)
- Specified by:
set in interface DynaBean
contains
public boolean contains(String property,
String key)
- Specified by:
contains in interface DynaBean
remove
public void remove(String property,
String key)
- Specified by:
remove in interface DynaBean
Copyright © 2004-2008 Aduna. All Rights Reserved.