Class QualifiedName

java.lang.Object
se.kuseman.payloadbuilder.api.QualifiedName

public class QualifiedName extends Object
Qualified name
  • Field Details

  • Constructor Details

    • QualifiedName

      public QualifiedName(List<String> parts)
  • Method Details

    • getParts

      public List<String> getParts()
    • size

      public int size()
      Returns size of this qualified name
    • getAlias

      public String getAlias()
      Returns the aliss if any. An alias exist if there are more than one part in the name
    • getLast

      public String getLast()
      Get the last part of the qualified name
    • getFirst

      public String getFirst()
      Get the first part in qualified name
    • extract

      public QualifiedName extract(int from, int to)
      Extracts a new qualified name from this instance with parts defined in from to
    • extract

      public QualifiedName extract(int from)
      Extracts a new qualified name from this instance with parts defined in from to last part
    • extend

      public QualifiedName extend(String part)
      Extends this qualified name with provided part
    • prepend

      public QualifiedName prepend(String part)
      Prepend this qualified name with provided part
    • toLowerCase

      public QualifiedName toLowerCase()
      Returns a new qualified name with all parts lower cased
    • equalsIgnoreCase

      public boolean equalsIgnoreCase(QualifiedName name)
      Returns true if this qualified names parts equals other parts ignoring case
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDotDelimited

      public String toDotDelimited()
      Returns a dot delimited representation of this qualified name. NOTE! This won't quote needed parts etc.
    • of

      public static QualifiedName of(String... parts)
      Construct a qualified name from provided parts
    • of

      public static QualifiedName of(Object object)
      Constuct a qualified name from provided object. If its a collection then parts is constructed from their string representations