Class StiFormatService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializableToDocument,Cloneable
- Direct Known Subclasses:
StiBooleanFormatService,StiCustomFormatService,StiDateFormatService,StiGeneralFormatService,StiNumberFormatService,StiTimeFormatService
public abstract class StiFormatService
extends StiService
implements IStiDefault, IStiJsonReportObject, IStiSerializableToDocument
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(String value) booleanFormats the specified object in order of format and returns a string.Formats the specified object in order of format and returns a string.final booleanInternal use only.Returns native format string.abstract intabstract ObjectGets value to show a sample of formatting.final StringGets a service category.final Class<?> Gets a service type.getState()Gets or sets string of formatting.inthashCode()final booleanvoidLoadFromJsonObject(JSONObject jObject) static StiFormatServiceLoadFromJsonObjectInternal(JSONObject jObject) voidsetState(StiEnumSet<StiTextFormatState> state) voidsetStringFormat(String value) toString()Methods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, getServiceName, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiFormatService
public StiFormatService()
-
-
Method Details
-
isDefault
public final boolean isDefault()- Specified by:
isDefaultin interfaceIStiDefault
-
getServiceCategory
Gets a service category.- Overrides:
getServiceCategoryin classStiService
-
getServiceType
Gets a service type.- Specified by:
getServiceTypein classStiService
-
getPosition
public abstract int getPosition() -
getSample
Gets value to show a sample of formatting. -
getNativeFormatString
Returns native format string. -
getIsFormatStringFromVariable
public final boolean getIsFormatStringFromVariable()Internal use only. -
getStringFormat
Gets or sets string of formatting. -
setStringFormat
-
Format
Formats the specified object in order of format and returns a string.- Parameters:
arg- Object for formatting.- Returns:
- Formatted string.
-
format
Formats the specified object in order of format and returns a string.- Parameters:
format- String of formatting.arg- Object for formatting.- Returns:
- Formatted string.
-
toString
-
hashCode
public int hashCode() -
equals
-
serialize
- Specified by:
serializein interfaceIStiSerializableToDocument
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToDocument
-
getState
- Returns:
- the state
-
setState
- Parameters:
state- the state to set
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObjectInternal
- Throws:
JSONException
-