本文整理汇总了Java中net.opengis.sensorML.x101.IdentificationDocument.Identification.IdentifierList类的典型用法代码示例。如果您正苦于以下问题:Java IdentifierList类的具体用法?Java IdentifierList怎么用?Java IdentifierList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IdentifierList类属于net.opengis.sensorML.x101.IdentificationDocument.Identification包,在下文中一共展示了IdentifierList类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addIdentification
import net.opengis.sensorML.x101.IdentificationDocument.Identification.IdentifierList; //导入依赖的package包/类
private static void addIdentification(SystemType xbSystem, String name, String definition, String value) {
Identification xbIdentification = xbSystem.getIdentificationArray().length == 0 ?
xbSystem.addNewIdentification() : xbSystem.getIdentificationArray(0);
IdentifierList xbIdentifierList = xbIdentification.getIdentifierList() == null ?
xbIdentification.addNewIdentifierList() : xbIdentification.getIdentifierList();
Identifier xbIdentifier = xbIdentifierList.addNewIdentifier();
xbIdentifier.setName(name);
Term xbTerm = xbIdentifier.addNewTerm();
xbTerm.setDefinition(definition);
xbTerm.setValue(value);
}
示例2: getShortName
import net.opengis.sensorML.x101.IdentificationDocument.Identification.IdentifierList; //导入依赖的package包/类
public String getShortName(IdentifierList identifiers) {
String xpath = "$this//sml:identifier[@name='shortName']";
Identifier shortName = parseFirst(identifiers, xpath, Identifier.class);
return shortName == null ? null : shortName.getTerm().getValue();
}
示例3: getUniqueId
import net.opengis.sensorML.x101.IdentificationDocument.Identification.IdentifierList; //导入依赖的package包/类
public String getUniqueId(IdentifierList identifiers) {
// TODO use regex when xpath 2.0 is being used
String xpath = "$this//sml:identifier//sml:Term[@definition='urn:ogc:def:identifier:OGC:1.0:uniqueID']";
Term uniqueId = parseFirst(identifiers, xpath, Term.class);
return uniqueId == null ? null : uniqueId.getValue();
}