net.sf.advjavacalendar.data.xml
Class XMLDataImpl

java.lang.Object
  extended by net.sf.advjavacalendar.data.xml.XMLDataImpl
All Implemented Interfaces:
Data

public class XMLDataImpl
extends java.lang.Object
implements Data

Stores the Calendar items in an XML File

Author:
probstl

Field Summary
 
Fields inherited from interface net.sf.advjavacalendar.data.Data
DEFAULT_DATA
 
Constructor Summary
XMLDataImpl()
           
 
Method Summary
 void delete(CalendarItem item)
          Removes the given CalendarItem from the data
 java.util.List<CalendarItem> find(java.lang.String searchString)
          Search inside after the given search String
 java.util.List<CalendarItem> getItems()
          Returns the elements in this data element
 java.lang.String getName()
          Returns the name of the Data Element
 void init()
          Initialize the element
 void insert(CalendarItem item)
          Inserts the given CalendarItem
 boolean isWritable()
          Tells the calendar if the returned elements are editable
 void start()
          Starts the getting of data with this element
 void stop()
          Stops the process of receiving data with this element
 void update(CalendarItem item)
          Saves the given CalendarItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDataImpl

public XMLDataImpl()
Method Detail

delete

public void delete(CalendarItem item)
Description copied from interface: Data
Removes the given CalendarItem from the data

Specified by:
delete in interface Data
See Also:
Data.delete(net.sf.advjavacalendar.common.CalendarItem)

find

public java.util.List<CalendarItem> find(java.lang.String searchString)
Description copied from interface: Data
Search inside after the given search String

Specified by:
find in interface Data
Returns:
See Also:
Data.find(java.lang.String)

getItems

public java.util.List<CalendarItem> getItems()
                                      throws DataException
Description copied from interface: Data
Returns the elements in this data element

Specified by:
getItems in interface Data
Returns:
Throws:
DataException
See Also:
Data.getItems()

getName

public java.lang.String getName()
Description copied from interface: Data
Returns the name of the Data Element

Specified by:
getName in interface Data
Returns:
See Also:
Data.getName()

init

public void init()
          throws DataException
Description copied from interface: Data
Initialize the element

Specified by:
init in interface Data
Throws:
DataException
See Also:
Data.init()

insert

public void insert(CalendarItem item)
            throws DataException
Description copied from interface: Data
Inserts the given CalendarItem

Specified by:
insert in interface Data
Throws:
DataException
See Also:
Data.insert(net.sf.advjavacalendar.common.CalendarItem)

isWritable

public boolean isWritable()
Description copied from interface: Data
Tells the calendar if the returned elements are editable

Specified by:
isWritable in interface Data
Returns:
See Also:
Data.isWritable()

start

public void start()
           throws DataException
Description copied from interface: Data
Starts the getting of data with this element

Specified by:
start in interface Data
Throws:
DataException
See Also:
Data.start()

stop

public void stop()
          throws DataException
Description copied from interface: Data
Stops the process of receiving data with this element

Specified by:
stop in interface Data
Throws:
DataException
See Also:
Data.stop()

update

public void update(CalendarItem item)
            throws DataException
Description copied from interface: Data
Saves the given CalendarItem

Specified by:
update in interface Data
Throws:
DataException
See Also:
Data.update(net.sf.advjavacalendar.common.CalendarItem)


Copyright © 2008 null. All Rights Reserved.