public class OAVAttributeType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
def
The default value (only supported for single-valued attributes).
|
protected int |
hashcode
Hash code (cached for speed).
|
protected OAVAttributeType |
idxattr
The index attribute (used for fetching the key value of an oav object).
|
static java.lang.String |
LIST
Constant for list multiplicity.
|
static java.lang.String |
MAP
Constant for map multiplicity.
|
protected java.lang.String |
mult
The multiplicity type.
|
static java.util.Set |
MULTIPLICITIES_ALL
Set of all multiplicity types (->use an enum).
|
static java.util.Set |
MULTIPLICITIES_MAPS
Set of map multiplicity types.
|
static java.util.Set |
MULTIPLICITIES_MULT
Set of collection multiplicity types.
|
protected java.lang.String |
name
The name of the OAV attribute type.
|
static java.lang.String |
NONE
Constants for no multiplicity.
|
static OAVAttributeType |
OBJECTTYPE |
static java.lang.String |
ORDEREDMAP
Constant for an ordered map multiplicity.
|
protected OAVObjectType |
otype
The object type having the attribute.
|
static java.lang.String |
QUEUE
Constants for queue multiplicity.
|
static java.lang.String |
SET
Constant for set multiplicity.
|
protected OAVObjectType |
type
The type.
|
Modifier | Constructor and Description |
---|---|
protected |
OAVAttributeType(OAVObjectType otype,
java.lang.String name,
OAVObjectType type,
java.lang.String mult,
java.lang.Object def,
OAVAttributeType idxattr)
Create a new OAV attribute type.
|
Modifier and Type | Method and Description |
---|---|
protected int |
calcHashCode()
Compute the hashcode.
|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
java.lang.Object |
getDefaultValue()
Get the default value.
|
OAVAttributeType |
getIndexAttribute()
Get the index attribute.
|
java.lang.String |
getMultiplicity()
Get the multiplicity.
|
java.lang.String |
getName()
Get the name of the OAV attribute type.
|
OAVObjectType |
getObjectType()
Get the object type (the type of the object holding this attribute).
|
OAVObjectType |
getType()
Get the attribute type (the type of the value stored via this attribute).
|
int |
hashCode()
Compute the hashcode.
|
java.lang.String |
toString()
Get the string representation.
|
public static final OAVAttributeType OBJECTTYPE
public static final java.lang.String NONE
public static final java.lang.String QUEUE
public static final java.lang.String LIST
public static final java.lang.String SET
public static final java.lang.String MAP
public static final java.lang.String ORDEREDMAP
public static final java.util.Set MULTIPLICITIES_ALL
public static final java.util.Set MULTIPLICITIES_MULT
public static final java.util.Set MULTIPLICITIES_MAPS
protected OAVObjectType otype
protected java.lang.String name
protected java.lang.String mult
protected OAVObjectType type
protected java.lang.Object def
protected OAVAttributeType idxattr
protected final int hashcode
protected OAVAttributeType(OAVObjectType otype, java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr)
otype
- The object type holding the attribute.name
- The name of the OAV attribute type.mult
- The multiplicity.type
- The type.def
- The default value.public OAVObjectType getObjectType()
public java.lang.String getName()
public java.lang.String getMultiplicity()
public OAVObjectType getType()
public java.lang.Object getDefaultValue()
public OAVAttributeType getIndexAttribute()
public java.lang.String toString()
toString
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
protected int calcHashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object