private void register(Map bindings, EFactory factory, QName qname) { bindings.put(qname, new ComplexEMFBinding(factory, qname)); }
public Object parse(ElementInstance instance, Node node, Object value) throws Exception { SqlViewParamsExtractor.fixNodeObject(node); return super.parse(instance, node, value); } }
@Override protected void setProperty(EObject eObject, String property, Object value, boolean lax) { super.setProperty(eObject, property, value, lax); if (!lax) { if ("typeNames".equalsIgnoreCase(property)) { QueryType q = (QueryType)eObject; //turn into list of qname List qNames = new ArrayList(); for (Object s : q.getTypeNames()) { try { qNames.add(new XSQNameBinding(namespaceContext).parse(null, s)); } catch (Exception e) { throw new RuntimeException(e); } } q.getTypeNames().clear(); q.getTypeNames().addAll(qNames); } } }
void binding(Map bindings, QName name) { bindings.put(name, new ComplexEMFBinding(Wfs20Factory.eINSTANCE, name)); }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Node attr = node.getAttribute("method"); if (null != attr) { attr.setValue(MethodType.get((String)attr.getValue())); } return super.parse(instance, node, value); } }
protected void registerBindings(Map bindings) { bindings.put(OWS.AcceptVersionsType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AcceptVersionsType)); bindings.put(OWS.AddressType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AddressType)); bindings.put(OWS.GetCapabilitiesType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.GetCapabilitiesType)); bindings.put(OWS.SectionsType ,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.SectionsType)); bindings.put(OWS.AcceptFormatsType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AcceptFormatsType)); bindings.put(OWS.BoundingBoxType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.BoundingBoxType)); bindings.put(OWS.CodeType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.CodeType)); bindings.put(OWS.ContactType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ContactType)); bindings.put(OWS.ExceptionType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ExceptionType)); bindings.put(OWS.KeywordsType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.KeywordsType)); bindings.put(OWS.LanguageStringType,new SimpleContentComplexEMFBinding(Ows11Factory.eINSTANCE,OWS.LanguageStringType)); bindings.put(OWS.MetadataType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.MetadataType)); bindings.put(OWS.OnlineResourceType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.OnlineResourceType)); bindings.put(OWS.RequestMethodType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.RequestMethodType)); bindings.put(OWS.ResponsiblePartySubsetType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ResponsiblePartySubsetType)); bindings.put(OWS.TelephoneType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.TelephoneType)); bindings.put(OWS._DCP,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._DCP)); bindings.put(OWS._HTTP,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._HTTP)); bindings.put(OWS._ExceptionReport,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._ExceptionReport)); bindings.put(OWS._Operation, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._Operation)); bindings.put(OWS._OperationsMetadata, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._OperationsMetadata)); bindings.put(OWS._ServiceIdentification, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._ServiceIdentification)); bindings.put(OWS._ServiceProvider, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._ServiceProvider));
@SuppressWarnings("unchecked") protected void registerBindings(Map bindings) { bindings.put(OWS.AcceptVersionsType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AcceptVersionsType)); bindings.put(OWS.AddressType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AddressType)); bindings.put(OWS.AllowedValues, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AllowedValues, AllowedValuesType.class)); bindings.put(OWS.AnyValue,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AnyValue, AnyValueType.class)); bindings.put(OWS.GetCapabilitiesType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.GetCapabilitiesType)); bindings.put(OWS.SectionsType ,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.SectionsType)); bindings.put(OWS.AcceptFormatsType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.AcceptFormatsType)); bindings.put(OWS.BoundingBoxType,BoundingBoxTypeBinding.class); bindings.put(OWS.ContactType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ContactType)); bindings.put(OWS.DomainMetadataType,new SimpleContentComplexEMFBinding(Ows11Factory.eINSTANCE,OWS.DomainMetadataType)); bindings.put(OWS.ExceptionType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ExceptionType)); bindings.put(OWS.KeywordsType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.KeywordsType)); bindings.put(OWS.LanguageStringType,new SimpleContentComplexEMFBinding(Ows11Factory.eINSTANCE,OWS.LanguageStringType)); bindings.put(OWS.MetadataType,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.MetadataType)); bindings.put(OWS.OnlineResourceType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.OnlineResourceType)); bindings.put(OWS.RangeType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.RangeType)); bindings.put(OWS.RequestMethodType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.RequestMethodType)); bindings.put(OWS.ResponsiblePartySubsetType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.ResponsiblePartySubsetType)); bindings.put(OWS.TelephoneType, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS.TelephoneType)); bindings.put(OWS._DCP,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._DCP)); bindings.put(OWS._HTTP,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._HTTP)); bindings.put(OWS._ExceptionReport,new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._ExceptionReport)); bindings.put(OWS._Operation, new ComplexEMFBinding(Ows11Factory.eINSTANCE, OWS._Operation));
bindings.put(WPS.InputReferenceType, InputReferenceTypeBinding.class); bindings.put(WPS.ComplexDataType, ComplexDataTypeBinding.class); bindings.put(WPS.ComplexDataCombinationsType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ComplexDataCombinationsType)); bindings.put(WPS.ComplexDataCombinationType,new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ComplexDataCombinationType)); bindings.put(WPS.ComplexDataDescriptionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ComplexDataDescriptionType)); bindings.put(WPS.CRSsType,new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.CRSsType)); bindings.put(WPS.DataInputsType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.DataInputsType, DataInputsType1.class)); bindings.put(WPS.DataType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.DataType)); bindings.put(WPS.DescriptionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.DescriptionType)); bindings.put(WPS.DocumentOutputDefinitionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.DocumentOutputDefinitionType)); bindings.put(WPS.ExecuteResponse_ProcessOutputs, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ExecuteResponse_ProcessOutputs, ProcessOutputsType1.class)); bindings.put(WPS.InputDescriptionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.InputDescriptionType)); bindings.put(WPS.InputType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.InputType)); bindings.put(WPS.LanguagesType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.LanguagesType)); bindings.put(WPS.LiteralDataType, new SimpleContentComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.LiteralDataType)); bindings.put(WPS.LiteralInputType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.LiteralInputType)); bindings.put(WPS.LiteralOutputType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.LiteralOutputType)); bindings.put(WPS.OutputDataType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.OutputDataType)); bindings.put(WPS.OutputDefinitionsType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.OutputDefinitionsType)); bindings.put(WPS.OutputDefinitionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.OutputDefinitionType)); bindings.put(WPS.OutputDescriptionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.OutputDescriptionType)); bindings.put(WPS.OutputReferenceType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.OutputReferenceType)); bindings.put(WPS.ProcessBriefType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ProcessBriefType)); bindings.put(WPS.ProcessDescriptionType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ProcessDescriptionType)); bindings.put(WPS.ProcessFailedType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ProcessFailedType)); bindings.put(WPS.ProcessStartedType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ProcessStartedType)); bindings.put(WPS.RequestBaseType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.RequestBaseType)); bindings.put(WPS.ResponseBaseType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ResponseBaseType)); bindings.put(WPS.ResponseDocumentType, new ComplexEMFBinding(Wps10Factory.eINSTANCE,WPS.ResponseDocumentType));
new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.AbstractQueryType)); bindings.put( CSW.AbstractRecordType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.AbstractRecordType)); bindings.put( CSW.AcknowledgementType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.AcknowledgementType)); bindings.put( CSW.BriefRecordType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.BriefRecordType)); bindings.put( CSW.CapabilitiesType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.CapabilitiesType)); bindings.put( CSW.ConceptualSchemeType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.ConceptualSchemeType)); bindings.put( CSW.DCMIRecordType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.DCMIRecordType)); bindings.put(CSW.DeleteType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.DeleteType)); bindings.put( CSW.DescribeRecordResponseType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.DescribeRecordResponseType)); bindings.put( CSW.DescribeRecordType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.DescribeRecordType)); bindings.put( CSW.DistributedSearchType, new ComplexEMFBinding(Csw20Factory.eINSTANCE, CSW.DistributedSearchType));
bindings.put(WFS.DropStoredQuery, new ComplexEMFBinding(Wfs20Factory.eINSTANCE, WFS.DropStoredQuery, DropStoredQueryType.class)); bindings.put(WFS.Title, new SimpleContentComplexEMFBinding(Wfs20Factory.eINSTANCE, new QName(WFS.NAMESPACE, "TitleType")));