kaos.xmlschema.classifier
Class XMLSchemaClassifierFactory

java.lang.Object
  extended by kaos.xmlschema.classifier.XMLSchemaClassifierFactory
All Implemented Interfaces:
InstanceClassifierFactory

public class XMLSchemaClassifierFactory
extends java.lang.Object
implements InstanceClassifierFactory

$Revision: 1.3 $


Constructor Summary
XMLSchemaClassifierFactory()
           
 
Method Summary
 InstanceClassifier getInstance(java.lang.String propertyName)
          This method is a very specific implementation of the interface method.
 void setInstance(java.lang.String propertyName, InstanceClassifier classifier)
          Puts an InstanceClassifier for the specified property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSchemaClassifierFactory

public XMLSchemaClassifierFactory()
Method Detail

getInstance

public InstanceClassifier getInstance(java.lang.String propertyName)
                               throws InstanceClassifierInitializationException
This method is a very specific implementation of the interface method. It always returns only one type of classifier, no matter what the input parameter, 'PropertyName' is. It should be used only to obtain that specific specifier.

Specified by:
getInstance in interface InstanceClassifierFactory
Parameters:
propertyName - The String specifying the property, for which a classifier is requested.
Returns:
InstanceClassifier an instance of the requested instance classifier, or null, if the factory did not have enough data to instantiate one.
Throws:
InstanceClassifierInitializationException - is thrown if the instantiation of the classifier was not successful, details will be provided in the exception's message.

setInstance

public void setInstance(java.lang.String propertyName,
                        InstanceClassifier classifier)
Puts an InstanceClassifier for the specified property.

Specified by:
setInstance in interface InstanceClassifierFactory
Parameters:
propertyName - The String specifying the property, for which a classifier is requested.
InstanceClassifier - an instance of the requested instance classifier, or null, if the factory did not have enough data to instantiate one.