org.opensync.engine.server
Class Source

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

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

This class encapsulate the concept of a source in the OpenSync application

See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_BD
          The source is a database source
static java.lang.String TYPE_TXT
          The source is a text source
 
Constructor Summary
Source()
          Construct a source object
 
Method Summary
 void addView(View view)
          Add a view to the source
 Connector getConnector()
          Get the connector of the source
 java.lang.String getName()
          Get the name of the source
 Return getReturn()
          Get the return of the source
 View getView(java.lang.String view)
          Get a view of the source
 java.util.HashMap getViews()
          Get all views of the source
 long lastModified()
           
 void setConnector(Connector connector)
          Se the connector of the source
 void setName(java.lang.String name)
          Set the name of the source
 void setReturn(Return ret)
          Set the return of the source
 void setViews(java.util.HashMap _views)
           
 java.lang.String toString()
          Use for debug only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_BD

public static final java.lang.String TYPE_BD
The source is a database source

See Also:
Constant Field Values

TYPE_TXT

public static final java.lang.String TYPE_TXT
The source is a text source

See Also:
Constant Field Values
Constructor Detail

Source

public Source()
Construct a source object

Method Detail

setName

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

Parameters:
name - the name of the source

getName

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


setConnector

public void setConnector(Connector connector)
Se the connector of the source

Parameters:
connector - the conncetor of the source

getConnector

public Connector getConnector()
Get the connector of the source


setReturn

public void setReturn(Return ret)
Set the return of the source

Parameters:
ret - the return of the source

getReturn

public Return getReturn()
Get the return of the source


addView

public void addView(View view)
Add a view to the source

Parameters:
view - the view to add

getView

public View getView(java.lang.String view)
Get a view of the source

Parameters:
view - the name of the view to get

toString

public java.lang.String toString()
Use for debug only


getViews

public java.util.HashMap getViews()
Get all views of the source


setViews

public void setViews(java.util.HashMap _views)

lastModified

public long lastModified()
                  throws OpenSyncException,
                         java.io.IOException
Throws:
OpenSyncException
java.io.IOException


Copyright © 2004 sourceforge. All Rights Reserved.