public class NameIdentifier
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static void | check(boolean condition,
     java.lang.String message,
     java.lang.Object... args)Check the given condition is true. | 
| boolean | equals(java.lang.Object other) | 
| int | hashCode() | 
| boolean | hasNamespace()Check if the  NameIdentifierhas a namespace. | 
| java.lang.String | name()Get the name of the  NameIdentifier. | 
| Namespace | namespace()Get the namespace of the  NameIdentifier. | 
| static NameIdentifier | of(Namespace namespace,
  java.lang.String name)Create the  NameIdentifierwith the givenNamespaceand name. | 
| static NameIdentifier | of(java.lang.String... names)Create the  NameIdentifierwith the given levels of names. | 
| static NameIdentifier | parse(java.lang.String identifier)Create a  NameIdentifierfrom the given identifier string. | 
| java.lang.String | toString() | 
public static NameIdentifier of(java.lang.String... names)
NameIdentifier with the given levels of names.names - The names of the identifierNameIdentifierpublic static NameIdentifier of(Namespace namespace, java.lang.String name)
NameIdentifier with the given Namespace and name.namespace - The namespace of the identifiername - The name of the identifierNameIdentifierpublic static NameIdentifier parse(java.lang.String identifier)
NameIdentifier from the given identifier string.identifier - The identifier stringNameIdentifierpublic boolean hasNamespace()
NameIdentifier has a namespace.NameIdentifier has a namespace, false otherwise.public Namespace namespace()
NameIdentifier.NameIdentifier.public java.lang.String name()
NameIdentifier.NameIdentifier.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@FormatMethod
public static void check(boolean condition,
                                       @FormatString
                                       java.lang.String message,
                                       java.lang.Object... args)
IllegalNameIdentifierException if it's not.condition - The condition to check.message - The message to throw.args - The arguments to the message.