1 package org.sapia.archie; 2 3 4 /** 5 * An instance of this interface creates <code>Name</code> instances from 6 * string representations. 7 * <p> 8 * Understood name representations are implementation specific. 9 * 10 * @author Yanick Duchesne 11 * 12 * <dl> 13 * <dt><b>Copyright:</b><dd>Copyright © 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt> 14 * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the 15 * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt> 16 * </dl> 17 */ 18 public interface NameParser extends java.io.Serializable{ 19 public Name parse(String name) throws ProcessingException; 20 public String asString(Name name); 21 public NamePart parseNamePart(String namePart) throws ProcessingException; 22 } 23