Class ResultSpecification
- java.lang.Object
-
- org.apache.manifoldcf.core.interfaces.ResultSpecification
-
public class ResultSpecification extends java.lang.ObjectAn instance of this class is used to specify the result form of a column, if more than one form is possible. If no form is specified, then a default form will be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classResultSpecification.ColumnSpecification
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashMapcolumnSpecificationsThis map has a column name as a key, and a ColumnSpecification object as a valuestatic intFORM_DEFAULTstatic intFORM_STREAMstatic intFORM_STRING
-
Constructor Summary
Constructors Constructor Description ResultSpecification()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Check equalsintgetForm(java.lang.String columnName)Get the specified form of a columninthashCode()Calculate a hash valuevoidsetForm(java.lang.String columnName, int formValue)Specify that a column is to be read as a file stream, if possiblejava.lang.StringtoString()Convert to a unique string
-
-
-
Field Detail
-
FORM_DEFAULT
public static final int FORM_DEFAULT
- See Also:
- Constant Field Values
-
FORM_STRING
public static final int FORM_STRING
- See Also:
- Constant Field Values
-
FORM_STREAM
public static final int FORM_STREAM
- See Also:
- Constant Field Values
-
columnSpecifications
protected java.util.HashMap columnSpecifications
This map has a column name as a key, and a ColumnSpecification object as a value
-
-
Method Detail
-
hashCode
public int hashCode()
Calculate a hash value- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Check equals- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Convert to a unique string- Overrides:
toStringin classjava.lang.Object
-
setForm
public void setForm(java.lang.String columnName, int formValue)Specify that a column is to be read as a file stream, if possible
-
getForm
public int getForm(java.lang.String columnName)
Get the specified form of a column
-
-