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.ep.aggregator;
Collects informations about a property of an entity.

Author(s):
SAP AG
public class EntityPropertyInfo {
  private String name;
  private EdmType type;
  private EdmFacets facets;
  private String mimeType;
  private EdmMapping mapping;
  EntityPropertyInfo(final String namefinal EdmType typefinal EdmFacets facetsfinal EdmCustomizableFeedMappings customizableFeedMappingfinal String mimeTypefinal EdmMapping mapping) {
    this. = name;
    this. = type;
    this. = facets;
     = customizableFeedMapping;
    this. = mimeType;
    this. = mapping;
  }
  static EntityPropertyInfo create(final EdmProperty propertythrows EdmException {
    return new EntityPropertyInfo(
        property.getName(),
        property.getType(),
        property.getFacets(),
        property.getCustomizableFeedMappings(),
        property.getMimeType(),
        property.getMapping());
  }
  public boolean isMandatory() {
    if ( == null) {
      return false;
    } else if (.isNullable() == null) {
      return false;
    } else {
      return !.isNullable();
    }
  }
  public boolean isComplex() {
    return false;
  }
  public String getName() {
    return ;
  }
  public EdmType getType() {
    return ;
  }
  public EdmFacets getFacets() {
    return ;
  }
    return ;
  }
  public String getMimeType() {
    return ;
  }
  public EdmMapping getMapping() {
    return ;
  }
  public String toString() {
    return ;
  }
New to GrepCode? Check out our FAQ X