public class DomainStructureDef extends java.lang.Object implements StructureDef
| Constructor and Description |
|---|
DomainStructureDef(AttributeDef[] attrDefs) |
| Modifier and Type | Method and Description |
|---|---|
AttributeDef |
findAttributeDef(java.lang.String name)
Gets an attribute definition by name.
|
int |
getAttributeCount()
Counts the defined attributes.
|
AttributeDef |
getAttributeDef(int index)
Gets an attribute definition by index.
|
AttributeDef[] |
getAttributeDefs()
Gets the defined attributes.
|
int |
getAttributeIndexOf(java.lang.String name)
Finds the index (0-based) of the named attribute.
|
java.lang.String |
getColumnNameForQuery(int index) |
java.lang.String |
getDefFullName()
Returns the fully qualified name of the structure's base definition.
|
java.lang.String |
getDefName()
Returns the structure's base definition name (short form).
|
java.lang.String |
getFullName()
Returns the structure's fully qualified name.
|
java.lang.String |
getName()
Returns the structure's name (short form).
|
AttributeDef |
lookupAttributeDef(java.lang.String name)
Gets an attribute definition by name.
|
public DomainStructureDef(AttributeDef[] attrDefs)
public java.lang.String getName()
StructureDefgetName in interface StructureDefpublic java.lang.String getFullName()
StructureDefgetFullName in interface StructureDefpublic java.lang.String getDefName()
StructureDefgetName() returns the VO's
instance name and getDefName() returns the
View definition's name.
getDefName in interface StructureDefpublic java.lang.String getDefFullName()
StructureDefgetFullName() returns the VO's
full instance name and getDefFullName() returns the
View definition's full name.
getDefFullName in interface StructureDefpublic AttributeDef[] getAttributeDefs()
getAttributeDefs in interface StructureDefpublic int getAttributeCount()
getAttributeCount in interface StructureDefpublic AttributeDef findAttributeDef(java.lang.String name)
findAttributeDef in interface StructureDefname - the name of an AttributeDef.null if not found.public AttributeDef lookupAttributeDef(java.lang.String name)
lookupAttributeDef in interface StructureDefname - the name of an AttributeDef.null if not found.public AttributeDef getAttributeDef(int index)
getAttributeDef in interface StructureDefindex - the index of an AttributeDef, where the leftmost
attribute has index zero.public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery in interface StructureDefpublic int getAttributeIndexOf(java.lang.String name)
StructureDefgetAttributeIndexOf in interface StructureDefname - the attribute's name.0 to getAttributeCount() - 1.
If the named attribute is not found, it returns -1.