Package net.webpdf.wsclient.openapi
Class MetadataFormDocument
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataFormDocument
-
public class MetadataFormDocument extends Object
Describes the properties of the document's form. (Should the document contain a form.)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataFormDocument.FormTypeEnumWhen set to another value than \"none\", the document does contain a PDF form in the hereby given format
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DEFAULT_APPEARANCEstatic StringJSON_PROPERTY_FIELDstatic StringJSON_PROPERTY_FORM_TYPEstatic StringJSON_PROPERTY_NEED_APPEARANCESstatic StringJSON_PROPERTY_OBJECT_KEY
-
Constructor Summary
Constructors Constructor Description MetadataFormDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataFormDocumentaddFieldItem(MetadataField fieldItem)MetadataFormDocumentdefaultAppearance(String defaultAppearance)booleanequals(Object o)MetadataFormDocumentfield(List<MetadataField> field)MetadataFormDocumentformType(MetadataFormDocument.FormTypeEnum formType)@Nullable StringgetDefaultAppearance()If present, this contains the default appearance of the form's fields.@Nullable List<MetadataField>getField()Get field@Nullable MetadataFormDocument.FormTypeEnumgetFormType()When set to another value than \"none\", the document does contain a PDF form in the hereby given format@Nullable BooleangetNeedAppearances()When set to \"true\" the displaying Application shall generate appearances for all widgets defining the document's form.@Nullable StringgetObjectKey()The object ID of the form.inthashCode()MetadataFormDocumentneedAppearances(Boolean needAppearances)MetadataFormDocumentobjectKey(String objectKey)voidsetDefaultAppearance(String defaultAppearance)voidsetField(List<MetadataField> field)voidsetFormType(MetadataFormDocument.FormTypeEnum formType)voidsetNeedAppearances(Boolean needAppearances)voidsetObjectKey(String objectKey)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DEFAULT_APPEARANCE
public static final String JSON_PROPERTY_DEFAULT_APPEARANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIELD
public static final String JSON_PROPERTY_FIELD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORM_TYPE
public static final String JSON_PROPERTY_FORM_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NEED_APPEARANCES
public static final String JSON_PROPERTY_NEED_APPEARANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultAppearance
public MetadataFormDocument defaultAppearance(String defaultAppearance)
-
getDefaultAppearance
@Nullable public @Nullable String getDefaultAppearance()
If present, this contains the default appearance of the form's fields. This shall be a string containing graphics and text state operators for example defining text colors, sizes etc.- Returns:
- defaultAppearance
-
setDefaultAppearance
public void setDefaultAppearance(String defaultAppearance)
-
field
public MetadataFormDocument field(List<MetadataField> field)
-
addFieldItem
public MetadataFormDocument addFieldItem(MetadataField fieldItem)
-
getField
@Nullable public @Nullable List<MetadataField> getField()
Get field- Returns:
- field
-
setField
public void setField(List<MetadataField> field)
-
formType
public MetadataFormDocument formType(MetadataFormDocument.FormTypeEnum formType)
-
getFormType
@Nullable public @Nullable MetadataFormDocument.FormTypeEnum getFormType()
When set to another value than \"none\", the document does contain a PDF form in the hereby given format. * none = The document does not contain a form. * acroForm = The document contains a standard PDF Acroform. * staticXFA = The document contains a \"XML Forms Architecture\" form with a fixed layout (static). * dynamicXFA = The document contains a \"XML Forms Architecture\" form with an adaptable/interactive layout (dynamic).- Returns:
- formType
-
setFormType
public void setFormType(MetadataFormDocument.FormTypeEnum formType)
-
needAppearances
public MetadataFormDocument needAppearances(Boolean needAppearances)
-
getNeedAppearances
@Nullable public @Nullable Boolean getNeedAppearances()
When set to \"true\" the displaying Application shall generate appearances for all widgets defining the document's form.- Returns:
- needAppearances
-
setNeedAppearances
public void setNeedAppearances(Boolean needAppearances)
-
objectKey
public MetadataFormDocument objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the form. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.- Returns:
- objectKey
-
setObjectKey
public void setObjectKey(String objectKey)
-
-