StringParameterInit

Inheritance: java.lang.Object, com.aspose.xps.metadata.PrintTicketElement, com.aspose.xps.metadata.ParameterInit

public abstract class StringParameterInit extends ParameterInit

Base class for all string parameter initializers.

Constructors

ConstructorDescription
StringParameterInit(String name, String value)Creates a new instance.

Methods

MethodDescription
getMinLength()For string values, defines the shortest allowed string.
getMaxLength()For string values, defines the shortest longest string.

StringParameterInit(String name, String value)

public StringParameterInit(String name, String value)

Creates a new instance.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe parameter name.
valuejava.lang.StringThe parameter value.

getMinLength()

public int getMinLength()

For string values, defines the shortest allowed string.

Returns: int - The shortest allowed string.

getMaxLength()

public int getMaxLength()

For string values, defines the shortest longest string.

Returns: int - The longest allowed string.