Packages

object Names

Names, as per the XML specification. See for example https://www.w3.org/TR/REC-xml/#NT-Name.

Only characters in the Unicode BMP (max. ￿) are considered. So the range from #x10000 to #xEFFFF is not recognized as valid name characters in this implementation.

The functions of this class must be fast, because they are typically called very many times during parsing of XPath expressions.

Classes like NCName lean on this object. An NCName is an XML name without colon.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Names
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canBeName(s: String): Boolean

    Returns true if the given string is a valid XML name.

    Returns true if the given string is a valid XML name. Names starting with "xml" are not excluded, and names containing non-BMP characters are not included.

  6. def canBePartOfName(c: Char): Boolean

    Returns true if the character can be a part of an XML name.

    Returns true if the character can be a part of an XML name. Only 2-byte characters in the BMP are considered.

    Some excluded characters are: multiplication sign ('×'), (other) plus sign ('÷'), at-symbol, dollar sign, percentage sign, ampersand, slash, plus sign ('+'), comma, semicolon, open parenthesis, close parenthesis, open bracket, close bracket, open brace, close brace, smaller-than symbol, greater-than symbol, equals sign, single quote (''), double quote ('"'), asterisk, exclamation mark, question mark, and '#'.

    Note that these excluded characters are important to distinguish names from XPath language elements such as operators and (string and numeric) literals.

  7. def canBeStartOfName(c: Char): Boolean

    Returns true if the character can be a start of an XML name.

    Returns true if the character can be a start of an XML name. Only 2-byte characters in the BMP are considered.

    It returns the same as method canBePartOfName, except that some characters are excluded, such as digits, dash, dot and combining diacritical marks.

  8. def canBeStartOfName(s: String): Boolean

    Returns true if the given string can start valid XML names.

    Returns true if the given string can start valid XML names. This is the same as saying that the string is a valid XML name, so canBeName(s) is returned.

  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped