public abstract class MetadataSignature extends BaseSignature
Contains Metadata signature properties.
Modifier | Constructor and Description |
---|---|
protected |
MetadataSignature(String name)
Creates Metadata Signature with predefined name and empty value
|
protected |
MetadataSignature(String name,
Object value)
Creates Metadata Signature with predefined values
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone Metadata Signature instance.
|
MetadataSignature |
deepClone(Object value)
Clone Metadata Signature instance with given value.
|
boolean |
equals(Object signature)
Overwrites Equals method to compare signature properties
|
<T> T |
getData(Class<T> typeOfT)
Obtain object from Metadata Signature Value over deserialization.
|
<T> T |
getData(Class<T> typeOfT,
IDataEncryption dataEncryption)
Obtain object from Metadata Signature Text over deserialization.
|
IDataEncryption |
getDataEncryption()
Gets or sets implementation of
IDataEncryption interface to encode and decode signature Value properties. |
protected Object |
getFValue()
Protected Metadata object value
|
String |
getName()
Specifies unique metadata name.
|
int |
getType()
Specifies metadata value type.
|
Object |
getValue()
Specifies metadata object.
|
int |
hashCode()
Overrides GetHashCode method
|
void |
setDataEncryption(IDataEncryption value)
Gets or sets implementation of
IDataEncryption interface to encode and decode signature Value properties. |
protected void |
setFValue(Object value)
Protected Metadata object value
|
void |
setName(String value)
Specifies unique metadata name.
|
void |
setType(int value)
Specifies metadata value type.
|
void |
setValue(Object value)
Specifies metadata object.
|
protected void |
SetValue(Object value)
Implements virtual method of setting value into metadata signature
|
boolean |
toBoolean()
Converts to boolean.
|
Date |
toDateTime()
Converts to DateTime.
|
Date |
toDateTime(Locale provider)
Converts to DateTime.
|
double |
toDouble()
Converts to Double.
|
double |
toDouble(Locale provider)
Converts to Double.
|
int |
toInteger()
Converts to integer.
|
float |
toSingle()
Converts to float.
|
float |
toSingle(Locale provider)
Converts to float.
|
String |
toString()
Converts to String with override ToString() method
|
String |
toString(String format)
Converts to String with specified format
|
String |
toString(String format,
Locale provider)
Converts to String with specified format
|
getCreatedOn, getDeleted, getHeight, getLeft, getModifiedOn, getPageNumber, getSignatureId, getSignatureType, getTop, getWidth, isSignature, setCreatedOn, setHeight, setLeft, setModifiedOn, setPageNumber, setSignature, setTop, setWidth, supportMetaInfoLayer
protected MetadataSignature(String name)
Creates Metadata Signature with predefined name and empty value
name
- Metadata namepublic Object deepClone()
Clone Metadata Signature instance.
deepClone
in class BaseSignature
public MetadataSignature deepClone(Object value)
Clone Metadata Signature instance with given value.
value
- Value for new cloned object.public boolean equals(Object signature)
Overwrites Equals method to compare signature properties
equals
in class BaseSignature
signature
- Signature object to compare with.public final <T> T getData(Class<T> typeOfT) throws Exception
Obtain object from Metadata Signature Value over deserialization.
T
: Type of object to deserialize from Metadata value
Exception
public final <T> T getData(Class<T> typeOfT, IDataEncryption dataEncryption) throws Exception
Obtain object from Metadata Signature Text over deserialization.
dataEncryption
- Set custom data encryption implementation
T
: Type of object to deserialize from Metadata Value
Exception
public final IDataEncryption getDataEncryption()
Gets or sets implementation of IDataEncryption
interface to encode and decode signature Value properties.
protected final Object getFValue()
Protected Metadata object value
public final String getName()
Specifies unique metadata name.
public final int getType()
Specifies metadata value type.
public final Object getValue()
Specifies metadata object.
public int hashCode()
Overrides GetHashCode method
hashCode
in class BaseSignature
public final void setDataEncryption(IDataEncryption value)
Gets or sets implementation of IDataEncryption
interface to encode and decode signature Value properties.
protected final void setFValue(Object value)
Protected Metadata object value
public final void setName(String value)
Specifies unique metadata name.
public final void setType(int value)
Specifies metadata value type.
public final void setValue(Object value)
Specifies metadata object.
protected void SetValue(Object value)
Implements virtual method of setting value into metadata signature
value
- Given metadata valuepublic boolean toBoolean() throws Exception
Converts to boolean.
Exception
public Date toDateTime() throws Exception
Converts to DateTime.
SignatureSettings.DefaultCulture
Exception
public Date toDateTime(Locale provider) throws Exception
Converts to DateTime.
provider
- Format data provider to use with data conversion operations.
Exception
public double toDouble() throws Exception
Converts to Double.
SignatureSettings.DefaultCulture
Exception
public double toDouble(Locale provider) throws Exception
Converts to Double.
provider
- Format data provider to use with data conversion operations.
Exception
public int toInteger() throws Exception
Converts to integer.
Exception
public float toSingle() throws Exception
Converts to float.
SignatureSettings.DefaultCulture
()
Exception
public float toSingle(Locale provider) throws Exception
Converts to float.
provider
- Format data provider to use with data conversion operations.
Exception
public String toString()
Converts to String with override ToString() method
toString
in class BaseSignature
public String toString(String format) throws Exception
Converts to String with specified format
format
- Data format string.
SignatureSettings.DefaultCulture
Exception
public String toString(String format, Locale provider) throws Exception
Converts to String with specified format
format
- Data format string.provider
- Format data provider to use with data conversion operations.
Exception