de.fzj.unicore.wsrflite.xmlbeans
Class ModifiableResourceProperty<T extends org.apache.xmlbeans.XmlObject,K>

java.lang.Object
  extended by de.fzj.unicore.wsrflite.ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>
      extended by de.fzj.unicore.wsrflite.xmlbeans.ResourceProperty<K>
          extended by de.fzj.unicore.wsrflite.xmlbeans.ModifiableResourceProperty<T,K>
All Implemented Interfaces:
Serializable

public class ModifiableResourceProperty<T extends org.apache.xmlbeans.XmlObject,K>
extends ResourceProperty<K>

an RP that can be edited through standard WSRF functions

Author:
schuller
See Also:
ResourceProperty, ResourcePropertyBase, Serialized Form

Field Summary
protected  boolean checkSchema
           
protected static org.apache.log4j.Logger logger
           
protected  BigInteger maxOccurs
           
protected  BigInteger minOccurs
           
 
Fields inherited from class de.fzj.unicore.wsrflite.ResourcePropertyBase
parentWSResource
 
Constructor Summary
ModifiableResourceProperty(QName type, WSResourceImpl parent)
           
ModifiableResourceProperty(QName type, WSResourceImpl parent, boolean checkSchema)
           
 
Method Summary
 boolean checkPermissions(int permissions)
          check whether an insert/update/delete operation is allowed
protected  boolean checkSchema(int cardinality)
          checks whether the given element cardinality is allowed by the schema
 void delete()
           
 T[] getXml()
          get the XML representation of this property.
 void insert(T o)
           
 void update(T[] o)
           
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.ResourceProperty
getNumberOfElements, getXml, update
 
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
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

checkSchema

protected final boolean checkSchema

minOccurs

protected BigInteger minOccurs

maxOccurs

protected BigInteger maxOccurs
Constructor Detail

ModifiableResourceProperty

public ModifiableResourceProperty(QName type,
                                  WSResourceImpl parent,
                                  boolean checkSchema)

ModifiableResourceProperty

public ModifiableResourceProperty(QName type,
                                  WSResourceImpl parent)
Method Detail

getXml

public T[] getXml()
Description copied from class: ResourcePropertyBase
get the XML representation of this property.

Specified by:
getXml in class ResourceProperty<K>
Returns:
an array of XmlObject

insert

public void insert(T o)
            throws InvalidModificationException
Throws:
InvalidModificationException

update

public void update(T[] o)
            throws InvalidModificationException
Throws:
InvalidModificationException

delete

public void delete()
            throws InvalidModificationException
Throws:
InvalidModificationException

checkSchema

protected boolean checkSchema(int cardinality)
                       throws InvalidModificationException
checks whether the given element cardinality is allowed by the schema

Parameters:
cardinality -
Returns:
Throws:
InvalidModificationException

checkPermissions

public boolean checkPermissions(int permissions)
check whether an insert/update/delete operation is allowed

Parameters:
permissions -
Returns:


Copyright © 2010. All Rights Reserved.