net.firstpartners.rp.common
Class AddInfo

java.lang.Object
  extended by net.firstpartners.rp.common.AddInfo
All Implemented Interfaces:
INewInformation

public class AddInfo
extends java.lang.Object
implements INewInformation

Adding information class

Version:
1.3
Author:
Firstpartners.net

Field Summary
(package private)  java.lang.String categoryLocation
          Original location
(package private)  java.lang.String categoryName
          Category name
(package private)  int level
          Spidering level
(package private)  java.lang.String uri
          URI location
 
Constructor Summary
AddInfo(java.lang.String location, java.lang.String uri)
          Creates a new AddInfo object using - no category name - a default 1 depth level
AddInfo(java.lang.String location, java.lang.String uri, int level)
          Creates a new AddInfo object using - no category name
AddInfo(java.lang.String location, java.lang.String name, java.lang.String uri)
          Creates a new AddInfo object using a default depth level of 1
AddInfo(java.lang.String location, java.lang.String name, java.lang.String uri, int level)
          Creates a new AddInfo object.
 
Method Summary
 java.lang.String getCategoryLocation()
          Get the category original location
 java.lang.String getCategoryName()
          Get the category name of the information
 int getLevel()
          Get the depth level for the information
 java.lang.String getUri()
          Get the uri location of the information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryLocation

java.lang.String categoryLocation
Original location


categoryName

java.lang.String categoryName
Category name


uri

java.lang.String uri
URI location


level

int level
Spidering level

Constructor Detail

AddInfo

public AddInfo(java.lang.String location,
               java.lang.String name,
               java.lang.String uri,
               int level)
Creates a new AddInfo object.

Parameters:
location - Original location
name - Category name
location - URI location of the information
level - Level of information (how depht to add the information from the current location)

AddInfo

public AddInfo(java.lang.String location,
               java.lang.String name,
               java.lang.String uri)
Creates a new AddInfo object using a default depth level of 1

Parameters:
location - Category location
name - Category name
location - URI location of the information

AddInfo

public AddInfo(java.lang.String location,
               java.lang.String uri,
               int level)
Creates a new AddInfo object using - no category name

Parameters:
location - Category original location
uri - URI location of the information
level - Depth level for the information

AddInfo

public AddInfo(java.lang.String location,
               java.lang.String uri)
Creates a new AddInfo object using - no category name - a default 1 depth level

Parameters:
location - Category original location
uri - URI location of the information
Method Detail

getCategoryLocation

public java.lang.String getCategoryLocation()
Get the category original location

Specified by:
getCategoryLocation in interface INewInformation
Returns:
Returns the category original location

getCategoryName

public java.lang.String getCategoryName()
Get the category name of the information

Specified by:
getCategoryName in interface INewInformation
Returns:
Returns the name.

getUri

public java.lang.String getUri()
Get the uri location of the information

Specified by:
getUri in interface INewInformation
Returns:
Returns the location.

getLevel

public int getLevel()
Get the depth level for the information

Specified by:
getLevel in interface INewInformation
Returns:
Returns the level.