public class DateObjectDescription extends AbstractObjectDescription
Date
object.Constructor and Description |
---|
DateObjectDescription()
Creates a new object description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createObject()
Creates an object based on this description.
|
private int |
getIntParameter(java.lang.String param)
Returns a parameter value as an
int . |
void |
setParameterFromObject(java.lang.Object o)
Sets the parameters of this description object to match the supplied object.
|
configure, convertPrimitiveClass, equals, getConfig, getDefinedParameterNames, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, hashCode, setParameter, setParameterDefinition
public DateObjectDescription()
public java.lang.Object createObject()
private int getIntParameter(java.lang.String param)
int
.param
- the parameter name.public void setParameterFromObject(java.lang.Object o) throws ObjectFactoryException
o
- the object (should be an instance of Date
).ObjectFactoryException
- if the object is not an instance of Date
.