Package com.attivio.sdk.schema
Class UserDefinedFieldDef
- java.lang.Object
-
- com.attivio.sdk.schema.UserDefinedFieldDef
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,java.lang.Cloneable
public class UserDefinedFieldDef extends java.lang.Object implements java.io.Externalizable, java.lang.Cloneable
Definition for a User Defined Field.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TimeResolution
DEFAULT_DATE_RESOLUTION
static int
DEFAULT_DECIMAL_SCALE
-
Constructor Summary
Constructors Constructor Description UserDefinedFieldDef()
UserDefinedFieldDef(java.lang.String name, SchemaField.Type type, java.lang.String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDefinedFieldDef
clone()
boolean
equals(java.lang.Object other)
java.lang.String
getClassName()
Get the class name for the user defined field implementation.TimeResolution
getDateResolution()
Get the resolution forSchemaField.Type.DATE
type.int
getDecimalScale()
Get the scale forSchemaField.Type.DECIMAL
type.java.lang.String
getName()
Get the name for the user defined field.SchemaField.Type
getType()
Get the return type for the user defined field.int
hashCode()
void
readExternal(java.io.ObjectInput in)
void
setClassName(java.lang.String value)
Set the class name for the user defined field implementation.void
setDateResolution(TimeResolution value)
Set the resolution forSchemaField.Type.DATE
type.void
setDecimalScale(int value)
Set the scale forSchemaField.Type.DECIMAL
type.void
setName(java.lang.String value)
Set the name for the user defined field.void
setType(SchemaField.Type value)
Set the return type for the user defined field.java.lang.String
toString()
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
DEFAULT_DATE_RESOLUTION
public static TimeResolution DEFAULT_DATE_RESOLUTION
-
DEFAULT_DECIMAL_SCALE
public static int DEFAULT_DECIMAL_SCALE
-
-
Constructor Detail
-
UserDefinedFieldDef
public UserDefinedFieldDef()
-
UserDefinedFieldDef
public UserDefinedFieldDef(java.lang.String name, SchemaField.Type type, java.lang.String className)
-
-
Method Detail
-
getType
public SchemaField.Type getType()
Get the return type for the user defined field.
-
setType
public void setType(SchemaField.Type value)
Set the return type for the user defined field.
-
getName
public java.lang.String getName()
Get the name for the user defined field.
-
setName
public void setName(java.lang.String value)
Set the name for the user defined field.
-
getClassName
public java.lang.String getClassName()
Get the class name for the user defined field implementation.
-
setClassName
public void setClassName(java.lang.String value)
Set the class name for the user defined field implementation.
-
getDecimalScale
public int getDecimalScale()
Get the scale forSchemaField.Type.DECIMAL
type.
-
setDecimalScale
public void setDecimalScale(int value)
Set the scale forSchemaField.Type.DECIMAL
type.
-
getDateResolution
public TimeResolution getDateResolution()
Get the resolution forSchemaField.Type.DATE
type.
-
setDateResolution
public void setDateResolution(TimeResolution value)
Set the resolution forSchemaField.Type.DATE
type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public UserDefinedFieldDef clone()
- Overrides:
clone
in classjava.lang.Object
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
-