FieldType

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IFieldType

public final class FieldType implements IFieldType

Represents a type of field. This value determines which text will be set to the field portion when it will be updated.

Constructors

ConstructorDescription
FieldType(String str)Initializes a new instance of FieldType class.

Methods

MethodDescription
getInternalString()Returns the internal name of this FieldType object.
setInternalString(String value)Returns the internal name of this FieldType object.
equals(Object obj)Checks if this field is equal to another.
hashCode()Returns hashcode for this object.
op_Equality(FieldType a, FieldType b)Checks if two FieldType objects is equal.
op_Inequality(FieldType a, FieldType b)Checks if two FieldType objects is inequal.
getSlideNumber()Current slide’s number.
getFooter()Slide’s footer.
getHeader()Slide’s header.
getDateTime()Current date and time in default date time format for the rendering application.
getDateTime1()Current date and time in a first predefined format (MM/DD/YYYY for english).
getDateTime2()Current date and time in a second predefined format (Day, Month DD, YYYY for english).
getDateTime3()Current date and time in a third predefined format (DD Month YYYY for english).
getDateTime4()Current date and time in a fourth predefined format (Month DD, YYYY for english).
getDateTime5()Current date and time in a fifth predefined format (DD-Mon-YY for english).
getDateTime6()Current date and time in a sixth predefined format (Month YY for english).
getDateTime7()Current date and time in a seventh predefined format (Mon-YY for english).
getDateTime8()Current date and time in a eighth predefined format (MM/DD/YYYY hh:mm AM/PM for english).
getDateTime9()Current date and time in a ninth predefined format (MM/DD/YYYY hh:mm:ss AM/PM for english).
getDateTime10()Current date and time in a tenth predefined format (hh:mm for english).
getDateTime11()Current date and time in a eleventh predefined format (hh:mm:ss for english).
getDateTime12()Current date and time in a twelfth predefined format (hh:mm AM/PM for english).
getDateTime13()Current date and time in a thirteenth predefined format (hh:mm:ss AM/PM for english).

FieldType(String str)

public FieldType(String str)

Initializes a new instance of FieldType class.

Parameters:

ParameterTypeDescription
strjava.lang.String

getInternalString()

public final String getInternalString()

Returns the internal name of this FieldType object. Read/write String.

Returns: java.lang.String

setInternalString(String value)

public final void setInternalString(String value)

Returns the internal name of this FieldType object. Read/write String.

Parameters:

ParameterTypeDescription
valuejava.lang.String

equals(Object obj)

public boolean equals(Object obj)

Checks if this field is equal to another.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectField to compare.

Returns: boolean - True if fields are equal.

hashCode()

public int hashCode()

Returns hashcode for this object.

Returns: int - Hashcode int.

op_Equality(FieldType a, FieldType b)

public static boolean op_Equality(FieldType a, FieldType b)

Checks if two FieldType objects is equal.

Parameters:

ParameterTypeDescription
aFieldTypeFirst FieldType to compare.
bFieldTypeSecond FieldType to compare.

Returns: boolean - True if FieldType objects are equal.

op_Inequality(FieldType a, FieldType b)

public static boolean op_Inequality(FieldType a, FieldType b)

Checks if two FieldType objects is inequal.

Parameters:

ParameterTypeDescription
aFieldTypeFirst FieldType to compare.
bFieldTypeSecond FieldType to compare.

Returns: boolean - True if FieldType objects aren’t equal.

getSlideNumber()

public static FieldType getSlideNumber()

Current slide’s number. Read-only FieldType.

Returns: FieldType

getFooter()

public static FieldType getFooter()

Slide’s footer. Read-only FieldType.

Returns: FieldType

getHeader()

public static FieldType getHeader()

Slide’s header. Read-only FieldType.

Returns: FieldType

getDateTime()

public static FieldType getDateTime()

Current date and time in default date time format for the rendering application. Read-only FieldType.

Returns: FieldType

getDateTime1()

public static FieldType getDateTime1()

Current date and time in a first predefined format (MM/DD/YYYY for english). Read-only FieldType.

Returns: FieldType

getDateTime2()

public static FieldType getDateTime2()

Current date and time in a second predefined format (Day, Month DD, YYYY for english). Read-only FieldType.

Returns: FieldType

getDateTime3()

public static FieldType getDateTime3()

Current date and time in a third predefined format (DD Month YYYY for english). Read-only FieldType.

Returns: FieldType

getDateTime4()

public static FieldType getDateTime4()

Current date and time in a fourth predefined format (Month DD, YYYY for english). Read-only FieldType.

Returns: FieldType

getDateTime5()

public static FieldType getDateTime5()

Current date and time in a fifth predefined format (DD-Mon-YY for english). Read-only FieldType.

Returns: FieldType

getDateTime6()

public static FieldType getDateTime6()

Current date and time in a sixth predefined format (Month YY for english). Read-only FieldType.

Returns: FieldType

getDateTime7()

public static FieldType getDateTime7()

Current date and time in a seventh predefined format (Mon-YY for english). Read-only FieldType.

Returns: FieldType

getDateTime8()

public static FieldType getDateTime8()

Current date and time in a eighth predefined format (MM/DD/YYYY hh:mm AM/PM for english). Read-only FieldType.

Returns: FieldType

getDateTime9()

public static FieldType getDateTime9()

Current date and time in a ninth predefined format (MM/DD/YYYY hh:mm:ss AM/PM for english). Read-only FieldType.

Returns: FieldType

getDateTime10()

public static FieldType getDateTime10()

Current date and time in a tenth predefined format (hh:mm for english). Read-only FieldType.

Returns: FieldType

getDateTime11()

public static FieldType getDateTime11()

Current date and time in a eleventh predefined format (hh:mm:ss for english). Read-only FieldType.

Returns: FieldType

getDateTime12()

public static FieldType getDateTime12()

Current date and time in a twelfth predefined format (hh:mm AM/PM for english). Read-only FieldType.

Returns: FieldType

getDateTime13()

public static FieldType getDateTime13()

Current date and time in a thirteenth predefined format (hh:mm:ss AM/PM for english). Read-only FieldType.

Returns: FieldType