Package net.webpdf.wsclient.openapi
Class MetadataField
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataField
-
public class MetadataField extends Object
Lists the properties of a PDF form field.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALTERNATE_NAMEstatic StringJSON_PROPERTY_ANNOTATIONstatic StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_FULLY_QUALIFIED_NAMEstatic StringJSON_PROPERTY_IS_RICH_TEXTstatic StringJSON_PROPERTY_MAPPING_NAMEstatic StringJSON_PROPERTY_MULTI_SELECTstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NO_EXPORTstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_READ_ONLYstatic StringJSON_PROPERTY_REQUIREDstatic StringJSON_PROPERTY_SIGNATUREstatic StringJSON_PROPERTY_SUB_TYPEstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description MetadataField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataFieldaddAnnotationItem(MetadataAnnotation annotationItem)MetadataFieldaddValueItem(MetadataFormValueStyle valueItem)MetadataFieldalternateName(String alternateName)MetadataFieldannotation(List<MetadataAnnotation> annotation)MetadataFieldcontent(String content)booleanequals(Object o)MetadataFieldfullyQualifiedName(String fullyQualifiedName)@Nullable StringgetAlternateName()The alternate name of the form field.@Nullable List<MetadataAnnotation>getAnnotation()Selects the visible representation (widget annotation) for the form field.@Nullable StringgetContent()The textual content of the form field.@Nullable StringgetFullyQualifiedName()The fully qualified name of the form field.@Nullable BooleangetIsRichText()When set to true, the field contains rich text formatted content.@Nullable StringgetMappingName()The mapping name of the form field.@Nullable BooleangetMultiSelect()When set to true, the form field allows multiple items to be seleted.@Nullable StringgetName()The partial name of the form field.@Nullable BooleangetNoExport()When set to true, the form field shall not be included in exports of the document's form data.@Nullable StringgetObjectKey()The object ID of the form field.@Nullable BooleangetReadOnly()When set to true, the form field's contents may be displayed but not altered.@Nullable BooleangetRequired()When set to true, the form field must be filled in.@Nullable MetadataSignaturegetSignature()Get signature@Nullable StringgetSubType()The implementation name of the the form field.@Nullable StringgetType()Indicates the type of the form field@Nullable List<MetadataFormValueStyle>getValue()Get valueinthashCode()MetadataFieldisRichText(Boolean isRichText)MetadataFieldmappingName(String mappingName)MetadataFieldmultiSelect(Boolean multiSelect)MetadataFieldname(String name)MetadataFieldnoExport(Boolean noExport)MetadataFieldobjectKey(String objectKey)MetadataFieldreadOnly(Boolean readOnly)MetadataFieldrequired(Boolean required)voidsetAlternateName(String alternateName)voidsetAnnotation(List<MetadataAnnotation> annotation)voidsetContent(String content)voidsetFullyQualifiedName(String fullyQualifiedName)voidsetIsRichText(Boolean isRichText)voidsetMappingName(String mappingName)voidsetMultiSelect(Boolean multiSelect)voidsetName(String name)voidsetNoExport(Boolean noExport)voidsetObjectKey(String objectKey)voidsetReadOnly(Boolean readOnly)voidsetRequired(Boolean required)voidsetSignature(MetadataSignature signature)voidsetSubType(String subType)voidsetType(String type)voidsetValue(List<MetadataFormValueStyle> value)MetadataFieldsignature(MetadataSignature signature)MetadataFieldsubType(String subType)StringtoString()MetadataFieldtype(String type)MetadataFieldvalue(List<MetadataFormValueStyle> value)
-
-
-
Field Detail
-
JSON_PROPERTY_ALTERNATE_NAME
public static final String JSON_PROPERTY_ALTERNATE_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ANNOTATION
public static final String JSON_PROPERTY_ANNOTATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_CONTENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FULLY_QUALIFIED_NAME
public static final String JSON_PROPERTY_FULLY_QUALIFIED_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IS_RICH_TEXT
public static final String JSON_PROPERTY_IS_RICH_TEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAPPING_NAME
public static final String JSON_PROPERTY_MAPPING_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MULTI_SELECT
public static final String JSON_PROPERTY_MULTI_SELECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NO_EXPORT
public static final String JSON_PROPERTY_NO_EXPORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_READ_ONLY
public static final String JSON_PROPERTY_READ_ONLY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUIRED
public static final String JSON_PROPERTY_REQUIRED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIGNATURE
public static final String JSON_PROPERTY_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_TYPE
public static final String JSON_PROPERTY_SUB_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
alternateName
public MetadataField alternateName(String alternateName)
-
getAlternateName
@Nullable public @Nullable String getAlternateName()
The alternate name of the form field.- Returns:
- alternateName
-
setAlternateName
public void setAlternateName(String alternateName)
-
annotation
public MetadataField annotation(List<MetadataAnnotation> annotation)
-
addAnnotationItem
public MetadataField addAnnotationItem(MetadataAnnotation annotationItem)
-
getAnnotation
@Nullable public @Nullable List<MetadataAnnotation> getAnnotation()
Selects the visible representation (widget annotation) for the form field.- Returns:
- annotation
-
setAnnotation
public void setAnnotation(List<MetadataAnnotation> annotation)
-
content
public MetadataField content(String content)
-
getContent
@Nullable public @Nullable String getContent()
The textual content of the form field. A single string or a comma-separated list of string values for list types.- Returns:
- content
-
setContent
public void setContent(String content)
-
fullyQualifiedName
public MetadataField fullyQualifiedName(String fullyQualifiedName)
-
getFullyQualifiedName
@Nullable public @Nullable String getFullyQualifiedName()
The fully qualified name of the form field.- Returns:
- fullyQualifiedName
-
setFullyQualifiedName
public void setFullyQualifiedName(String fullyQualifiedName)
-
isRichText
public MetadataField isRichText(Boolean isRichText)
-
getIsRichText
@Nullable public @Nullable Boolean getIsRichText()
When set to true, the field contains rich text formatted content.- Returns:
- isRichText
-
setIsRichText
public void setIsRichText(Boolean isRichText)
-
mappingName
public MetadataField mappingName(String mappingName)
-
getMappingName
@Nullable public @Nullable String getMappingName()
The mapping name of the form field.- Returns:
- mappingName
-
setMappingName
public void setMappingName(String mappingName)
-
multiSelect
public MetadataField multiSelect(Boolean multiSelect)
-
getMultiSelect
@Nullable public @Nullable Boolean getMultiSelect()
When set to true, the form field allows multiple items to be seleted.- Returns:
- multiSelect
-
setMultiSelect
public void setMultiSelect(Boolean multiSelect)
-
name
public MetadataField name(String name)
-
getName
@Nullable public @Nullable String getName()
The partial name of the form field.- Returns:
- name
-
setName
public void setName(String name)
-
noExport
public MetadataField noExport(Boolean noExport)
-
getNoExport
@Nullable public @Nullable Boolean getNoExport()
When set to true, the form field shall not be included in exports of the document's form data.- Returns:
- noExport
-
setNoExport
public void setNoExport(Boolean noExport)
-
objectKey
public MetadataField objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the form field. **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)
-
readOnly
public MetadataField readOnly(Boolean readOnly)
-
getReadOnly
@Nullable public @Nullable Boolean getReadOnly()
When set to true, the form field's contents may be displayed but not altered.- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
required
public MetadataField required(Boolean required)
-
getRequired
@Nullable public @Nullable Boolean getRequired()
When set to true, the form field must be filled in.- Returns:
- required
-
setRequired
public void setRequired(Boolean required)
-
signature
public MetadataField signature(MetadataSignature signature)
-
getSignature
@Nullable public @Nullable MetadataSignature getSignature()
Get signature- Returns:
- signature
-
setSignature
public void setSignature(MetadataSignature signature)
-
subType
public MetadataField subType(String subType)
-
getSubType
@Nullable public @Nullable String getSubType()
The implementation name of the the form field.- Returns:
- subType
-
setSubType
public void setSubType(String subType)
-
type
public MetadataField type(String type)
-
getType
@Nullable public @Nullable String getType()
Indicates the type of the form field. * Btn = Button * Tx = Textfield * Ch = Choicefield * Sig = Signaturefield- Returns:
- type
-
setType
public void setType(String type)
-
value
public MetadataField value(List<MetadataFormValueStyle> value)
-
addValueItem
public MetadataField addValueItem(MetadataFormValueStyle valueItem)
-
getValue
@Nullable public @Nullable List<MetadataFormValueStyle> getValue()
Get value- Returns:
- value
-
setValue
public void setValue(List<MetadataFormValueStyle> value)
-
-