ist.palcom.storage.tags
Class Tags

java.lang.Object
  extended by ist.palcom.storage.tags.Tags

public class Tags
extends java.lang.Object

Tags.java Tags demonstrate a simple way of storing tags


Constructor Summary
Tags()
          Create a set of tags
 
Method Summary
 int[] get(java.lang.String tag)
          Get an index array for a tag
 java.lang.String getKeys()
          Get all keys
 void load(Storage store, java.lang.String file)
          Read a set of tags from a palcom file
 void save(Storage store, java.lang.String file)
          Write a set of tags to a palcom file
 void set(Taggable tobj, java.lang.String tag)
          Tag an object with an tag
 java.lang.String toString()
          Print all tags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tags

public Tags()
Create a set of tags

Method Detail

load

public void load(Storage store,
                 java.lang.String file)
Read a set of tags from a palcom file

Parameters:
store -
file -
Throws:
StorageException

save

public void save(Storage store,
                 java.lang.String file)
Write a set of tags to a palcom file

Parameters:
store -
file -
Throws:
StorageException

set

public void set(Taggable tobj,
                java.lang.String tag)
Tag an object with an tag

Parameters:
tobj -
tag -

get

public int[] get(java.lang.String tag)
Get an index array for a tag

Parameters:
tag -
Returns:
an index array

getKeys

public java.lang.String getKeys()
Get all keys

Returns:
the keys

toString

public java.lang.String toString()
Print all tags

Overrides:
toString in class java.lang.Object
Returns:
all tags