Class HierarchicalName

java.lang.Object
com.saperion.common.lang.id.StringId
com.saperion.common.lang.id.HierarchicalName
All Implemented Interfaces:
Id, Serializable, Comparable<StringId>

public final class HierarchicalName extends StringId

A HierarchicalName is an immutable encapsulation that consists of hierarchical name elements connected by an element separator where the left-most element represents the top-most hierarchy level.

The name elements are heavily restricted by a regular expression to guarantee the usability of this class in many different situations. They must consist of letters and numbers only (starting with a letter).

The StringId.toString()-method returns a full representation of a HierarchicalName which is compatible with the constructor. So this StringId.toString() -method is usable in business-logic and not only for debugging purposes.

An instance of HierarchicalName can be used in several threads concurrently.

Author:
agz
See Also: