001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id: UpdateElementType.java 7522 2007-09-12 22:00:10Z saul.farber $
006: */package net.opengis.wfs;
007:
008: import java.net.URI;
009:
010: import javax.xml.namespace.QName;
011:
012: import org.eclipse.emf.common.util.EList;
013:
014: import org.eclipse.emf.ecore.EObject;
015: import org.opengis.filter.Filter;
016:
017: /**
018: * <!-- begin-user-doc -->
019: * A representation of the model object '<em><b>Update Element Type</b></em>'.
020: * <!-- end-user-doc -->
021: *
022: * <p>
023: * The following features are supported:
024: * <ul>
025: * <li>{@link net.opengis.wfs.UpdateElementType#getProperty <em>Property</em>}</li>
026: * <li>{@link net.opengis.wfs.UpdateElementType#getFilter <em>Filter</em>}</li>
027: * <li>{@link net.opengis.wfs.UpdateElementType#getHandle <em>Handle</em>}</li>
028: * <li>{@link net.opengis.wfs.UpdateElementType#getInputFormat <em>Input Format</em>}</li>
029: * <li>{@link net.opengis.wfs.UpdateElementType#getSrsName <em>Srs Name</em>}</li>
030: * <li>{@link net.opengis.wfs.UpdateElementType#getTypeName <em>Type Name</em>}</li>
031: * </ul>
032: * </p>
033: *
034: * @see net.opengis.wfs.WfsPackage#getUpdateElementType()
035: * @model extendedMetaData="name='UpdateElementType' kind='elementOnly'"
036: * @generated
037: */
038: public interface UpdateElementType extends EObject {
039: /**
040: * Returns the value of the '<em><b>Property</b></em>' containment reference list.
041: * The list contents are of type {@link net.opengis.wfs.PropertyType}.
042: * <!-- begin-user-doc -->
043: * <!-- end-user-doc -->
044: * <!-- begin-model-doc -->
045: *
046: * Changing or updating a feature instance means that
047: * the current value of one or more properties of
048: * the feature are replaced with new values. The Update
049: * element contains one or more Property elements. A
050: * Property element contains the name or a feature property
051: * who's value is to be changed and the replacement value
052: * for that property.
053: * <!-- end-model-doc -->
054: * @return the value of the '<em>Property</em>' containment reference list.
055: * @see net.opengis.wfs.WfsPackage#getUpdateElementType_Property()
056: * @model type="net.opengis.wfs.PropertyType" containment="true" required="true"
057: * extendedMetaData="kind='element' name='Property' namespace='##targetNamespace'"
058: * @generated
059: */
060: EList getProperty();
061:
062: /**
063: * Returns the value of the '<em><b>Filter</b></em>' attribute.
064: * <!-- begin-user-doc -->
065: * <!-- end-user-doc -->
066: * <!-- begin-model-doc -->
067: *
068: * The Filter element is used to constrain the scope
069: * of the update operation to those features identified
070: * by the filter. Feature instances can be specified
071: * explicitly and individually using the identifier of
072: * each feature instance OR a set of features to be
073: * operated on can be identified by specifying spatial
074: * and non-spatial constraints in the filter.
075: * If no filter is specified then update operation
076: * applies to all feature instances.
077: *
078: * <!-- end-model-doc -->
079: * @return the value of the '<em>Filter</em>' attribute.
080: * @see #setFilter(Object)
081: * @see net.opengis.wfs.WFSPackage#getUpdateElementType_Filter()
082: * @model
083: */
084: Filter getFilter();
085:
086: /**
087: * Sets the value of the '{@link net.opengis.wfs.UpdateElementType#getFilter <em>Filter</em>}' attribute.
088: * <!-- begin-user-doc -->
089: * <!-- end-user-doc -->
090: * @param value the new value of the '<em>Filter</em>' attribute.
091: * @see #getFilter()
092: * @generated
093: */
094: void setFilter(Filter value);
095:
096: /**
097: * Returns the value of the '<em><b>Handle</b></em>' attribute.
098: * <!-- begin-user-doc -->
099: * <!-- end-user-doc -->
100: * <!-- begin-model-doc -->
101: *
102: * The handle attribute allows a client application
103: * to assign a client-generated request identifier
104: * to an Insert action. The handle is included to
105: * facilitate error reporting. If an Update action
106: * in a Transaction request fails, then a WFS may
107: * include the handle in an exception report to localize
108: * the error. If no handle is included of the offending
109: * Insert element then a WFS may employee other means of
110: * localizing the error (e.g. line number).
111: * <!-- end-model-doc -->
112: * @return the value of the '<em>Handle</em>' attribute.
113: * @see #setHandle(String)
114: * @see net.opengis.wfs.WfsPackage#getUpdateElementType_Handle()
115: * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
116: * extendedMetaData="kind='attribute' name='handle'"
117: * @generated
118: */
119: String getHandle();
120:
121: /**
122: * Sets the value of the '{@link net.opengis.wfs.UpdateElementType#getHandle <em>Handle</em>}' attribute.
123: * <!-- begin-user-doc -->
124: * <!-- end-user-doc -->
125: * @param value the new value of the '<em>Handle</em>' attribute.
126: * @see #getHandle()
127: * @generated
128: */
129: void setHandle(String value);
130:
131: /**
132: * Returns the value of the '<em><b>Input Format</b></em>' attribute.
133: * The default value is <code>"x-application/gml:3"</code>.
134: * <!-- begin-user-doc -->
135: * <!-- end-user-doc -->
136: * <!-- begin-model-doc -->
137: *
138: * This inputFormat attribute is used to indicate
139: * the format used to encode a feature instance in
140: * an Insert element. The default value of
141: * 'text/xml; subtype=gml/3.1.1' is used to indicate
142: * that feature encoding is GML3. Another example
143: * might be 'text/xml; subtype=gml/2.1.2' indicating
144: * that the feature us encoded in GML2. A WFS must
145: * declare in the capabilities document, using a
146: * Parameter element, which version of GML it supports.
147: * <!-- end-model-doc -->
148: * @return the value of the '<em>Input Format</em>' attribute.
149: * @see #isSetInputFormat()
150: * @see #unsetInputFormat()
151: * @see #setInputFormat(String)
152: * @see net.opengis.wfs.WfsPackage#getUpdateElementType_InputFormat()
153: * @model default="x-application/gml:3" unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
154: * extendedMetaData="kind='attribute' name='inputFormat'"
155: * @generated
156: */
157: String getInputFormat();
158:
159: /**
160: * Sets the value of the '{@link net.opengis.wfs.UpdateElementType#getInputFormat <em>Input Format</em>}' attribute.
161: * <!-- begin-user-doc -->
162: * <!-- end-user-doc -->
163: * @param value the new value of the '<em>Input Format</em>' attribute.
164: * @see #isSetInputFormat()
165: * @see #unsetInputFormat()
166: * @see #getInputFormat()
167: * @generated
168: */
169: void setInputFormat(String value);
170:
171: /**
172: * Unsets the value of the '{@link net.opengis.wfs.UpdateElementType#getInputFormat <em>Input Format</em>}' attribute.
173: * <!-- begin-user-doc -->
174: * <!-- end-user-doc -->
175: * @see #isSetInputFormat()
176: * @see #getInputFormat()
177: * @see #setInputFormat(String)
178: * @generated
179: */
180: void unsetInputFormat();
181:
182: /**
183: * Returns whether the value of the '{@link net.opengis.wfs.UpdateElementType#getInputFormat <em>Input Format</em>}' attribute is set.
184: * <!-- begin-user-doc -->
185: * <!-- end-user-doc -->
186: * @return whether the value of the '<em>Input Format</em>' attribute is set.
187: * @see #unsetInputFormat()
188: * @see #getInputFormat()
189: * @see #setInputFormat(String)
190: * @generated
191: */
192: boolean isSetInputFormat();
193:
194: /**
195: * Returns the value of the '<em><b>Srs Name</b></em>' attribute.
196: * <!-- begin-user-doc -->
197: * <!-- end-user-doc -->
198: * <!-- begin-model-doc -->
199: *
200: * DO WE NEED THIS HERE?
201: *
202: * <!-- end-model-doc -->
203: * @return the value of the '<em>Srs Name</em>' attribute.
204: * @see #setSrsName(String)
205: * @see net.opengis.wfs.WFSPackage#getUpdateElementType_SrsName()
206: * @model
207: */
208: URI getSrsName();
209:
210: /**
211: * Sets the value of the '{@link net.opengis.wfs.UpdateElementType#getSrsName <em>Srs Name</em>}' attribute.
212: * <!-- begin-user-doc -->
213: * <!-- end-user-doc -->
214: * @param value the new value of the '<em>Srs Name</em>' attribute.
215: * @see #getSrsName()
216: * @generated
217: */
218: void setSrsName(URI value);
219:
220: /**
221: * Returns the value of the '<em><b>Type Name</b></em>' attribute.
222: * <!-- begin-user-doc -->
223: * <!-- end-user-doc -->
224: * <!-- begin-model-doc -->
225: *
226: * The value of the typeName attribute is the name
227: * of the feature type to be updated. The name
228: * specified must be a valid type that belongs to
229: * the feature content as defined by the GML
230: * Application Schema.
231: *
232: * <!-- end-model-doc -->
233: * @return the value of the '<em>Type Name</em>' attribute.
234: * @see #setTypeName(Object)
235: * @see net.opengis.wfs.WFSPackage#getUpdateElementType_TypeName()
236: * @model
237: */
238: QName getTypeName();
239:
240: /**
241: * Sets the value of the '{@link net.opengis.wfs.UpdateElementType#getTypeName <em>Type Name</em>}' attribute.
242: * <!-- begin-user-doc -->
243: * <!-- end-user-doc -->
244: * @param value the new value of the '<em>Type Name</em>' attribute.
245: * @see #getTypeName()
246: * @generated
247: */
248: void setTypeName(QName value);
249:
250: } // UpdateElementType
|