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;
public class EdmAssociationImplProv extends EdmNamedImplProv implements EdmAssociationEdmAnnotatable {
  private Association association;
  private String namespace;
  public EdmAssociationImplProv(final EdmImplProv edmfinal Association associationfinal String namespacethrows EdmException {
    super(edmassociation.getName());
    this. = association;
    this. = namespace;
  }
  public String getNamespace() throws EdmException {
    return ;
  }
  public EdmTypeKind getKind() {
    return .;
  }
  public EdmAssociationEnd getEnd(final String rolethrows EdmException {
    if (end.getRole().equals(role)) {
      return new EdmAssociationEndImplProv(end);
    }
    end = .getEnd2();
    if (end.getRole().equals(role)) {
      return new EdmAssociationEndImplProv(end);
    }
    return null;
  }
  public EdmAnnotations getAnnotations() throws EdmException {
  }
  public EdmMultiplicity getEndMultiplicity(final String role) {
    if (.getEnd1().getRole().equals(role)) {
      return .getEnd1().getMultiplicity();
    }
    if (.getEnd2().getRole().equals(role)) {
      return .getEnd2().getMultiplicity();
    }
    return null;
  }
New to GrepCode? Check out our FAQ X