public class StructureDefHelper extends java.lang.Object implements StructureDef
| Modifier and Type | Field and Description | 
|---|---|
| protected AttributeDef[] | attributeList | 
| protected java.util.Hashtable | attributes | 
| protected java.lang.String | mDefFullName | 
| protected java.lang.String | mDefName | 
| protected java.lang.String | mFullName | 
| protected java.lang.String | mName | 
| Constructor and Description | 
|---|
| StructureDefHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| AttributeDef | addDynamicAttribute(java.lang.String name,
                   int index) | 
| AttributeDef | addViewLinkAccessor(java.lang.String name,
                   int index) | 
| protected AttributeDef | addViewLinkAccessorInternal(java.lang.String name,
                           int index) | 
| AttributeDef | findAttributeDef(java.lang.String attrName)Gets an attribute definition, given its name. | 
| int | getAttributeCount()Returns the number of defined attributes. | 
| AttributeDef | getAttributeDef(int index)Gets an attribute definition, given its 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). | 
| protected AttributeDefHelper | getNewAttributeDefHelper() | 
| AttributeDef | lookupAttributeDef(java.lang.String name)Gets an attribute definition, given its name. | 
| void | removeViewLinkAccessor(AttributeDef accr) | 
| void | setName(java.lang.String name) | 
protected java.lang.String mName
protected java.lang.String mFullName
protected java.lang.String mDefName
protected java.lang.String mDefFullName
protected java.util.Hashtable attributes
protected AttributeDef[] attributeList
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 void setName(java.lang.String name)
public AttributeDef[] getAttributeDefs()
StructureDefgetAttributeDefs in interface StructureDefpublic int getAttributeCount()
StructureDefgetAttributeCount in interface StructureDefpublic AttributeDef findAttributeDef(java.lang.String attrName)
StructureDeffindAttributeDef in interface StructureDefattrName - the name of an AttributeDef.public AttributeDef lookupAttributeDef(java.lang.String name)
StructureDeflookupAttributeDef in interface StructureDefname - the name of an AttributeDef.public AttributeDef getAttributeDef(int index)
StructureDefgetAttributeDef in interface StructureDefindex - the index of an AttributeDef, where the leftmost
 attribute has index zero.public 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.public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery in interface StructureDefprotected AttributeDefHelper getNewAttributeDefHelper()
public AttributeDef addDynamicAttribute(java.lang.String name, int index)
public AttributeDef addViewLinkAccessor(java.lang.String name, int index)
protected AttributeDef addViewLinkAccessorInternal(java.lang.String name, int index)
public void removeViewLinkAccessor(AttributeDef accr)