Package nl.b3p.csw.jaxb.csw
Class UpdateType
- java.lang.Object
-
- nl.b3p.csw.jaxb.csw.UpdateType
-
public class UpdateType extends Object
Update statements may replace an entire record or only update part of a record: 1) To replace an existing record, include a new instance of the record; 2) To update selected properties of an existing record, include a set of RecordProperty elements. The scope of the update statement is determined by the Constraint element. The 'handle' is a local identifier for the action.Java class for UpdateType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="UpdateType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <any namespace='##other'/> <sequence> <element ref="{http://www.opengis.net/cat/csw/2.0.2}RecordProperty" maxOccurs="unbounded"/> <element ref="{http://www.opengis.net/cat/csw/2.0.2}Constraint"/> </sequence> </choice> </sequence> <attribute name="handle" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectanyprotected Constraintconstraintprotected Stringhandleprotected List<RecordProperty>recordProperty
-
Constructor Summary
Constructors Constructor Description UpdateType()Default no-arg constructorUpdateType(Object any, List<RecordProperty> recordProperty, Constraint constraint, String handle)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAny()Gets the value of the any property.ConstraintgetConstraint()Gets the value of the constraint property.StringgetHandle()Gets the value of the handle property.List<RecordProperty>getRecordProperty()Gets the value of the recordProperty property.voidsetAny(Object value)Sets the value of the any property.voidsetConstraint(Constraint value)Sets the value of the constraint property.voidsetHandle(String value)Sets the value of the handle property.
-
-
-
Field Detail
-
any
protected Object any
-
recordProperty
protected List<RecordProperty> recordProperty
-
constraint
protected Constraint constraint
-
handle
protected String handle
-
-
Constructor Detail
-
UpdateType
public UpdateType()
Default no-arg constructor
-
UpdateType
public UpdateType(Object any, List<RecordProperty> recordProperty, Constraint constraint, String handle)
Fully-initialising value constructor
-
-
Method Detail
-
getAny
public Object getAny()
Gets the value of the any property.- Returns:
- possible object is
Object
-
setAny
public void setAny(Object value)
Sets the value of the any property.- Parameters:
value- allowed object isObject
-
getRecordProperty
public List<RecordProperty> getRecordProperty()
Gets the value of the recordProperty property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the recordProperty property.For example, to add a new item, do as follows:
getRecordProperty().add(newItem);Objects of the following type(s) are allowed in the list
RecordProperty
-
getConstraint
public Constraint getConstraint()
Gets the value of the constraint property.- Returns:
- possible object is
Constraint
-
setConstraint
public void setConstraint(Constraint value)
Sets the value of the constraint property.- Parameters:
value- allowed object isConstraint
-
getHandle
public String getHandle()
Gets the value of the handle property.- Returns:
- possible object is
String
-
-