Class BaseValueFactory
java.lang.Object
com.bytedesk.call.mrcp4j.message.header.BaseValueFactory
- All Implemented Interfaces:
ValueFactory
- Direct Known Subclasses:
ChannelIdentifier.Factory,CompletionCause.Factory,GenericValueFactory,RequestIdList.Factory
Abstract
ValueFactory providing basic implementation for all methods other than the main object creation method.- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>toValueString(Object valueObject) protected voidvalidateObject(Object valueObject) Subclasses should override this method if there is any limitation on the valid values of the objects generated by this factory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bytedesk.call.mrcp4j.message.header.ValueFactory
fromValueString
-
Field Details
-
_valueClass
-
-
Constructor Details
-
BaseValueFactory
-
-
Method Details
-
validateObject
Subclasses should override this method if there is any limitation on the valid values of the objects generated by this factory.- Parameters:
valueObject- object to be validated.- Throws:
IllegalValueException- if the value of the object passed is not valid for this factory.
-
toValueString
- Specified by:
toValueStringin interfaceValueFactory- Throws:
ClassCastExceptionIllegalArgumentException
-
getValueClass
- Specified by:
getValueClassin interfaceValueFactory
-