Class DateFactory<T extends Date>
java.lang.Object
org.simpleframework.xml.transform.DateFactory<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Constructor<T> This is used to create instances of the date object required. -
Constructor Summary
ConstructorsConstructorDescriptionDateFactory(Class<T> type) Constructor for theDateFactoryobject.DateFactory(Class<T> type, Class... list) Constructor for theDateFactoryobject. -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(Object... list) This is used to create instances of the date using a delegate date.
-
Field Details
-
factory
This is used to create instances of the date object required.
-
-
Constructor Details
-
DateFactory
Constructor for theDateFactoryobject. This is used to create instances of the specified type. All objects created by this instance must take a single long parameter.- Parameters:
type- this is the date implementation to be created- Throws:
Exception
-
DateFactory
Constructor for theDateFactoryobject. This is used to create instances of the specified type. All objects created by this instance must take the specified parameter.- Parameters:
type- this is the date implementation to be createdlist- is basically the list of accepted parameters- Throws:
Exception
-
-
Method Details
-
getInstance
This is used to create instances of the date using a delegate date. Alongparameter is extracted from the given date an used to instantiate a date of the required type.- Parameters:
list- this is the type used to provide the long value- Returns:
- this returns an instance of the required date type
- Throws:
Exception
-