public class OAVObjectType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
attributes
The attribute descriptions.
|
protected java.lang.String |
name
The name of the OAV object type.
|
protected OAVObjectType |
supertype
The supertype of this type (if any).
|
protected OAVTypeModel |
tmodel
The type model.
|
Modifier | Constructor and Description |
---|---|
protected |
OAVObjectType(java.lang.String name,
OAVObjectType supertype,
OAVTypeModel tmodel)
Create a new OAV object type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributeType(OAVAttributeType attribute)
Add an attribute type description.
|
OAVAttributeType |
createAttributeType(java.lang.String name,
OAVObjectType type)
Create a new attribute type.
|
OAVAttributeType |
createAttributeType(java.lang.String name,
OAVObjectType type,
java.lang.String mult)
Create a new attribute type.
|
OAVAttributeType |
createAttributeType(java.lang.String name,
OAVObjectType type,
java.lang.String mult,
java.lang.Object def)
Create a new attribute type.
|
OAVAttributeType |
createAttributeType(java.lang.String name,
OAVObjectType type,
java.lang.String mult,
java.lang.Object def,
OAVAttributeType idxattr)
Create a new attribute type.
|
boolean |
equals(java.lang.Object object)
Test if two types are equal.
|
OAVAttributeType |
getAttributeType(java.lang.String attribute)
Get an attribute type description.
|
OAVAttributeType |
getAttributeType0(java.lang.String attribute)
Get an attribute type description.
|
OAVAttributeType |
getDeclaredAttributeType0(java.lang.String attribute)
Get an attribute type description.
|
java.util.Collection |
getDeclaredAttributeTypes()
Get the declared attribute types (i.e.
|
java.lang.String |
getName()
Get the name of the OAV object type.
|
OAVObjectType |
getSupertype()
Get the supertype of this typ.
|
OAVTypeModel |
getTypeModel()
Get the supertype of this typ.
|
int |
hashCode()
Get the hash code.
|
boolean |
isSubtype(OAVObjectType type)
Test if this type is same type or subtype of another type.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String name
protected OAVObjectType supertype
protected java.util.Map attributes
protected OAVTypeModel tmodel
protected OAVObjectType(java.lang.String name, OAVObjectType supertype, OAVTypeModel tmodel)
name
- The name of the OAV object type.supertype
- The supertype.public java.lang.String getName()
protected void addAttributeType(OAVAttributeType attribute)
attribute
- The OAV attribute type.public OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type)
name
- The name.type
- The type.mult
- The multiplicity.def
- The default value.public OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult)
name
- The name.type
- The type.mult
- The multiplicity.def
- The default value.public OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def)
name
- The name.type
- The type.mult
- The multiplicity.def
- The default value.public OAVAttributeType createAttributeType(java.lang.String name, OAVObjectType type, java.lang.String mult, java.lang.Object def, OAVAttributeType idxattr)
name
- The name.type
- The type.mult
- The multiplicity.def
- The default value.public OAVAttributeType getAttributeType(java.lang.String attribute)
attribute
- The name of the attribute.public OAVAttributeType getAttributeType0(java.lang.String attribute)
attribute
- The name of the attribute.public OAVAttributeType getDeclaredAttributeType0(java.lang.String attribute)
attribute
- The name of the attribute.public java.util.Collection getDeclaredAttributeTypes()
public OAVTypeModel getTypeModel()
public OAVObjectType getSupertype()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isSubtype(OAVObjectType type)
type
- The type to test.public java.lang.String toString()
toString
in class java.lang.Object