|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.AttributeDescriptor
public class AttributeDescriptor
Represents information about a single attribute of a point.
Constructor Summary | |
---|---|
AttributeDescriptor(int storageType)
Create an unnamed AttributeDescriptor from the given type. |
|
AttributeDescriptor(int storageType,
java.lang.String name)
Create an AttributeDescriptor from the given type and name. |
|
AttributeDescriptor(java.lang.String storageType)
Create an unnamed AttributeDescriptor from the given type string. |
|
AttributeDescriptor(java.lang.String storageType,
java.lang.String name)
Create an AttributeDescriptor from the given typestring and name. |
|
AttributeDescriptor(TypeTable table,
java.lang.String type,
java.lang.String name)
Create an AttributeDescriptor from the given typestring and name and give TypeTable. |
Method Summary | |
---|---|
int |
byteSize()
Return the number of bytes occupied by an instance of the attribute described by this AttributeDescriptor. |
java.lang.Object |
clone()
Return a copy of the AttributeDescriptor as an Object. |
AttributeDescriptor |
copy()
Clones the object and returns a reference to a cloned AttributeDescriptor. |
boolean |
equals(java.lang.Object o)
True if the argument is equal to this AttributeDescriptor, false otherwise. |
int |
getStorageType()
Return the storage type of the attribute as an int constant. |
static int |
getStorageType(int type)
Extract and return the storage type encoded in the integer argument. |
java.lang.String |
getTypeName()
Return the type name of this AttributeDescriptor as a String. |
int |
getUserTypeNumber()
Extract and return the user type number for this AttributeDescriptor. |
static int |
getUserTypeNumber(int type)
Extract and return the user type encoded in the integer argument. |
boolean |
isUserType()
Returns true if this AttributeDescriptor has a user defined type, false otherwise. |
static void |
main(java.lang.String[] args)
For debugging and testing. |
java.lang.String |
name()
Return the name of the attribute as a string. |
java.lang.String |
toString()
Returns a String representation of the AttributeDescriptor. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeDescriptor(int storageType, java.lang.String name)
public AttributeDescriptor(int storageType)
public AttributeDescriptor(java.lang.String storageType)
public AttributeDescriptor(TypeTable table, java.lang.String type, java.lang.String name)
public AttributeDescriptor(java.lang.String storageType, java.lang.String name)
Method Detail |
---|
public AttributeDescriptor copy()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String name()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isUserType()
public int getStorageType()
public static int getStorageType(int type)
public int getUserTypeNumber()
public static int getUserTypeNumber(int type)
public java.lang.String getTypeName()
public final int byteSize()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |