Class QNameValue

  • All Implemented Interfaces:
    Comparable<QNameValue>, QNamed

    public class QNameValue
    extends Object
    implements QNamed, Comparable<QNameValue>
    Domain specific models (Odf, Java, ...) often return 'ns:localname' Strings. The purpose of this class is to encapsulate these Strings so in templates they can be treated like other QNamed objects.

    Contract: These objects are distincted only by the encapsulated String. So they use this String for equals(o), hashCode() and compareTo(o).

    • Constructor Detail

      • QNameValue

        public QNameValue​(String name)
        Constructor to create a String wrapper
        Parameters:
        name - the String to wrap