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 static final class Path.AddressList extends Object implements Path.ParserResult
Representation for anaddress-listor amailbox-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.List<String>flattenAddrSpecs()Flattens the constituents into their individualaddr-specmembers, for use by e.g.StringinvalidsToString()Returns all invalid constituents as", "-separated string, for error message construction.StringtoString()Returns theaddress-listormailbox-listas (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 theaddress-listormailbox-listas (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.- Returns:
- list of formatted strings, each an address (or mailbox)
- See Also:
Path.Address.toString()
-
-