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


Java Cardinality类代码示例

本文整理汇总了Java中de.hshannover.f4.trust.ifmapj.metadata.Cardinality的典型用法代码示例。如果您正苦于以下问题:Java Cardinality类的具体用法?Java Cardinality怎么用?Java Cardinality使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Cardinality类属于de.hshannover.f4.trust.ifmapj.metadata包,在下文中一共展示了Cardinality类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createDeviceToPolicy

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
private static PublishElement createDeviceToPolicy(Identifier startDeviceIdentifier,
		Identifier ironGpmPolicyIdentifier) {
	LOGGER.trace(
			"Method createDeviceToPolicy(Identifier startDeviceIdentifier, Identifier ironGpmPolicyIdentifier) called");

	PublishUpdate result = Requests.createPublishUpdate();
	result.setLifeTime(MetadataLifetime.session);
	result.setIdentifier1(startDeviceIdentifier);
	result.setIdentifier2(ironGpmPolicyIdentifier);

	Document deviceToPolicyLinkMetadata = mMetadataFactory.create(DEVICE_TO_POLICY_LINK, POLICY_QUALIFIED_NAME,
			POLICY_METADATA_NS_URI, Cardinality.singleValue);
	result.addMetadata(deviceToPolicyLinkMetadata);

	return result;
}
 
开发者ID:trustathsh,项目名称:irongpm,代码行数:17,代码来源:PolicyPublisher.java

示例2: createPolicyToRule

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
private static PublishElement createPolicyToRule(Identifier ironGpmPolicyIdentifier,
		Identifier ruleStartIdentifier) {
	LOGGER.trace(
			"Method createPolicyToRule(Identifier ironGpmPolicyIdentifier, Identifier ruleStartIdentifier) called");

	PublishUpdate result = Requests.createPublishUpdate();
	result.setLifeTime(MetadataLifetime.session);
	result.setIdentifier1(ironGpmPolicyIdentifier);
	result.setIdentifier2(ruleStartIdentifier);

	Document policyToRuleLinkMetadata = mMetadataFactory.create(POLICY_TO_RULE_LINK, POLICY_QUALIFIED_NAME,
			POLICY_METADATA_NS_URI, Cardinality.singleValue);
	result.addMetadata(policyToRuleLinkMetadata);

	return result;
}
 
开发者ID:trustathsh,项目名称:irongpm,代码行数:17,代码来源:PolicyPublisher.java

示例3: createRuleToFirstPatternVertex

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
private static PublishElement createRuleToFirstPatternVertex(Identifier ruleStartIdentifier,
		Identifier firstPatternVertexIdentifier) {
	LOGGER.trace(
			"Method createRuleToFirstPatternVertex(Identifier ruleStartIdentifier, Identifier firstPatternVertexIdentifier) called");

	PublishUpdate result = Requests.createPublishUpdate();
	result.setIdentifier1(ruleStartIdentifier);
	result.setIdentifier2(firstPatternVertexIdentifier);
	result.setLifeTime(MetadataLifetime.session);

	Document ruleToFirstPatternVertexLinkMetadata =
			mMetadataFactory.create(RULE_TO_FIRST_PATTERN_VERTEX_LINK, POLICY_QUALIFIED_NAME,
					POLICY_METADATA_NS_URI, Cardinality.singleValue);
	result.addMetadata(ruleToFirstPatternVertexLinkMetadata);

	return result;
}
 
开发者ID:trustathsh,项目名称:irongpm,代码行数:18,代码来源:PolicyPublisher.java

示例4: createMetadata

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
private Document createMetadata() {
	Document doc = mMetadataFactory.create(POLICY_METADATA_LINK, POLICY_QUALIFIED_NAME,
			POLICY_METADATA_NS_URI, Cardinality.singleValue);

	return doc;
}
 
开发者ID:trustathsh,项目名称:visitmeta,代码行数:7,代码来源:EditPolicyNodeContextMenuItem.java

示例5: Create

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
public static Document Create(String elementName, String qualifiedName, String uri, Cardinality cardinality,
		Date timestamp) {
	return MetadataMock.create(elementName, qualifiedName, uri, cardinality, timestamp);
}
 
开发者ID:trustathsh,项目名称:visitmeta,代码行数:5,代码来源:IfmapjMock.java

示例6: create

import de.hshannover.f4.trust.ifmapj.metadata.Cardinality; //导入依赖的package包/类
public static Document create(String elementName, String qualifiedName, String uri, Cardinality cardinality,
		Date timestamp) {
	Document doc = IFMAP_METADATA_FACTORY.create(elementName, qualifiedName, uri, cardinality);
	setDocumentXmlAttributes(doc, timestamp);
	return doc;
}
 
开发者ID:trustathsh,项目名称:visitmeta,代码行数:7,代码来源:MetadataMock.java


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