public class AttributeDescriptor
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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)
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)