2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.model
.common
;
18 public interface IParsable
{
21 * Returns the boolean value of the flag indicating whether the used parser
22 * method was able to parse a string successfully into this object (<code>false</code>)
23 * or not (<code>true</code>).
25 * @return the boolean value of the hasProblem flag
27 public boolean getHasProblem();
30 * @see #getHasProblem()
32 public void setHasProblem(boolean hasProblem
);
35 * Returns exactly the same boolean value as the {@link #getHasProblem() getHasProblem} method.
37 * @see #getHasProblem()
39 public boolean hasProblem();
42 * Returns the integer value of the position where a parsing problem starts.
43 * If no problem exists -1 is returned.
44 * This method will be removed by a more sophisticated method in future versions,
45 * therefore it is deprecated.<BR>
47 * @see #getHasProblem()
50 public int getProblemStarts();
53 * Returns the integer value of the position where a parsing problem ends.
54 * If no problem exists -1 is returned.
55 * This method will be removed by a more sophisticated method in future versions,
56 * therefore it is deprecated. <BR>
58 * @see #getHasProblem()
61 public int getProblemEnds();
64 * @see #getProblemStarts()
67 public void setProblemStarts(int start
);
70 * @see #getProblemEnds()
73 public void setProblemEnds(int end
);