org.apache.xml.serializer.utils.XML11Char.isXML11ValidName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中org.apache.xml.serializer.utils.XML11Char.isXML11ValidName()方法的一些代码示例,展示了XML11Char.isXML11ValidName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XML11Char.isXML11ValidName()方法的具体详情如下:
包路径:org.apache.xml.serializer.utils.XML11Char
类名称:XML11Char
方法名:isXML11ValidName

XML11Char.isXML11ValidName介绍

[英]Check to see if a string is a valid Name according to [5] in the XML 1.1 Recommendation
[中]根据XML 1.1建议中的[5],检查字符串是否为有效名称

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: xalan/serializer

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

  1. /**
  2. * Taken from org.apache.xerces.dom.CoreDocumentImpl
  3. *
  4. * Check the string against XML's definition of acceptable names for
  5. * elements and attributes and so on using the XMLCharacterProperties
  6. * utility class
  7. */
  8. protected boolean isXMLName(String s, boolean xml11Version) {
  9. if (s == null) {
  10. return false;
  11. }
  12. if (!xml11Version)
  13. return XMLChar.isValidName(s);
  14. else
  15. return XML11Char.isXML11ValidName(s);
  16. }

相关文章