Class ObjectNameStringifier

  • All Implemented Interfaces:
    Stringifier

    public final class ObjectNameStringifier
    extends Object
    implements Stringifier
    Stringifier for an ObjectName which sorts the properties in the ObjectName for more consistent and readable output.
    • Constructor Detail

      • ObjectNameStringifier

        public ObjectNameStringifier()
      • ObjectNameStringifier

        public ObjectNameStringifier​(List<String> props)
      • ObjectNameStringifier

        public ObjectNameStringifier​(String[] props)
    • Method Detail

      • stringify

        public String stringify​(Object o)
        Description copied from interface: Stringifier
        Produce a String representation of an object. The actual output has no other semantics; each Stringifier may choose to target a particular type of user.

        The resulting String should be suitable for display to a user.

        Specified by:
        stringify in interface Stringifier
        Parameters:
        o - the Object for which a String should be produced
      • getProps

        public List getProps()
      • setProps

        public void setProps​(List<String> props)
      • getOmitDomain

        public boolean getOmitDomain()
      • setOmitDomain

        public void setOmitDomain​(boolean omit)