本文整理了Java中org.jdom2.Attribute.getLongValue()
方法的一些代码示例,展示了Attribute.getLongValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.getLongValue()
方法的具体详情如下:
包路径:org.jdom2.Attribute
类名称:Attribute
方法名:getLongValue
[英]This gets the value of the attribute, in long
form, and if no conversion can occur, throws a DataConversionException
[中]它以long
的形式获取属性的值,如果无法进行转换,则抛出DataConversionException
代码示例来源:origin: io.wcm/io.wcm.handler.commons
/**
* Gets attribute value as long.
* @param attributeName Attribute name
* @return Attribute value as long or 0 if not set.
*/
public final long getAttributeValueAsLong(String attributeName) {
Attribute attribute = getAttribute(attributeName);
if (attribute == null) {
return 0;
}
else {
try {
return attribute.getLongValue();
}
catch (DataConversionException ex) {
return 0;
}
}
}
代码示例来源:origin: edu.ucar/netcdf
try
lastModLimit = lastModLimitAtt.getLongValue();
代码示例来源:origin: edu.ucar/cdm
long lastModLimit;
try {
lastModLimit = lastModLimitAtt.getLongValue();
} catch (DataConversionException e) {
String tmpMsg = "readDatasetScanFilter(): bad lastModifedLimit value <" + lastModLimitAtt.getValue() + ">, couldn't parse into long: " + e.getMessage();
代码示例来源:origin: Unidata/thredds
long lastModLimit;
try {
lastModLimit = lastModLimitAtt.getLongValue();
} catch (DataConversionException e) {
String tmpMsg = "readDatasetScanFilter(): bad lastModifedLimit value <" + lastModLimitAtt.getValue() + ">, couldn't parse into long: " + e.getMessage();
代码示例来源:origin: pwm-project/pwm
final long timeStamp = hrElement.getAttribute( XML_ATTR_TIMESTAMP ).getLongValue();
final String transactionCode = hrElement.getAttribute( XML_ATTR_TRANSACTION ).getValue();
final AuditEvent eventCode = AuditEvent.forKey( transactionCode );
代码示例来源:origin: org.opencadc/caom2
if (rc.docVersion == 20)
Long id = new Long(aid.getLongValue());
uuid = new UUID(0L, id);
内容来源于网络,如有侵权,请联系作者删除!