Class StiDateFormatService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
com.stimulsoft.report.components.textFormats.StiDateFormatService
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializableToDocument,Cloneable
-
Field Summary
Fields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new format of the type StiDateFormatService.StiDateFormatService(String stringFormat, String nullDisplay) Creates a new format of the type StiDateFormatService. -
Method Summary
Modifier and TypeMethodDescriptionbooleanFormats the specified object in order of regulations and returns a string.Returns native format string.final StringGets or sets string value to show null date.intGets value to show a sample of formatting.Gets a service name.Gets or sets string of formatting.inthashCode()voidLoadFromJsonObject(JSONObject jObject) final voidsetNullDisplay(String value) voidsetStringFormat(String value) Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService
deserialize, Format, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, isDefault, LoadFromJsonObjectInternal, serialize, setState, toStringMethods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiDateFormatService
public StiDateFormatService()Creates a new format of the type StiDateFormatService. -
StiDateFormatService
Creates a new format of the type StiDateFormatService.- Parameters:
stringFormat- String of formatting.nullDisplay- String value to show null date.
-
-
Method Details
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiService
-
getPosition
public int getPosition()- Specified by:
getPositionin classStiFormatService
-
getSample
Gets value to show a sample of formatting.- Specified by:
getSamplein classStiFormatService
-
getStringFormat
Gets or sets string of formatting.- Overrides:
getStringFormatin classStiFormatService
-
setStringFormat
- Overrides:
setStringFormatin classStiFormatService
-
getNullDisplay
Gets or sets string value to show null date. -
setNullDisplay
-
getNativeFormatString
Returns native format string.- Overrides:
getNativeFormatStringin classStiFormatService
-
hashCode
public int hashCode()- Overrides:
hashCodein classStiFormatService
-
equals
- Overrides:
equalsin classStiFormatService
-
format
Formats the specified object in order of regulations and returns a string.- Overrides:
formatin classStiFormatService- Parameters:
stringFormat- String of formatting.arg- Object for formatting.format- String for formatting.- Returns:
- Formatted string.
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiFormatService- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiFormatService- Throws:
JSONException
-