Class FieldMetadata
java.lang.Object
fr.opensagres.xdocreport.template.formatter.FieldMetadata
Field metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldMetadata(FieldsMetadata fieldsMetadata, String fieldName, boolean listType, String imageName, String syntaxKind, boolean syntaxWithDirective) -
Method Summary
Modifier and TypeMethodDescriptionReturns the "field" behavior to use when the stream of the image is null.Returns the field name.Returns the image name.booleanReturns true if field is image type and false otherwise.booleanReturns true if field is list type and false otherwise.booleanbooleanvoidsetBehaviour(NullImageBehaviour behaviour) Set the "field" behaviour to use when the stream of the image is null.voidsetDescription(String description) voidsetImageName(String imageName) Set image name.voidsetListType(boolean listType) Set true if field is list type and false otherwise.voidsetSyntaxKind(String syntaxKind) voidsetSyntaxWithDirective(boolean syntaxWithDirective) voidsetUseImageSize(boolean useImageSize)
-
Constructor Details
-
FieldMetadata
public FieldMetadata(FieldsMetadata fieldsMetadata, String fieldName, boolean listType, String imageName, String syntaxKind, boolean syntaxWithDirective)
-
-
Method Details
-
getFieldName
Returns the field name.- Returns:
-
getImageName
Returns the image name.- Returns:
-
isListType
public boolean isListType()Returns true if field is list type and false otherwise.- Returns:
-
setListType
public void setListType(boolean listType) Set true if field is list type and false otherwise.- Parameters:
listType-
-
isImageType
public boolean isImageType()Returns true if field is image type and false otherwise.- Returns:
-
setImageName
Set image name.- Parameters:
imageName-
-
getSyntaxKind
-
isSyntaxWithDirective
public boolean isSyntaxWithDirective() -
setSyntaxKind
-
setSyntaxWithDirective
public void setSyntaxWithDirective(boolean syntaxWithDirective) -
setDescription
-
getDescription
-
getBehaviour
Returns the "field" behavior to use when the stream of the image is null.- Returns:
-
setBehaviour
Set the "field" behaviour to use when the stream of the image is null.- Parameters:
behaviour-
-
isUseImageSize
public boolean isUseImageSize() -
setUseImageSize
public void setUseImageSize(boolean useImageSize)
-