Facemorph.DataBase
Class ObjectFactory.FactoryMeme

java.lang.Object
  extended by Facemorph.DataBase.ObjectFactory.FactoryMeme
Direct Known Subclasses:
ObjectFactory.DefaultFactoryMeme
Enclosing class:
ObjectFactory

public abstract static class ObjectFactory.FactoryMeme
extends java.lang.Object

All Classes included in the factory system must have an assosiated FactoryMeme class This allows the Factory Object Class to be queried to suitability for particular data. @note Classes that extend FactoryMeme must be static, at least protected and only ever instantiated once. Recommend as a static object declared as private and instantiated only once. FactoryMemes can be instantiated on loading in extensions and plugins


Constructor Summary
ObjectFactory.FactoryMeme(java.lang.Class describes)
          Create a new FactoryMeme object
 
Method Summary
abstract  boolean canHandleStream(java.lang.String alias, boolean fully)
          The object must check the string to determine if the class can handle this type of data.
 boolean equals(java.lang.Object rhs)
           
 java.lang.Class getObjectClass()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactory.FactoryMeme

public ObjectFactory.FactoryMeme(java.lang.Class describes)
Create a new FactoryMeme object

Parameters:
describes - the class this meme records.
Method Detail

equals

public boolean equals(java.lang.Object rhs)
Overrides:
equals in class java.lang.Object

canHandleStream

public abstract boolean canHandleStream(java.lang.String alias,
                                        boolean fully)
The object must check the string to determine if the class can handle this type of data.

Parameters:
alias - String containing object type.
fully - true if the class is required to fully read this type of data or can be a super class or the reader.
Returns:
true if the class can read this type of data

getObjectClass

public java.lang.Class getObjectClass()
Returns:
The class