|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.hivemind.schema.rules.ClassTranslator
Translator that converts a class name into an instance of a class.
Constructor Summary | |
ClassTranslator()
|
Method Summary | |
protected java.lang.Class |
extractClass(Module contributingModule,
java.lang.String inputValue)
Converts the value from a class name to an instance of the class. |
java.lang.Object |
translate(Module contributingModule,
java.lang.Class propertyType,
java.lang.String inputValue)
Invoked by a Rule
to translate an inputValue into an appropriate object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassTranslator()
Method Detail |
public java.lang.Object translate(Module contributingModule, java.lang.Class propertyType, java.lang.String inputValue)
Translator
Rule
to translate an inputValue into an appropriate object.
Substitution symbols will already have been expanded before this method is
invoked.
translate
in interface Translator
contributingModule
- the module from which the input value originatespropertyType
- the type of the property to be assigned by this translator; smart translators may
be able to automatically convert from string to the correct typeinputValue
- the value to be translated, either an attribute value or the content of the elementprotected java.lang.Class extractClass(Module contributingModule, java.lang.String inputValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |