|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.dbobj.PartDescriptor
public class PartDescriptor
Encapsulation of a part of a node. Parts can be other nodes or (owned) attributes, and have various characteristics.
Field Summary | |
---|---|
static String |
DELIMITER
|
static boolean |
IS_NODE_OBJECT
|
static boolean |
IS_OWNED
|
static int |
MULTIPLE_ITEM_ALLOWED
|
static String |
PART_DISPAY_NAME
|
static String |
PART_HELP_STRING
|
static int |
PICKLIST_SINGLE_ITEM
|
static int |
SINGLE_ITEM_ALLOWED
cardinalities |
static int |
SUMMARY_SINGLE_ITEM
|
Constructor Summary | |
---|---|
PartDescriptor(String label,
boolean isNodeObject,
String attributeType,
int partNum,
int areManyAllowed)
constructor for attributes which have no summary |
|
PartDescriptor(String label,
boolean isNodeObject,
String attributeType,
int partNum,
int areManyAllowed,
String relation)
constructor for attributes which HAVE summary |
|
PartDescriptor(String label,
boolean isNodeObject,
String relation,
int partNum,
String typeNode)
constructor for shared nodes |
Method Summary | |
---|---|
boolean |
areMultipleAttributesAllowed()
|
String |
getAttribLimit()
|
String |
getCardinalityString()
|
IPartHandler |
getCustomHandler()
|
String |
getDisplayTitleOfParentNodeType(int requestingUid)
return display title of node type of parent node, or empty string "" if not found |
String |
getParentObjectType()
|
List |
getPicklist(int userId)
|
String[][] |
getPicklistArray(int userId)
|
boolean |
hasCustomHandler()
|
boolean |
hasPicklist()
|
boolean |
isAttribute()
|
boolean |
isNode()
|
boolean |
isSummary()
|
String |
label()
the label for this part which will appear in displays |
int |
numDisplayLines()
|
int |
partNum()
|
String |
relation()
|
void |
setCardinality(int cardinality)
|
void |
setCustomHandler(IPartHandler customHandler)
|
void |
setParentObjectType(String parentObjectType)
|
String |
typeOfPart()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean IS_NODE_OBJECT
public static final boolean IS_OWNED
public static final String PART_DISPAY_NAME
public static final String PART_HELP_STRING
public static final int SINGLE_ITEM_ALLOWED
public static final int MULTIPLE_ITEM_ALLOWED
public static final int PICKLIST_SINGLE_ITEM
public static final int SUMMARY_SINGLE_ITEM
public static final String DELIMITER
Constructor Detail |
---|
public PartDescriptor(String label, boolean isNodeObject, String relation, int partNum, String typeNode)
public PartDescriptor(String label, boolean isNodeObject, String attributeType, int partNum, int areManyAllowed)
public PartDescriptor(String label, boolean isNodeObject, String attributeType, int partNum, int areManyAllowed, String relation)
relation
- is the object name for items to summarizeMethod Detail |
---|
public boolean isNode()
public boolean isAttribute()
public String label()
public String relation()
public String typeOfPart()
public int partNum()
public String getDisplayTitleOfParentNodeType(int requestingUid)
public String[][] getPicklistArray(int userId) throws Exception
Exception
public List getPicklist(int userId) throws Exception
Exception
public boolean hasPicklist()
public boolean isSummary()
public boolean areMultipleAttributesAllowed()
public String getParentObjectType()
public void setParentObjectType(String parentObjectType)
public String getAttribLimit()
public boolean hasCustomHandler()
public IPartHandler getCustomHandler()
public void setCustomHandler(IPartHandler customHandler)
public void setCardinality(int cardinality)
cardinality
- use internal int flagsand related constants
public int numDisplayLines()
public String getCardinalityString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |