de.fzj.unicore.wsrflite.xmlbeans
Class ResourceProperty<T>

java.lang.Object
  extended by de.fzj.unicore.wsrflite.ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>
      extended by de.fzj.unicore.wsrflite.xmlbeans.ResourceProperty<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CurrentTimeProperty, EntryResourceProperty, ImmutableResourceProperty, ModifiableResourceProperty, MonitorEntriesRP, ServiceEntriesRP, TerminationTimeProperty

public abstract class ResourceProperty<T>
extends ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>

for xmlbeans based rp's

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.ResourcePropertyBase
parentWSResource
 
Constructor Summary
ResourceProperty()
           
ResourceProperty(WSRFInstance parent)
           
 
Method Summary
 int getNumberOfElements()
          returns the current number of XML elements contained in this resource property
NOTE: subclasses should provide an optimized implementation for this method
abstract  org.apache.xmlbeans.XmlObject[] getXml()
          get the XML representation of this property.
 List<org.apache.xmlbeans.XmlObject> getXml(int offset, int length)
          returns a subset of the resource property xml.
 ResourceProperty<T> update()
          update the property
 
Methods inherited from class de.fzj.unicore.wsrflite.ResourcePropertyBase
getProperty, isReadOnly, setProperty, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceProperty

public ResourceProperty()

ResourceProperty

public ResourceProperty(WSRFInstance parent)
Method Detail

getXml

public abstract org.apache.xmlbeans.XmlObject[] getXml()
Description copied from class: ResourcePropertyBase
get the XML representation of this property.

Specified by:
getXml in class ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>
Returns:
an array of XmlObject

getXml

public List<org.apache.xmlbeans.XmlObject> getXml(int offset,
                                                  int length)
                                           throws IndexOutOfBoundsException
returns a subset of the resource property xml.
NOTE: subclasses should provide an optimized implementation for this method

Parameters:
offset - - the offset to start from
length - - the (max) number of results to return
Returns:
Throws:
IndexOutOfBoundsException - - if the offset is larger than the number of available results

getNumberOfElements

public int getNumberOfElements()
returns the current number of XML elements contained in this resource property
NOTE: subclasses should provide an optimized implementation for this method


update

public ResourceProperty<T> update()
                           throws Exception
Description copied from class: ResourcePropertyBase
update the property

Overrides:
update in class ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>
Returns:
the updated property (i.e. this)
Throws:
Exception


Copyright © 2010. All Rights Reserved.