Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2013 SAP AG Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
 
 package com.sap.core.odata.core.edm.provider;
 
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 

Author(s):
SAP AG
 
 
   private List<StringparametersList;
 
   public EdmFunctionImportImplProv(final EdmImplProv edmfinal FunctionImport functionImportfinal EdmEntityContainer edmEntityContainerthrows EdmException {
     super(edmfunctionImport.getName());
     this. = functionImport;
     this. = edmEntityContainer;
 
 
      = new HashMap<StringEdmParameter>();
   }
 
   private void buildFunctionImportParametersInternal() {
 
     if (parameters != null) {
       FunctionImportParameter functionImportParameter;
       for (Iterator<FunctionImportParameteriterator = parameters.iterator(); iterator.hasNext();) {
         functionImportParameter = iterator.next();
         this..put(functionImportParameter.getName(), functionImportParameter);
       }
     }
   }
 
   @Override
   public EdmParameter getParameter(final String namethrows EdmException {
     EdmParameter parameter = null;
     if (.containsKey(name)) {
       parameter = .get(name);
     } else {
       parameter = createParameter(name);
     }
 
     return parameter;
   }
 
   private EdmParameter createParameter(final String namethrows EdmException {
     EdmParameter edmParameter = null;
     if (.containsKey(name)) {
       FunctionImportParameter parameter = .get(name);
       edmParameter = new EdmParameterImplProv(parameter);
       .put(nameedmParameter);
     }
     return edmParameter;
   }
 
   @Override
   public List<StringgetParameterNames() throws EdmException {
     if ( == null) {
        = new ArrayList<String>();
 
       Set<StringkeySet = .keySet();
      Iterator<Stringiterator = keySet.iterator();
      while (iterator.hasNext()) {
        .add(iterator.next());
      }
    }
    return ;
  }
  public EdmEntitySet getEntitySet() throws EdmException {
  }
  public String getHttpMethod() throws EdmException {
    return .getHttpMethod();
  }
  public EdmTyped getReturnType() throws EdmException {
    final ReturnType returnType = .getReturnType();
    return new EdmTypedImplProv(.getName(), returnType.getTypeName(), returnType.getMultiplicity());
  }
    return ;
  }
  public EdmAnnotations getAnnotations() throws EdmException {
  }
  public EdmMapping getMapping() throws EdmException {
    return .getMapping();
  }
New to GrepCode? Check out our FAQ X