All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cpt.cptDocument


java.lang.Object

   |

   +----cpt.cptDocument


public class cptDocument
extends Object
The document class of CPT.


Constructor Index

 o cptDocument()
Constructs a new empty cptDocument object.
 o cptDocument(String, Integer)
Constructs a new cptDocument and initializes it.

Method Index

 o exportMD(String, Integer)
Export metadata from the document.
 o importMD(String, Integer, Integer, Integer)
Imports metadata into the document.
 o main(String[])
Tests the class.

Constructors

 o cptDocument

 public cptDocument()

Constructs a new empty cptDocument object. Use the cptDocument(URL) constructor instead.

 o cptDocument

 public cptDocument(String location,

                    Integer locationtype)

Constructs a new cptDocument and initializes it.

Parameters:
location - the metadata source to be used.
locationtype - the type of the location string (URL or filename)

Methods

 o importMD

 public void importMD(String location,

                      Integer locationtype,

                      Integer sourcetype,

                      Integer mode)

Imports metadata into the document.

Parameters:
location - the metadata source to be used.
locationtype - the type of the location string (URL or filename)
sourcetype - the type of the metadata source.
mode - what is done with conflicts in dimensions that can hold only one value.
 o exportMD

 public void exportMD(String location,

                      Integer targettype)

Export metadata from the document.

Parameters:
location - the metadata source to be used.
targettype - the type of the metadata source.
 o main

 public static void main(String args[])

Tests the class.



All Packages  Class Hierarchy  This Package  Previous  Next  Index