org.globus.wsrf.impl
Class SimpleResourcePropertyMetaData

java.lang.Object
  extended byorg.globus.wsrf.impl.SimpleResourcePropertyMetaData
All Implemented Interfaces:
ResourcePropertyMetaData

public class SimpleResourcePropertyMetaData
extends java.lang.Object
implements ResourcePropertyMetaData


Field Summary
static SimpleResourcePropertyMetaData CURRENT_TIME
           
private static org.globus.util.I18n i18n
           
protected  int maxOccurs
           
protected  int minOccurs
           
protected  javax.xml.namespace.QName name
           
protected  boolean nillable
           
protected  boolean readOnly
           
static SimpleResourcePropertyMetaData TERMINATION_TIME
           
protected  java.lang.Class type
           
protected  javax.xml.namespace.QName xmlType
           
 
Constructor Summary
SimpleResourcePropertyMetaData(javax.xml.namespace.QName name)
           
SimpleResourcePropertyMetaData(javax.xml.namespace.QName name, int minOccurs, int maxOccurs, boolean nillable, boolean readOnly)
           
SimpleResourcePropertyMetaData(javax.xml.namespace.QName name, int minOccurs, int maxOccurs, boolean nillable, java.lang.Class type, boolean readOnly)
           
SimpleResourcePropertyMetaData(javax.xml.namespace.QName name, int minOccurs, int maxOccurs, boolean nillable, java.lang.Class type, boolean readOnly, javax.xml.namespace.QName xmlType)
           
 
Method Summary
 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 ResourceProperty name.
 java.lang.Class getType()
          Returns the Java element type of this property.
 javax.xml.namespace.QName getXmlType()
           
 boolean isNillable()
          Returns if this resource property can be nillable.
 boolean isReadOnly()
          Returns whether this property is read only.
protected  void setMaxOccurs(int max)
          Sets the maximum number of values that this resource property can ever have.
protected  void setMinOccurs(int min)
          Sets the minimum number of values that this resource property can ever have.
protected  void setNillable(boolean nillable)
          Sets if this resource property can be nillable.
protected  void setReadOnly(boolean readOnly)
           
protected  void setType(java.lang.Class type)
          Sets the Java element type of this property.
protected  void setXmlType(javax.xml.namespace.QName type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERMINATION_TIME

public static final SimpleResourcePropertyMetaData TERMINATION_TIME

CURRENT_TIME

public static final SimpleResourcePropertyMetaData CURRENT_TIME

i18n

private static org.globus.util.I18n i18n

name

protected javax.xml.namespace.QName name

nillable

protected boolean nillable

minOccurs

protected int minOccurs

maxOccurs

protected int maxOccurs

type

protected java.lang.Class type

xmlType

protected javax.xml.namespace.QName xmlType

readOnly

protected boolean readOnly
Constructor Detail

SimpleResourcePropertyMetaData

public SimpleResourcePropertyMetaData(javax.xml.namespace.QName name)

SimpleResourcePropertyMetaData

public SimpleResourcePropertyMetaData(javax.xml.namespace.QName name,
                                      int minOccurs,
                                      int maxOccurs,
                                      boolean nillable,
                                      boolean readOnly)

SimpleResourcePropertyMetaData

public SimpleResourcePropertyMetaData(javax.xml.namespace.QName name,
                                      int minOccurs,
                                      int maxOccurs,
                                      boolean nillable,
                                      java.lang.Class type,
                                      boolean readOnly)

SimpleResourcePropertyMetaData

public SimpleResourcePropertyMetaData(javax.xml.namespace.QName name,
                                      int minOccurs,
                                      int maxOccurs,
                                      boolean nillable,
                                      java.lang.Class type,
                                      boolean readOnly,
                                      javax.xml.namespace.QName xmlType)
Method Detail

setXmlType

protected void setXmlType(javax.xml.namespace.QName type)

getXmlType

public javax.xml.namespace.QName getXmlType()

getName

public javax.xml.namespace.QName getName()
Description copied from interface: ResourcePropertyMetaData
Returns ResourceProperty name.

Specified by:
getName in interface ResourcePropertyMetaData
Returns:
the resource property name.

isNillable

public boolean isNillable()
Description copied from interface: ResourcePropertyMetaData
Returns if this resource property can be nillable.

Specified by:
isNillable in interface ResourcePropertyMetaData
Returns:
true if the resource property can be nillable. False otherwise.

setNillable

protected void setNillable(boolean nillable)
Sets if this resource property can be nillable.

Parameters:
nillable - the nillable property.

getMinOccurs

public int getMinOccurs()
Description copied from interface: ResourcePropertyMetaData
Returns the minimum number of values that this resource property can have.

Specified by:
getMinOccurs in interface ResourcePropertyMetaData
Returns:
the minimum number of values that this resource property can have.

setMinOccurs

protected void setMinOccurs(int min)
Sets the minimum number of values that this resource property can ever have.

Parameters:
min - the minimum number of values allowed in this resource property.

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: ResourcePropertyMetaData
Returns the maximum number of values that this resource property can have.

Specified by:
getMaxOccurs in interface ResourcePropertyMetaData
Returns:
the maximum number of values that this resource property can have. Returns Integer.MAX_VALUE if unlimited.

setMaxOccurs

protected void setMaxOccurs(int max)
Sets the maximum number of values that this resource property can ever have.

Parameters:
max - the maximum number of values allowed in this resource property.

setType

protected void setType(java.lang.Class type)
Sets 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. This operation is optional. If setting the element type is not supported it should throw UnsupportedOperationException.

Parameters:
type - Element type of this property.

getType

public java.lang.Class getType()
Description copied from interface: ResourcePropertyMetaData
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.

Specified by:
getType in interface ResourcePropertyMetaData
Returns:
Element type of this property.

setReadOnly

protected void setReadOnly(boolean readOnly)

isReadOnly

public boolean isReadOnly()
Description copied from interface: ResourcePropertyMetaData
Returns whether this property is read only.

Specified by:
isReadOnly in interface ResourcePropertyMetaData
Returns:
Returns true if this property is read only. False, otherwise.