csm23
Class XMLDocument

java.lang.Object
  |
  +--csm23.XMLDocument

public class XMLDocument
extends java.lang.Object

Title: Stores a Reuters XML document information Copyright: Copyright (c) 2002 Company: University of Surrey


Field Summary
 java.lang.String[][] attributeCodes
           
 java.lang.String[][] attributeNames
           
 java.lang.String[] classNames
           
 int[] classSize
           
 java.util.GregorianCalendar dateCreated
           
 int dimensionOfClass
           
 java.lang.String documentPath
           
 java.lang.String documentTitle
           
 
Constructor Summary
XMLDocument(int dimension1)
          Constructon
 
Method Summary
 void setAttributeDimension(int length)
          Sets the length of the attributes.
 void setLength(int dimensionno, int length)
          Specifies the number of attributes for each category.
 java.lang.String toString()
          Returns the string representation of the document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classNames

public java.lang.String[] classNames

attributeCodes

public java.lang.String[][] attributeCodes

attributeNames

public java.lang.String[][] attributeNames

dateCreated

public java.util.GregorianCalendar dateCreated

documentPath

public java.lang.String documentPath

documentTitle

public java.lang.String documentTitle

dimensionOfClass

public int dimensionOfClass

classSize

public int[] classSize
Constructor Detail

XMLDocument

public XMLDocument(int dimension1)
Constructon

Parameters:
dimension1 - the dimension of the class (in Reuters, max:3 which are region, industry and topic/
Method Detail

setAttributeDimension

public void setAttributeDimension(int length)
Sets the length of the attributes.

Parameters:
length - the maximum number of entries(attributes) associated with each category.

setLength

public void setLength(int dimensionno,
                      int length)
Specifies the number of attributes for each category. For example, if there are three entries(such as US,UK and Iraq) under region category in Reuters news, and if it is the first category appearing in the news article, the parameters should be "0, 3".

Parameters:
dimensionno - the category number
length - the number of attributes for that category

toString

public java.lang.String toString()
Returns the string representation of the document

Overrides:
toString in class java.lang.Object
Returns:
Document title