org.apache.ws.resource.properties
Interface ResourcePropertyMetaData

All Known Implementing Classes:
XmlBeansResourcePropertyMetaData

public interface ResourcePropertyMetaData

Defines metadata information about a resource property.


Method Summary
 ResourceProperty create(ResourcePropertySet propSet)
          Creates a resource property of the type defined by this metadata, with the specified property set as its container.
 int getMaxOccurs()
          Returns the maximum number of values that this resource property can have.
 int getMinOccurs()
          Returns the minimum number of values that this resource property can have.
 javax.xml.namespace.QName getName()
          Returns the resource property name.
 java.lang.Class getType()
          Returns the Java element type of this property.
 boolean isAny()
          Determines if the ResourceProperty is an XSD:Any
 boolean isNillable()
          Returns if this resource property can be nillable.
 boolean isReadOnly()
          Returns whether this property is read only.
 

Method Detail

getMaxOccurs

public int getMaxOccurs()
Returns the maximum number of values that this resource property can have.

Returns:
the maximum number of values that this resource property can have. Returns Integer.MAX_VALUE if unlimited.

getMinOccurs

public int getMinOccurs()
Returns the minimum number of values that this resource property can have.

Returns:
the minimum number of values that this resource property can have.

getName

public javax.xml.namespace.QName getName()
Returns the resource property name.

Returns:
the resource property name.

isNillable

public boolean isNillable()
Returns if this resource property can be nillable.

Returns:
true if the resource property can be nillable. False otherwise.

isReadOnly

public boolean isReadOnly()
Returns whether this property is read only.

Returns:
Returns true if this property is read only. False, otherwise.

getType

public java.lang.Class getType()
Returns the Java element type of this property. When adding or setting element values the input value will be automatically converted into this type. If set to Object.class then no conversion will be done.

Returns:
Element type of this property.

create

public ResourceProperty create(ResourcePropertySet propSet)
Creates a resource property of the type defined by this metadata, with the specified property set as its container.


isAny

public boolean isAny()
Determines if the ResourceProperty is an XSD:Any



Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.