org.apache.xalan.processor.XSLTElementDef.equalsMayBeNullOrZeroLen()方法的使用及代码示例

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

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

XSLTElementDef.equalsMayBeNullOrZeroLen介绍

[英]Tell if the two string refs are equal, equality being defined as: 1) Both strings are null. 2) One string is null and the other is empty. 3) Both strings are non-null, and equal.
[中]判断两个字符串引用是否相等,相等定义为:1)两个字符串都为空。2) 一个字符串为空,另一个为空。3) 这两个字符串都是非空且相等的。

代码示例

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. if (!equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. if (!equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. /**
  2. * Tell if the namespace URI and local name match this
  3. * element.
  4. * @param uri The namespace uri, which may be null.
  5. * @param localName The local name of an element, which may be null.
  6. *
  7. * @return true if the uri and local name arguments are considered
  8. * to match the uri and local name of this element def.
  9. */
  10. private boolean QNameEquals(String uri, String localName)
  11. {
  12. return (equalsMayBeNullOrZeroLen(m_namespace, uri)
  13. && (equalsMayBeNullOrZeroLen(m_name, localName)
  14. || equalsMayBeNullOrZeroLen(m_nameAlias, localName)));
  15. }

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

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

  1. String nameDef = attrDef.getName();
  2. if (nameDef.equals("*") && (equalsMayBeNullOrZeroLen(uri, uriDef) ||
  3. (uriDef != null && uriDef.equals("*") && uri!=null && uri.length() > 0 )))
  4. else if (equalsMayBeNullOrZeroLen(uri, uriDef)
  5. && localName.equals(nameDef))
  6. if (uri.length() > 0 && !equalsMayBeNullOrZeroLen(uri, Constants.S_XSLNAMESPACEURL))

相关文章