/** * Returns the '<em><b>Element Set Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ElementSetType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ElementSetType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Element Set Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ElementSetType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ElementSetType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Result Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ResultType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
private ElementSetType getElementSet(QueryType query) { if(query.getElementName() != null && query.getElementName().size() > 0) { return ElementSetType.FULL; } ElementSetType elementSet = query.getElementSetName() != null ? query.getElementSetName().getValue() : null; if(elementSet == null) { // the default is "summary" elementSet = ElementSetType.SUMMARY; } return elementSet; }
public Object parse(ElementInstance instance, Node node, Object value) throws Exception { ElementSetNameType result = (ElementSetNameType) createEObject(value); result.setValue(ElementSetType.get((String) value)); Node typeNames = node.getAttribute("typeNames"); if (typeNames != null) { result.setTypeNames((List<QName>) typeNames.getValue()); } return result; } }
XSDParticle previous = null; String previousName = null; for (SimpleLiteral sl : record.getDCElement()) { XSDSchema dctSchema = DCT.getInstance().getSchema(); XSDElementDeclaration declaration = dctSchema.resolveElementDeclaration(sl.getName()); if (declaration.getTypeDefinition() == null) { XSDSchema dcSchema = DC.getInstance().getSchema(); declaration = dcSchema.resolveElementDeclaration(sl.getName()); if (previousName != null && previousName.equals(sl.getName())) { particle = previous; } else { particle = buildParticle(declaration); previous = particle; previousName = sl.getName(); if (record.getBoundingBox() != null && record.getBoundingBox().size() > 0) { for (Object box : record.getBoundingBox()) { XSDElementDeclaration bboxElement; if (box instanceof WGS84BoundingBoxType) {
private ElementSetType getElementSetName(GetRecordByIdType request) { ElementSetType elementSet = request.getElementSetName() != null ? request.getElementSetName().getValue() : null; if (elementSet == null) { // the default is "summary" elementSet = ElementSetType.SUMMARY; } return elementSet; }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { SimpleLiteral sl = Csw20Factory.eINSTANCE.createSimpleLiteral(); sl.setName(instance.getName()); sl.setValue(value); Node scheme = node.getAttribute("scheme"); if (scheme != null) { sl.setScheme((URI) scheme.getValue()); } return sl; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SimpleLiteral getType() { if (type != null && type.eIsProxy()) { InternalEObject oldType = (InternalEObject)type; type = (SimpleLiteral)eResolveProxy(oldType); if (type != oldType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Csw20Package.SUMMARY_RECORD_TYPE__TYPE, oldType, type)); } } return type; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SimpleLiteral getType() { if (type != null && type.eIsProxy()) { InternalEObject oldType = (InternalEObject)type; type = (SimpleLiteral)eResolveProxy(oldType); if (type != oldType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Csw20Package.BRIEF_RECORD_TYPE__TYPE, oldType, type)); } } return type; }
private String getRequestedSchema(Operation operation) { Object request = operation.getParameters()[0]; if (request instanceof GetRecordByIdType) { GetRecordByIdType gr = (GetRecordByIdType) request; return gr.getOutputSchema(); } else if (request instanceof GetRecordsType) { GetRecordsType gr = (GetRecordsType) request; return gr.getOutputSchema(); } else { throw new IllegalArgumentException("Unsupported request object type: " + request); } }
private ResultType getResultType(RequestBaseType request) { if (request instanceof GetRecordsType) { return ((GetRecordsType) request).getResultType(); } else { return ResultType.RESULTS; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ElementSetType createElementSetTypeFromString(EDataType eDataType, String initialValue) { ElementSetType result = ElementSetType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
private GetRecordsType getCSWRequest() { GetRecordsType request = Csw20Factory.eINSTANCE.createGetRecordsType(); request.setBaseUrl("http://localhost:8080/geoserver/csw"); return request; }
/** * Returns the '<em><b>Result Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ResultType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ResultType createResultTypeFromString(EDataType eDataType, String initialValue) { ResultType result = ResultType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
private ElementSetType getElementSet(QueryType query) { if (query.getElementName() != null && query.getElementName().size() > 0) { return ElementSetType.FULL; } ElementSetType elementSet = query.getElementSetName() != null ? query.getElementSetName().getValue() : null; if (elementSet == null) { // the default is "summary" elementSet = ElementSetType.SUMMARY; } return elementSet; }
private ElementSetType getElementSetName(GetRecordByIdType request) { ElementSetType elementSet = request.getElementSetName() != null ? request .getElementSetName().getValue() : null; if (elementSet == null) { // the default is "summary" elementSet = ElementSetType.SUMMARY; } return elementSet; }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { SimpleLiteral sl = Csw20Factory.eINSTANCE.createSimpleLiteral(); sl.setName(instance.getName()); sl.setValue(value); Node scheme = node.getAttribute("scheme"); if (scheme != null) { sl.setScheme((URI) scheme.getValue()); } return sl; }
private ResultType getResultType(RequestBaseType request) { if(request instanceof GetRecordsType) { return ((GetRecordsType) request).getResultType(); } else { return ResultType.RESULTS; } }