55 |
* direction is never described. If it means that the CompoundName |
* direction is never described. If it means that the CompoundName |
56 |
* can only have a single element, then the Enumeration-based |
* can only have a single element, then the Enumeration-based |
57 |
* constructor ought to throw InvalidNameException. |
* constructor ought to throw InvalidNameException. |
58 |
|
* |
59 |
|
* @since 1.3 |
60 |
*/ |
*/ |
61 |
public class CompoundName implements Name, Cloneable, Serializable |
public class CompoundName implements Name, Cloneable, Serializable |
62 |
{ |
{ |
160 |
i += special.length (); |
i += special.length (); |
161 |
continue; |
continue; |
162 |
} |
} |
163 |
else if (special == separator) |
else if (direction != FLAT && special == separator) |
164 |
{ |
{ |
165 |
elts.add (new_element.toString ()); |
elts.add (new_element.toString ()); |
166 |
new_element.setLength (0); |
new_element.setLength (0); |