Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OFType ¶
type OFType int
const ( OFT_UNKNOWN OFType = iota OFT_NUMERIC // Any base 10 numeric form OFT_TEXTUAL // Any string/text form OFT_DATETIME // Any valid date and/or time form OFT_BOOLEAN // Any boolean form OFT_BYTE // any 8 bit form OFT_SHORT // any 16 bit form OFT_INT // any 32 bit form OFT_LONG // any 64 but form OFT_FLOAT // any floating point "real" value OFT_DOUBLE // any double-precision "real" value OFT_FIXED // any fixed point "real" value OFT_STRING // any ASCII string OFT_CHAR // any ASCII single character OFT_MBSTRING // any multibyte string OFT_MBCHAR // any multibyte single character )
type ObjectField ¶
type ObjectField struct {
// contains filtered or unexported fields
}
Association of Type and value for a single Object Field
func NewObjectField ¶
func NewObjectField(name string) *ObjectField
func (ObjectField) GetName ¶
func (r ObjectField) GetName() string
func (ObjectField) GetType ¶
func (r ObjectField) GetType() *ObjectFieldType
func (ObjectField) GetValue ¶
func (r ObjectField) GetValue() *string
func (*ObjectField) MarshalJSON ¶
func (r *ObjectField) MarshalJSON() ([]byte, error)
func (*ObjectField) SetType ¶
func (r *ObjectField) SetType(ofType ObjectFieldTypeIfc)
func (*ObjectField) SetValue ¶
func (r *ObjectField) SetValue(value *string)
type ObjectFieldIfc ¶
type ObjectFieldIfc interface {
GetName() string
GetType() *ObjectFieldType
SetType(ofType ObjectFieldTypeIfc)
GetValue() *string
SetValue(value *string)
}
type ObjectFieldType ¶
type ObjectFieldType struct {
// contains filtered or unexported fields
}
func NewObjectFieldType ¶
func NewObjectFieldType() *ObjectFieldType
func NewObjectFieldTypeFromOFType ¶
func NewObjectFieldTypeFromOFType(ofType OFType) *ObjectFieldType
func NewObjectFieldTypeFromString ¶
func NewObjectFieldTypeFromString(strType string) *ObjectFieldType
func (ObjectFieldType) GetType ¶
func (r ObjectFieldType) GetType() OFType
func (ObjectFieldType) IsValid ¶
func (r ObjectFieldType) IsValid(value *string) bool
Validate the supplied value against our type
func (*ObjectFieldType) SetType ¶
func (r *ObjectFieldType) SetType(ofType OFType)
func (ObjectFieldType) ToString ¶
func (r ObjectFieldType) ToString() string
Return a readable string for each possible type
Click to show internal directories.
Click to hide internal directories.