edu.udo.cs.wvtool.main
Class WVTDocumentInfo

java.lang.Object
  extended by edu.udo.cs.wvtool.main.WVTDocumentInfo

public class WVTDocumentInfo
extends java.lang.Object

Represents relevant information about a document.

Version:
$Id: WVTDocumentInfo.java,v 1.2 2006/06/06 11:45:23 mjwurst Exp $
Author:
Michael Wurst

Field Summary
 int classValue
          the class value, which is assigned to the document.
 java.lang.String contentEncoding
          the encoding of the document
 java.lang.String contentLanguage
          the language the document is written in (english, german, ...)
 java.lang.String contentType
          the MIME content type of the document
private  boolean hasClassValue
          has the document a class value assigened to it?
 java.lang.String sourceName
          the source of the document as String.
 
Constructor Summary
WVTDocumentInfo(java.lang.String sourceName, java.lang.String contentType, java.lang.String contentEncoding, java.lang.String contentLanguage)
          Creates a new instance of WVTDocumentInfo
WVTDocumentInfo(java.lang.String sourceName, java.lang.String contentType, java.lang.String contentEncoding, java.lang.String contentLanguage, int classValue)
          Creates a new instance of WVTDocumentInfo
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getClassValue()
          Getter for property classValue.
 java.lang.String getContentEncoding()
          Getter for property contentEncoding.
 java.lang.String getContentLanguage()
          Getter for property contentLanguage.
 java.lang.String getContentType()
          Getter for property contentType.
 java.lang.String getSourceName()
          Getter for property sourceName.
 boolean hasClassValue()
          has the document a class value assigned to it. a boolean
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceName

public java.lang.String sourceName
the source of the document as String. This can be either a path to a directory/file or an URL.


contentType

public java.lang.String contentType
the MIME content type of the document


contentEncoding

public java.lang.String contentEncoding
the encoding of the document


contentLanguage

public java.lang.String contentLanguage
the language the document is written in (english, german, ...)


classValue

public int classValue
the class value, which is assigned to the document.


hasClassValue

private final boolean hasClassValue
has the document a class value assigened to it?

Constructor Detail

WVTDocumentInfo

public WVTDocumentInfo(java.lang.String sourceName,
                       java.lang.String contentType,
                       java.lang.String contentEncoding,
                       java.lang.String contentLanguage,
                       int classValue)
Creates a new instance of WVTDocumentInfo


WVTDocumentInfo

public WVTDocumentInfo(java.lang.String sourceName,
                       java.lang.String contentType,
                       java.lang.String contentEncoding,
                       java.lang.String contentLanguage)
Creates a new instance of WVTDocumentInfo

Method Detail

getContentLanguage

public java.lang.String getContentLanguage()
Getter for property contentLanguage.

Returns:
Value of property contentLanguage.


getContentEncoding

public java.lang.String getContentEncoding()
Getter for property contentEncoding.

Returns:
Value of property contentEncoding.


getContentType

public java.lang.String getContentType()
Getter for property contentType.

Returns:
Value of property contentType.


getSourceName

public java.lang.String getSourceName()
Getter for property sourceName.

Returns:
value of sourceName.


getClassValue

public int getClassValue()
Getter for property classValue.

Returns:
class value (-1, if not set).


hasClassValue

public boolean hasClassValue()
has the document a class value assigned to it. a boolean


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object