本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}