org.apache.wvcm.model
Class PropertyDescriptor

java.lang.Object
  extended by org.apache.wvcm.model.PropertyDescriptor

public class PropertyDescriptor
extends java.lang.Object

Property Descriptor

Version:
$Revision: 1.1.1.1.2.2 $

Method Summary
 java.lang.Class basetype()
          Get the basetype
 java.lang.Object basetypeInstance(Location location)
          Create instance for the base type.
 java.lang.Class collectiontype()
          Get the collectiontype
 java.util.Collection collectiontypeInstance()
          Create collection instance for multi-valued properties.
static PropertyDescriptor getInstance(PropertyNameList.AttributeName attributeName, org.jdom.Element propertyElm)
          Create an instance of this class for the specified attribute value.
static PropertyDescriptor getInstance(PropertyNameList.PropertyName propertyName)
          Get an instance of this class.
 boolean isHref()
          Return true, if the property is a href property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PropertyDescriptor getInstance(PropertyNameList.PropertyName propertyName)
Get an instance of this class.

Parameters:
propertyName - a PropertyName
Returns:
a PropertyDescriptor

getInstance

public static PropertyDescriptor getInstance(PropertyNameList.AttributeName attributeName,
                                             org.jdom.Element propertyElm)
Create an instance of this class for the specified attribute value.

Parameters:
attributeName - an AttributeName
propertyElm - a property element
Returns:
a PropertyDescriptor

basetype

public java.lang.Class basetype()
Get the basetype

Returns:
a Class

collectiontype

public java.lang.Class collectiontype()
Get the collectiontype

Returns:
a Class

isHref

public boolean isHref()
Return true, if the property is a href property.

Returns:
true, if the property is a href property.

basetypeInstance

public java.lang.Object basetypeInstance(Location location)
                                  throws WvcmException
Create instance for the base type.

Parameters:
location - the location of the resource
Returns:
a resource proxy
Throws:
WvcmException

collectiontypeInstance

public java.util.Collection collectiontypeInstance()
                                            throws WvcmException
Create collection instance for multi-valued properties.

Returns:
a Collection
Throws:
WvcmException


Copyright (c) 2003 - Apache Software Foundation