edu.UCL.xmiddle.framework.appRegistry
Class ApplicationProfile

java.lang.Object
  |
  +--edu.UCL.xmiddle.framework.appRegistry.ApplicationProfile
Direct Known Subclasses:
AppProfile

public abstract class ApplicationProfile
extends java.lang.Object

ApplicationProfile.java The xmiddle application profile binds together an application along with its access and reconciliation policies, its Document/Tree, its dtd and its XML Schema related to data tree. Created: Thu Jul 19 14:06:18 2001


Field Summary
protected  XApp app
           
protected  Tree data
          The application's data Tree
protected  org.w3c.dom.Document dataSchema
          The XML Schema related to the application's data Tree
protected  java.lang.Integer id
          The application's ID
 
Constructor Summary
ApplicationProfile()
           
 
Method Summary
abstract  Tree createDocument()
          Creates a new XML document for the application based on the dtd defined, and returns it as a Tree
 XApp getApp()
           
 Tree getData()
          Returns the application's tree
 org.w3c.dom.Document getDataSchema()
          Returns the XML Schema related to XML data document
 java.lang.Integer getID()
          Returns the application ID of the application which owns this profile
abstract  Tree setData(org.w3c.dom.Document document)
          Allows an application to bind an XML document to a Tree and use it as its data element
 void setDataSchema(org.w3c.dom.Document document)
          Allows an application to bind an XML Schema to XML document that contains its data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
The application's ID


data

protected Tree data
The application's data Tree


dataSchema

protected org.w3c.dom.Document dataSchema
The XML Schema related to the application's data Tree


app

protected XApp app
Constructor Detail

ApplicationProfile

public ApplicationProfile()
Method Detail

getID

public java.lang.Integer getID()
Returns the application ID of the application which owns this profile

Returns:
the application id

createDocument

public abstract Tree createDocument()
Creates a new XML document for the application based on the dtd defined, and returns it as a Tree

Returns:
the Tree representing the new document

setData

public abstract Tree setData(org.w3c.dom.Document document)
Allows an application to bind an XML document to a Tree and use it as its data element

Parameters:
document - The XML Document that the application wishes to bind.
Returns:
the Tree representing the given Document

getData

public Tree getData()
Returns the application's tree

Returns:
The application's Tree

setDataSchema

public void setDataSchema(org.w3c.dom.Document document)
Allows an application to bind an XML Schema to XML document that contains its data

Returns:
void

getDataSchema

public org.w3c.dom.Document getDataSchema()
Returns the XML Schema related to XML data document

Returns:
The XML Schema Document related to the XML document that contains data

getApp

public XApp getApp()