Package com.datalogics.PDFL
Class CollectionSchemaField
java.lang.Object
com.datalogics.PDFL.CollectionSchemaField
Allows for the creation of collection schema field objects. Parameters that are part of a schema's field may be set.
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionSchemaField(String fieldID, SchemaFieldSubtype subtype) CCollectionSchemaField allows to create CollectionSchemaField object. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanGetEditable allows to obtain information about edit mode of the current field.getID()GetID allows to obtain the unique id with which schema field has been created.intgetIndex()GetIndex allows to obtain field index.getName()GetName allows to obtain field name.GetSubtype allows to obtain the field subtype.booleanGetVisible allows to obtain information about filed visibility.voidsetEditable(boolean isEditable) SetEditable allows to change edit mode for shema field. Its value false by default.voidsetIndex(int idx) SetIndex allows to set field index.voidSetName allows to change field name.voidsetVisible(boolean isVisible) SetVisible allows to set field's default visibility. Its value true by default.
-
Constructor Details
-
CollectionSchemaField
CCollectionSchemaField allows to create CollectionSchemaField object. The constructor accepts identifier value and subtype required by the schema field.- Parameters:
fieldID- the schema field ID. The ID is used during creation and extraction of the schema field. It is the unique identifier of the schema field.subtype- the schema field subtype. The subtypes are predefined. The value of this parameter must correspond to the one of the SchemaFieldSubtype enum values.
-
-
Method Details
-
delete
public void delete() -
getID
GetID allows to obtain the unique id with which schema field has been created.- Returns:
- the unique field's id.
-
getName
GetName allows to obtain field name.- Returns:
- the field name.
-
setName
SetName allows to change field name.- Parameters:
name- the new field name.
-
getSubtype
GetSubtype allows to obtain the field subtype.- Returns:
- field subtype. One of the ShemaFieldSubtype enum values.
-
setIndex
public void setIndex(int idx) SetIndex allows to set field index. NOTE: the field indexes are zero-based in ascending order without gaps.- Parameters:
idx- field index.
-
getIndex
public int getIndex()GetIndex allows to obtain field index.- Returns:
- the index of the field.
-
setVisible
public void setVisible(boolean isVisible) SetVisible allows to set field's default visibility. Its value true by default.- Parameters:
isVisible- the visibility flag.
-
getVisible
public boolean getVisible()GetVisible allows to obtain information about filed visibility.- Returns:
- true if current schema field is visible, false otherwise.
-
setEditable
public void setEditable(boolean isEditable) SetEditable allows to change edit mode for shema field. Its value false by default.- Parameters:
isEditable- pass true to allow to edit this field or false otherwise.
-
getEditable
public boolean getEditable()GetEditable allows to obtain information about edit mode of the current field.- Returns:
- whether edit mode is allowed or not.
-