jpl.mipl.mdms.FileService.komodo.messaging.msg
Class FileType

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
      extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
          extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.FileType
All Implemented Interfaces:
MessageType

public class FileType
extends ComplexType

Purpose: This class holds file information such as name, size, type, etc.

   Copyright 2005, California Institute of Technology.
   ALL RIGHTS RESERVED.
   U.S. Government Sponsorship acknowledge. 2005.
   
 ============================================================================
 Modification History :
 ----------------------

 Date              Who              What
 ----------------------------------------------------------------------------
 06/15/2005        Nick             Initial Release
 ============================================================================
 

Version:
$Id: FileType.java,v 1.4 2005/06/30 20:37:22 ntt Exp $
Author:
Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)

Field Summary
static String CHILD_ARCHIVENOTE
           
static String CHILD_CHECKSUM
           
static String CHILD_COMMENT
           
static String CHILD_CONTRIBUTE
           
static String CHILD_IDENTIFIER
           
static String CHILD_NAME
           
static String CHILD_SIZE
           
static String CHILD_TIME
           
static String CHILD_TYPE
           
static String ELEMENT_NAME
           
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
_children
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
_attributes, _documentFactory, _name
 
Constructor Summary
FileType()
           
 
Method Summary
 SimpleType archiveNote()
           
 SimpleType checksum()
           
 SimpleType comment()
           
 ContributeType contribute()
           
 String[] getChildrenNames()
           
 int getType()
          Returns the type of this message.
 SimpleType identifier()
           
protected  boolean isRequired(String childName)
          Method tests if a child message type is required to form a legal message.
 SimpleType name()
           
 void parseChildren(org.dom4j.Element element)
           
 SimpleType size()
           
 FileTimeType time()
           
 FiletypeType type()
           
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
getAttribute, getChild, setAttribute, setChild, toXml
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
getAttributeNames, getName, parse, parseAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values

CHILD_IDENTIFIER

public static final String CHILD_IDENTIFIER
See Also:
Constant Field Values

CHILD_TYPE

public static final String CHILD_TYPE
See Also:
Constant Field Values

CHILD_NAME

public static final String CHILD_NAME
See Also:
Constant Field Values

CHILD_SIZE

public static final String CHILD_SIZE
See Also:
Constant Field Values

CHILD_CONTRIBUTE

public static final String CHILD_CONTRIBUTE
See Also:
Constant Field Values

CHILD_TIME

public static final String CHILD_TIME
See Also:
Constant Field Values

CHILD_CHECKSUM

public static final String CHILD_CHECKSUM
See Also:
Constant Field Values

CHILD_COMMENT

public static final String CHILD_COMMENT
See Also:
Constant Field Values

CHILD_ARCHIVENOTE

public static final String CHILD_ARCHIVENOTE
See Also:
Constant Field Values
Constructor Detail

FileType

public FileType()
Method Detail

getChildrenNames

public String[] getChildrenNames()
Overrides:
getChildrenNames in class ComplexType

isRequired

protected boolean isRequired(String childName)
Description copied from class: ComplexType
Method tests if a child message type is required to form a legal message.

Overrides:
isRequired in class ComplexType
Parameters:
childName - Name to which child message is bound
Returns:
True if child is required, false otherwise.

parseChildren

public void parseChildren(org.dom4j.Element element)
                   throws Exception
Overrides:
parseChildren in class MessageBase
Throws:
Exception

getType

public int getType()
Description copied from interface: MessageType
Returns the type of this message.

Specified by:
getType in interface MessageType
Overrides:
getType in class ComplexType
Returns:
message type

identifier

public SimpleType identifier()

type

public FiletypeType type()

name

public SimpleType name()

size

public SimpleType size()

contribute

public ContributeType contribute()

time

public FileTimeType time()

checksum

public SimpleType checksum()

comment

public SimpleType comment()

archiveNote

public SimpleType archiveNote()