本文整理了Java中org.apache.sis.internal.util.Utilities.appendUnicodeIdentifier()
方法的一些代码示例,展示了Utilities.appendUnicodeIdentifier()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.appendUnicodeIdentifier()
方法的具体详情如下:
包路径:org.apache.sis.internal.util.Utilities
类名称:Utilities
方法名:appendUnicodeIdentifier
[英]Appends to the given buffer only the characters that are valid for a Unicode identifier. The given separator character is append before the given text only if the buffer is not empty and at least one text character is valid.
Relationship with gml:id
This method may be invoked for building gml:id values. Strictly speaking this is not appropriate since the xs:ID type defines valid identifiers as containing only letters, digits, underscores, hyphens, and periods. This differ from Unicode identifier in two ways:
代码示例来源:origin: org.apache.sis.core/sis-referencing
if (appendUnicodeIdentifier(id, '-', identifier.getCodeSpace(), "", true) | // Really |, not ||
appendUnicodeIdentifier(id, '-', NameMeaning.toObjectType(object.getClass()), "", false) |
appendUnicodeIdentifier(id, '-', identifier.getCode(), "", true))
if (isUnnamed(name) || !appendUnicodeIdentifier(id, '-', name.getCode(), "", false)) {
if (alias != null) {
for (final GenericName a : alias) {
if (appendUnicodeIdentifier(id, '-', a.toString(), "", false)) {
break;
代码示例来源:origin: org.apache.sis.core/sis-metadata
if (id != null) {
final StringBuilder buffer = new StringBuilder();
if (!Utilities.appendUnicodeIdentifier(buffer, (char) 0, id, ":-", false)) {
return null;
代码示例来源:origin: apache/sis
if (id != null) {
final StringBuilder buffer = new StringBuilder();
if (!Utilities.appendUnicodeIdentifier(buffer, (char) 0, id, ":-", false)) {
return null;
代码示例来源:origin: apache/sis
if (appendUnicodeIdentifier(id, '-', identifier.getCodeSpace(), "", true) | // Really |, not ||
appendUnicodeIdentifier(id, '-', NameMeaning.toObjectType(object.getClass()), "", false) |
appendUnicodeIdentifier(id, '-', identifier.getCode(), "", true))
if (isUnnamed(name) || !appendUnicodeIdentifier(id, '-', name.getCode(), "", false)) {
if (alias != null) {
for (final GenericName a : alias) {
if (appendUnicodeIdentifier(id, '-', a.toString(), "", false)) {
break;
代码示例来源:origin: org.apache.sis.core/sis-metadata
default: break loop;
if (!Utilities.appendUnicodeIdentifier(buffer.append(DefinitionURI.SEPARATOR), '\u0000', part, ".-", false)) {
代码示例来源:origin: apache/sis
default: break loop;
if (!Utilities.appendUnicodeIdentifier(buffer.append(DefinitionURI.SEPARATOR), '\u0000', part, ".-", false)) {
内容来源于网络,如有侵权,请联系作者删除!