de.fzj.unicore.wsrflite.xmlbeans
Class ModifiableResourceProperty<T extends org.apache.xmlbeans.XmlObject,K>
java.lang.Object
de.fzj.unicore.wsrflite.ResourcePropertyBase<org.apache.xmlbeans.XmlObject,T>
de.fzj.unicore.wsrflite.xmlbeans.ResourceProperty<K>
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
checkSchema
protected final boolean checkSchema
minOccurs
protected BigInteger minOccurs
maxOccurs
protected BigInteger maxOccurs
ModifiableResourceProperty
public ModifiableResourceProperty(QName type,
WSResourceImpl parent,
boolean checkSchema)
ModifiableResourceProperty
public ModifiableResourceProperty(QName type,
WSResourceImpl parent)
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.