org.opensync.engine.server
Class View

java.lang.Object
  extended byorg.opensync.engine.server.View
All Implemented Interfaces:
java.io.Serializable

public class View
extends java.lang.Object
implements java.io.Serializable

This class encapsulate the concept of a business view in the OpenSync application

See Also:
Serialized Form

Field Summary
protected  java.lang.String descriptor
          The descriptor (in/out) used by the adapter transform the source fomat in OpenSync format.
protected  java.lang.String descriptorIn
          Set the descriptor (in only) used by the adapter transform the source fomat in OpenSync format.
protected  java.lang.String descriptorOut
          Set the descriptor (out only) used by the adapter transform the source fomat in OpenSync format.
protected  java.lang.String file
          The file name of the file produice or import by OpenSync for this view
protected  java.lang.String name
          The name of the view
protected  java.lang.String theme
          The theme of the view
 
Constructor Summary
View()
          Construct a view object
 
Method Summary
 java.lang.String getDescriptor()
          Get the descriptor (in/out) used by the adapter transform the source fomat in OpenSync format.
 java.lang.String getDescriptorIn()
          Get the descriptor (in only) used by the adapter transform the source fomat in OpenSync format.
 java.lang.String getDescriptorOut()
          get the descriptor (out only) used by the adapter transform the source fomat in OpenSync format.
 java.lang.String getFile()
          Get the file name of the file produice or import by OpenSync for this view
 java.lang.String getName()
          Get the name of the view
 java.lang.String getTheme()
          Get the theme of the view
 long lastModifiedFrom(java.lang.String descriptorsPath, java.lang.String folder)
           
 long lastModifiedTo(java.lang.String descriptorsPath)
           
 void setDescriptor(java.lang.String descriptor)
          Set the descriptor (in/out) used by the adapter transform the source fomat in OpenSync format.
 void setDescriptorIn(java.lang.String descriptorIn)
          Set the descriptor (in only) used by the adapter transform the source fomat in OpenSync format.
 void setDescriptorOut(java.lang.String descriptorOut)
          Set the descriptor (out only) used by the adapter transform the source fomat in OpenSync format.
 void setFile(java.lang.String file)
          Set the file name of the file produice or import by OpenSync for this view
 void setName(java.lang.String name)
          Set the name of the view
 void setTheme(java.lang.String theme)
          Set the theme of the view
 java.lang.String toString()
          Convert a view to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the view


theme

protected java.lang.String theme
The theme of the view


descriptor

protected java.lang.String descriptor
The descriptor (in/out) used by the adapter transform the source fomat in OpenSync format.


descriptorIn

protected java.lang.String descriptorIn
Set the descriptor (in only) used by the adapter transform the source fomat in OpenSync format.


descriptorOut

protected java.lang.String descriptorOut
Set the descriptor (out only) used by the adapter transform the source fomat in OpenSync format.


file

protected java.lang.String file
The file name of the file produice or import by OpenSync for this view

Constructor Detail

View

public View()
Construct a view object

Method Detail

setName

public void setName(java.lang.String name)
Set the name of the view

Parameters:
name - the name of the view

getTheme

public java.lang.String getTheme()
Get the theme of the view


setTheme

public void setTheme(java.lang.String theme)
Set the theme of the view

Parameters:
theme - the theme of the view

getName

public java.lang.String getName()
Get the name of the view


setDescriptor

public void setDescriptor(java.lang.String descriptor)
Set the descriptor (in/out) used by the adapter transform the source fomat in OpenSync format. It may be an xsl sheet or a txt file descriptor

Parameters:
descriptor - the in/out descriptor of the view

getDescriptor

public java.lang.String getDescriptor()
Get the descriptor (in/out) used by the adapter transform the source fomat in OpenSync format.


setFile

public void setFile(java.lang.String file)
Set the file name of the file produice or import by OpenSync for this view

Parameters:
file -

getFile

public java.lang.String getFile()
Get the file name of the file produice or import by OpenSync for this view


setDescriptorIn

public void setDescriptorIn(java.lang.String descriptorIn)
Set the descriptor (in only) used by the adapter transform the source fomat in OpenSync format. It may be an xsl sheet or a txt file descriptor

Parameters:
descriptorIn -

getDescriptorIn

public java.lang.String getDescriptorIn()
Get the descriptor (in only) used by the adapter transform the source fomat in OpenSync format.


setDescriptorOut

public void setDescriptorOut(java.lang.String descriptorOut)
Set the descriptor (out only) used by the adapter transform the source fomat in OpenSync format. It may be an xsl sheet or a txt file descriptor

Parameters:
descriptorOut -

getDescriptorOut

public java.lang.String getDescriptorOut()
get the descriptor (out only) used by the adapter transform the source fomat in OpenSync format.


lastModifiedTo

public long lastModifiedTo(java.lang.String descriptorsPath)
                    throws OpenSyncException,
                           java.io.IOException
Throws:
OpenSyncException
java.io.IOException

lastModifiedFrom

public long lastModifiedFrom(java.lang.String descriptorsPath,
                             java.lang.String folder)
                      throws OpenSyncException,
                             java.io.IOException
Throws:
OpenSyncException
java.io.IOException

toString

public java.lang.String toString()
Convert a view to a string. (Use for debug only)



Copyright © 2004 sourceforge. All Rights Reserved.