public final class TLcdWFSTransactionUpdateProperty extends Object
Constructor and Description |
---|
TLcdWFSTransactionUpdateProperty(List<TLcdDataProperty> aDataProperties,
List<Integer> aListIndices,
TLcdXMLXPathString aXPathString,
Object aValue)
Creates an update property with the given parameters.
|
TLcdWFSTransactionUpdateProperty(List<TLcdDataProperty> aDataProperties,
TLcdXMLXPathString aXPathString,
Object aValue)
Creates an update property with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getListIndices()
Returns a list of indices that matches the list returned by
getReferenceAsPropertyList() . |
List<TLcdDataProperty> |
getReferenceAsPropertyList()
Returns the reference to the value that should be updated as a list of properties.
|
TLcdXMLXPathString |
getReferenceAsXPath()
Returns the original reference that was encoded in the WFS update request.
|
Object |
getValue()
Returns the value which should update the value pointed
to by
getReferenceAsPropertyList() and getReferenceAsXPath() . |
public TLcdWFSTransactionUpdateProperty(List<TLcdDataProperty> aDataProperties, TLcdXMLXPathString aXPathString, Object aValue)
aDataProperties
- A list of TLcdDataProperty
objects that correspond to
aXPathString.aXPathString
- An XPath that points to the value to be updated with aValue.aValue
- The new value, or null to remove an existing value.public TLcdWFSTransactionUpdateProperty(List<TLcdDataProperty> aDataProperties, List<Integer> aListIndices, TLcdXMLXPathString aXPathString, Object aValue)
aPredicates
is not null, it needs to contain a valid Integer
for
each TLcdDataProperty
in aDataProperties
but the last one. The last
TLcdDataProperty
in aDataProperties
can have a matching predicate but
it is not required, as it is possible to replace the entire list at once.aDataProperties
- A list of TLcdDataProperty
objects that correspond to
aXPathString.aListIndices
- A list of Integers that matches aDataProperties in size.aXPathString
- An XPath that points to the value to be updated with aValue.aValue
- The new value, or null to remove an existing value.public List<TLcdDataProperty> getReferenceAsPropertyList()
TLcdDataProperty.isCollection()
) it should have a corresponding index in the list
returned by getListIndices()
. Otherwise the reference is undefined.
In case the reference points to a many-valued property, but does not specify an index for that
property the entire list will be replaced by the value of this
TLcdWFSTransactionUpdateProperty
.
This list corresponds to a simplified form of XPaths where each child is the direct child of
its parent node.
This list is derived from the XPath that is returned by getReferenceAsXPath
. The
list is empty in case this XPath can not be parsed.TLcdDataProperty
objects.getReferenceAsXPath()
,
getListIndices()
public List<Integer> getListIndices()
getReferenceAsPropertyList()
. This list
can be null in case no indices are defined at all. The number of elements in the list matches
the number of elements in the list returned by getReferenceAsPropertyList()
. In case no index
is defined for a property, the corresponding element in the list will be null
.
The index can be used to look up the correct element from the list of values that corresponds
to a many-valued property. An index needs to be defined for each many-valued property in the
list returned by getReferenceAsPropertyList()
but the last one.TLcdDataProperty.isCollection()
public Object getValue()
getReferenceAsPropertyList()
and getReferenceAsXPath()
.TLcdDataProperty
in the list
returned by getReferenceAsPropertyList()
, or null
if the property should be deleted.public TLcdXMLXPathString getReferenceAsXPath()
getReferenceAsPropertyList()
.getReferenceAsPropertyList()