|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.statusdatahandler.FileLevelInfo
public class FileLevelInfo
Holds the information that corresponds to files.
These information are:
1) Type: The type of the entry.
2) From: The start file number.
3) To: The end file number.
4) Phase: The recommended phase for the files to go.
5) Reason: The reason for the files to go to that phase.
6) User: The user who issued the request.
7) Done: Whether the entries are marked as done or not.
8) Comment: The comment associated with the entry.
Field Summary | |
---|---|
java.lang.String |
comment
The comment associated with this info. |
boolean |
done
Whether the files are corrected or not. |
int |
from
The start file number. |
static java.lang.String |
INFORMATION
Indicates that the type of the FileLevelInfo is information to be done by the user having the job. |
static java.lang.String |
INSTRUCTION
Indicates that the type of the FileLevelInfo is instruction to be done by the user having the job. |
static java.lang.String |
NEXT_INFORMATION
Indicates that the type of the FileLevelInfo is information to be done by the next user. |
static java.lang.String |
NEXT_INSTRUCTION
Indicates that the type of the FileLevelInfo is instruction to be done by the next user. |
int |
phase
The recommended phase for the files to go. |
int |
reason
The reason for the files to go for the specified phase. |
int |
to
The end file number. |
java.lang.String |
type
The type of this info. |
int |
user
The ID of the user who created this entry. |
Constructor Summary | |
---|---|
FileLevelInfo()
Creates a new instance of FileLevelInfo. The deafult type is instruction. |
|
FileLevelInfo(org.w3c.dom.Node node)
Creates a new instance of FileLevelInfo. |
|
FileLevelInfo(java.lang.String nodeRep)
Creates a new instance of FileLevelInfo. |
|
FileLevelInfo(java.lang.String type,
int from,
int to,
int phase,
int reason,
int user,
boolean done,
java.lang.String comment)
Creates a new instance of FileLevelInfo. |
Method Summary | |
---|---|
void |
changeType()
Changes the type of this instance. |
int |
compare(FileLevelInfo o1,
FileLevelInfo o2)
Compares the types of the objects |
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the FiLeLevelInfo by supplying its XmlNode represenation. |
boolean |
isInformation()
Determines whether the type of the FileLevelInfo is 'Information' or 'Instruction'. ToDo info are the entries whose type is FileLevelInfo.INFORMATION or FileLevelInfo.NEXT_INFORMATION. |
boolean |
isToDo()
Determines whether the type of the FileLevelInfo is 'ToDo' or 'Next'. ToDo info are the entries whose type is FileLevelInfo.INFORMATION or FileLevelInfo.INSTRUCTION. |
java.lang.String |
toString()
Returns the String representation of this instance. |
java.lang.String |
toXmlString()
Converts this instance to a valid XML string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final java.lang.String NEXT_INSTRUCTION
public static final java.lang.String NEXT_INFORMATION
public static final java.lang.String INSTRUCTION
public static final java.lang.String INFORMATION
public java.lang.String type
public int from
public int to
public int phase
public int reason
public int user
public boolean done
public java.lang.String comment
Constructor Detail |
---|
public FileLevelInfo()
public FileLevelInfo(java.lang.String type, int from, int to, int phase, int reason, int user, boolean done, java.lang.String comment)
type
- The type of the FileLevelInfo.from
- The start file number.to
- The end file number.phase
- The phase thatthe files needs modification in.reason
- The reason for the files to go to the specified phase.user
- The ID of the user who creates the entry.done
- Determines whether the files has been corrected or not.comment
- The commnet associated with this entry.public FileLevelInfo(org.w3c.dom.Node node) throws FileLevelInfoException
node
- The Xml Node representing this FileLevelInfo.
FileLevelInfoException
- If the given node couldn't be parsed.public FileLevelInfo(java.lang.String nodeRep) throws FileLevelInfoException
nodeRep
- The Xml String representing this FileLevelInfo.
FileLevelInfoException
- If the given String couldn't be parsed.Method Detail |
---|
private void createElementFromNode(org.w3c.dom.Node node) throws FileLevelInfoException
node
- The Xml Node representing this element.
FileLevelInfoException
- If the node name is not 'Info' or attributes are missing.public void changeType()
public boolean isToDo()
public boolean isInformation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXmlString()
public int compare(FileLevelInfo o1, FileLevelInfo o2)
compare
in interface java.util.Comparator<FileLevelInfo>
o1
- The first objecto2
- The second object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |