当前位置: 首页>>代码示例>>Java>>正文


Java FullQualifiedName.equals方法代码示例

本文整理汇总了Java中org.apache.olingo.commons.api.edm.FullQualifiedName.equals方法的典型用法代码示例。如果您正苦于以下问题:Java FullQualifiedName.equals方法的具体用法?Java FullQualifiedName.equals怎么用?Java FullQualifiedName.equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.olingo.commons.api.edm.FullQualifiedName的用法示例。


在下文中一共展示了FullQualifiedName.equals方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainer) throws ODataException {
	if (entityContainer == null) {
		// Assume request for null container means default container
		return new CsdlEntityContainerInfo().setContainerName(new FullQualifiedName(RdfConstants.ENTITYCONTAINERNAMESPACE,RdfConstants.ENTITYCONTAINER));
	} else {
		try {
			for (CsdlSchema schema : this.rdfEdmModelProvider.getEdmMetadata().getSchemas()) {
				CsdlEntityContainer schemaEntityContainer = schema.getEntityContainer();
				if (entityContainer.equals(schemaEntityContainer.getName())) {
					return new CsdlEntityContainerInfo().setContainerName(entityContainer);
				}
			}
		} catch (NullPointerException e) {
			log.error("NullPointerException getEntityContainerInfo " + entityContainer);
			throw new ODataException("NullPointerException getEntityContainerInfo " + entityContainer);
		}
	}
	return null;
}
 
开发者ID:peterjohnlawrence,项目名称:com.inova8.odata2sparql.v4,代码行数:21,代码来源:RdfEdmProvider.java

示例2: getEntitySet

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntitySet getEntitySet(FullQualifiedName entityContainer, String entitySetName) {

  if(entityContainer.equals(CONTAINER)){
    if(entitySetName.equals(ES_PRODUCTS_NAME)){
      CsdlEntitySet entitySet = new CsdlEntitySet();
      entitySet.setName(ES_PRODUCTS_NAME);
      entitySet.setType(ET_PRODUCT_FQN);

      return entitySet;
    }
  }

  return null;

}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:17,代码来源:DemoEdmProvider.java

示例3: getFunctionImport

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlFunctionImport getFunctionImport(final FullQualifiedName entityContainer,
    final String functionImportName)
        throws ODataException {
  if (null != entityContainer && entityContainer.equals(nameContainer)) {
    if (functionImportName.equals("FINRTInt16")) {
      return new CsdlFunctionImport()
      .setName("FINRTInt16")
      .setFunction(nameUFNRTInt16)
      .setIncludeInServiceDocument(true)
      .setEntitySet("ESTwoKeyNavOne");
    }
  } else {
    if (functionImportName.equals("FINRTInt161")) {
      return new CsdlFunctionImport()
      .setName("FINRTInt161")
      .setFunction(nameUFNRTInt161)
      .setIncludeInServiceDocument(true)
      .setEntitySet("ESTwoKeyNavOne");
    }
  }
  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:24,代码来源:MetadataDocumentJsonSerializerTest.java

示例4: getEntityType

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntityType getEntityType(FullQualifiedName entityTypeName) {

  // this method is called for one of the EntityTypes that are configured in the Schema
  if(entityTypeName.equals(ET_PRODUCT_FQN)){

    //create EntityType properties
    CsdlProperty id = new CsdlProperty().setName("ID").setType(EdmPrimitiveTypeKind.Int32.getFullQualifiedName());
    CsdlProperty name = new CsdlProperty().setName("Name").setType(EdmPrimitiveTypeKind.String.getFullQualifiedName());
    CsdlProperty  description = new CsdlProperty().setName("Description").setType(EdmPrimitiveTypeKind.String.getFullQualifiedName());

    // create CsdlPropertyRef for Key element
    CsdlPropertyRef propertyRef = new CsdlPropertyRef();
    propertyRef.setName("ID");

    // configure EntityType
    CsdlEntityType entityType = new CsdlEntityType();
    entityType.setName(ET_PRODUCT_NAME);
    entityType.setProperties(Arrays.asList(id, name , description));
    entityType.setKey(Collections.singletonList(propertyRef));

    return entityType;
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:27,代码来源:DemoEdmProvider.java

示例5: getActions

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public List<CsdlAction> getActions(final FullQualifiedName actionName) {
  if(actionName.equals(ACTION_RESET_FQN)) {
    // It is allowed to overload actions, so we have to provide a list of Actions for each action name
    final List<CsdlAction> actions = new ArrayList<CsdlAction>();
    
    // Create parameters
    final List<CsdlParameter> parameters = new ArrayList<CsdlParameter>();
    final CsdlParameter parameter = new CsdlParameter();
    parameter.setName(PARAMETER_AMOUNT);
    parameter.setType(EdmPrimitiveTypeKind.Int32.getFullQualifiedName());
    parameters.add(parameter);
    
    // Create the Csdl Action
    final CsdlAction action = new CsdlAction();
    action.setName(ACTION_RESET_FQN.getName());
    action.setParameters(parameters);
    actions.add(action);
    
    return actions;
  }
  
  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:25,代码来源:DemoEdmProvider.java

示例6: getEntitySet

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntitySet getEntitySet(FullQualifiedName entityContainer, String entitySetName) {
    if (entityContainer.equals(FullQualifiedNamesUtil.CONTAINER_FQN)) {
        return container.getEntitySet(entitySetName);
    }
    return null;
}
 
开发者ID:mat3e,项目名称:olingo-jpa,代码行数:8,代码来源:AbstractEdmProvider.java

示例7: getActionImport

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlActionImport getActionImport(FullQualifiedName entityContainer, String actionImportName) {
    if (entityContainer.equals(FullQualifiedNamesUtil.CONTAINER_FQN)) {
        return container.getActionImport(actionImportName);
    }
    return null;
}
 
开发者ID:mat3e,项目名称:olingo-jpa,代码行数:8,代码来源:AbstractEdmProvider.java

示例8: getFunctionImport

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlFunctionImport getFunctionImport(FullQualifiedName entityContainer, String functionImportName) {
    if (entityContainer.equals(FullQualifiedNamesUtil.CONTAINER_FQN)) {
        return container.getFunctionImport(functionImportName);
    }
    return null;
}
 
开发者ID:mat3e,项目名称:olingo-jpa,代码行数:8,代码来源:AbstractEdmProvider.java

示例9: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
    if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
        CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
        entityContainerInfo.setContainerName(CONTAINER);
        return entityContainerInfo;
    }
    return null;
}
 
开发者ID:Hevelian,项目名称:hevelian-olastic,代码行数:10,代码来源:TestProvider.java

示例10: getEntitySet

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public ElasticCsdlEntitySet getEntitySet(FullQualifiedName entityContainer,
        String entitySetName) throws ODataException {
    ElasticCsdlEntitySet entitySet = new ElasticCsdlEntitySet();
    entitySet.setESIndex(AUTHORS_INDEX);
    if (entityContainer.equals(CONTAINER)) {
        if (entitySetName.equals(AUTHOR_TYPE)) {
            entitySet.setESType(AUTHOR_TYPE).setName(AUTHOR_TYPE).setType(AUTHOR_FQN);
            entitySet.setNavigationPropertyBindings(Arrays.asList(
                    new CsdlNavigationPropertyBinding().setPath(ADDRESS_TYPE)
                            .setTarget(ADDRESS_TYPE),
                    new CsdlNavigationPropertyBinding().setPath(BOOK_TYPE)
                            .setTarget(BOOK_TYPE)));
            return entitySet;
        } else if (entitySetName.equals(BOOK_TYPE)) {
            entitySet.setESType(BOOK_TYPE).setName(BOOK_TYPE).setType(BOOK_FQN);
            entitySet.setNavigationPropertyBindings(Arrays.asList(
                    new CsdlNavigationPropertyBinding().setPath(CHARACTER_TYPE)
                            .setTarget(CHARACTER_TYPE),
                    new CsdlNavigationPropertyBinding().setPath(AUTHOR_TYPE)
                            .setTarget(AUTHOR_TYPE)));
            return entitySet;
        } else if (entitySetName.equals(ADDRESS_TYPE)) {
            entitySet.setESType(ADDRESS_TYPE).setName(ADDRESS_TYPE).setType(ADDRESS_FQN);
            entitySet.setNavigationPropertyBindings(
                    Arrays.asList(new CsdlNavigationPropertyBinding().setPath(AUTHOR_TYPE)
                            .setTarget(AUTHOR_TYPE)));
            return entitySet;
        } else if (entitySetName.equals(CHARACTER_TYPE)) {
            entitySet.setESType(CHARACTER_TYPE).setName(CHARACTER_TYPE).setType(CHARACTER_FQN);
            entitySet.setNavigationPropertyBindings(
                    Arrays.asList(new CsdlNavigationPropertyBinding().setPath(BOOK_TYPE)
                            .setTarget(BOOK_TYPE)));
            return entitySet;
        }
    }
    return null;
}
 
开发者ID:Hevelian,项目名称:hevelian-olastic,代码行数:39,代码来源:TestProvider.java

示例11: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public EntityContainerInfo getEntityContainerInfo(
		FullQualifiedName entityContainerName) throws ODataException {

	// This method is invoked when displaying the service document at e.g.
	// http://localhost:8080/DemoService/DemoService.svc
	if (entityContainerName == null
			|| entityContainerName.equals(CONTAINER)) {
		EntityContainerInfo entityContainerInfo = new EntityContainerInfo();
		entityContainerInfo.setContainerName(CONTAINER);
		return entityContainerInfo;
	}

	return null;
}
 
开发者ID:rohitghatol,项目名称:spring-boot-Olingo-oData,代码行数:16,代码来源:GenericEdmProvider.java

示例12: getEntityType

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntityType getEntityType(FullQualifiedName entityTypeName) {
  CsdlEntityType entityType = null;

  for (RedHxEdmEntityProvider edmProvider : EDM_ENTITY_PROVIDER_LIST) {
    if (entityTypeName.equals(edmProvider.getFqdName())) {
      entityType = edmProvider.getEntityType();

      break;
    }
  }

  return entityType;
}
 
开发者ID:RedHelixOrg,项目名称:RedHelix-1,代码行数:15,代码来源:RedHxServiceEdmProvider.java

示例13: getEnumType

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
public CsdlEnumType getEnumType(final FullQualifiedName enumTypeName) throws ODataException {
  if (enumTypeName.equals(nameENString)) {
    return new CsdlEnumType().setName("ENString").setFlags(true)
        .setUnderlyingType(EdmPrimitiveTypeKind.Int16.getFullQualifiedName())
        .setMembers(Arrays.asList(new CsdlEnumMember().setName("String1").setValue("1"),
            new CsdlEnumMember().setName("String2").setValue("2"),
            new CsdlEnumMember().setName("String3").setValue("4")));
  }

  return null;
}
 
开发者ID:RedHelixOrg,项目名称:RedHelix-1,代码行数:12,代码来源:EnumTypeProvider.java

示例14: getEnumType

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
public CsdlEnumType getEnumType(final FullQualifiedName enumTypeName) throws ODataException {
  if (enumTypeName.equals(nameENString)) {
    return new CsdlEnumType()
        .setName("ENString")
        .setFlags(true)
        .setUnderlyingType(EdmPrimitiveTypeKind.Int16.getFullQualifiedName())
        .setMembers(Arrays.asList(
            new CsdlEnumMember().setName("String1").setValue("1"),
            new CsdlEnumMember().setName("String2").setValue("2"),
            new CsdlEnumMember().setName("String3").setValue("4")));
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:15,代码来源:EnumTypeProvider.java

示例15: getEntityContainerInfo

import org.apache.olingo.commons.api.edm.FullQualifiedName; //导入方法依赖的package包/类
@Override
public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {

  // This method is invoked when displaying the service document at
  // e.g. http://localhost:8080/DemoService/DemoService.svc
  if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
    CsdlEntityContainerInfo entityContainerInfo = new CsdlEntityContainerInfo();
    entityContainerInfo.setContainerName(CONTAINER);
    return entityContainerInfo;
  }

  return null;
}
 
开发者ID:apache,项目名称:olingo-odata4,代码行数:14,代码来源:DemoEdmProvider.java


注:本文中的org.apache.olingo.commons.api.edm.FullQualifiedName.equals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。