Package org.evolvis.tartools.rfc822
Class Path.AddressList
- java.lang.Object
-
- org.evolvis.tartools.rfc822.Path.AddressList
-
- All Implemented Interfaces:
Path.ParserResult
- Enclosing class:
- Path
public final class Path.AddressList extends Object implements Path.ParserResult
Representation for an address-list or a mailbox-list- Author:
- mirabilos (t.glaser@tarent.de)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>flattenAddresses()Flattens the constituents into a list of their formatted representations, seePath.Address.toString()List<String>flattenAddrSpecs()Flattens the constituents into their individual addr-spec members, for use by e.g.StringinvalidsToString()Returns all invalid constituents as ", "-separated string, for error message constructionStringtoString()Returns the address-list or mailbox-list as (non-wrapped) string-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.evolvis.tartools.rfc822.Path.ParserResult
isValid
-
-
-
-
Method Detail
-
toString
public String toString()
Returns the address-list or mailbox-list as (non-wrapped) string- Specified by:
toStringin interfacePath.ParserResult- Overrides:
toStringin classObject- Returns:
- String address/mailbox *( ", " address/mailbox )
-
invalidsToString
public String invalidsToString()
Returns all invalid constituents as ", "-separated string, for error message construction- Returns:
- null if all constituents are valid, a String otherwise
-
flattenAddresses
public List<String> flattenAddresses()
Flattens the constituents into a list of their formatted representations, seePath.Address.toString()- Returns:
- list of formatted strings, each an address (or mailbox)
-
-