com.irisel.oms.olapi.beans
Class ClassVO

java.lang.Object
  extended by com.irisel.util.BaseBean
      extended by com.irisel.oms.olapi.beans.XMLBean
          extended by com.irisel.oms.olapi.beans.ClassVO
All Implemented Interfaces:
XMLBean, java.io.Serializable
Direct Known Subclasses:
ViewVO

public class ClassVO
extends XMLBean

See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_TABLE
           
static java.lang.String TYPE_VIEW
           
 
Fields inherited from class com.irisel.oms.olapi.beans.XMLBean
CLASSNAME, CLASSTYPE, DEFAULT_VISIBILITY, NOT_VISIBLE, VISIBLE
 
Fields inherited from interface com.irisel.util.XMLBean
CSV
 
Constructor Summary
ClassVO()
           
 
Method Summary
 void addOMSRelationVO(DirectedRelationVO r)
           
 void addOtherRole(RoleVO r)
           
 void addPropertyVO(PropertyVO p)
           
 void addRelation(RelationVO relvo)
           
 void addRole(RoleVO r)
           
 void export2csv(java.io.Writer out)
           
 RoleVO[] findOtherRoles(RelationVO rel)
           
 RoleVO[] findRoles(RelationVO rel)
           
 java.lang.String getComments()
           
 PropertyVO getDependentProperty(PropertyVO p)
          For multilevel lists, several properties in a class are associated with the same list, with different levels.
 javax.swing.Icon getIcon()
           
 java.lang.String[] getJavaClassNames()
           
 long getModelId()
           
 DirectedRelationVO[] getOmsRelationVOs()
           
 int getPropertyCount()
           
 int getPropertyIndex(java.lang.String propname)
          Returns the index of the property, or -1 if not found.
 java.lang.String[] getPropertyNames()
           
 PropertyVO getPropertyVOByName(java.lang.String name)
           
 PropertyVO[] getPropertyVOs()
           
 RelationVO getRelationVO(java.lang.String name)
           
 RelationVO[] getRelationVOs()
           
 java.lang.String[] getSearchablePropertyNames()
           
 java.lang.String getType()
           
 boolean isAttachmentEnabled()
           
 void setAttachmentEnabled(boolean attachmentEnabled)
           
 void setComments(java.lang.String comments)
           
 void setModelId(long modelId)
           
 void setPropertyVOs(PropertyVO[] propertyVOs)
           
 void setRelationVOs(RelationVO[] relationVOs)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class com.irisel.oms.olapi.beans.XMLBean
copyToInstance, getDescId, getGeneratedAt, getGenericAttr, getIconName, getId, getLabel, getName, getO, getOrd, getVisibility, isDirty, isEnabled, isErased, isMandatory, isReadOnly, readFromFile, readFromStream, setDescId, setDirty, setEnabled, setErased, setGeneratedAt, setGenericAttr, setIcon, setIconName, setId, setLabel, setName, setO, setOrd, setVisibility, toString, updateFromInstance, writeToFile, writeToStream, xmlSerialize
 
Methods inherited from class com.irisel.util.BaseBean
decode64, decode64bin, encode64, encode64bin, readObject, readObject64, toBean, toByteArray, toJSON, toJSONObject, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_VIEW

public static final java.lang.String TYPE_VIEW
See Also:
Constant Field Values

TYPE_TABLE

public static final java.lang.String TYPE_TABLE
See Also:
Constant Field Values
Constructor Detail

ClassVO

public ClassVO()
Method Detail

getPropertyVOs

public PropertyVO[] getPropertyVOs()

getPropertyVOByName

public PropertyVO getPropertyVOByName(java.lang.String name)

setPropertyVOs

public void setPropertyVOs(PropertyVO[] propertyVOs)

getPropertyNames

public java.lang.String[] getPropertyNames()

getDependentProperty

public PropertyVO getDependentProperty(PropertyVO p)
                                throws DataException
For multilevel lists, several properties in a class are associated with the same list, with different levels. For example, the selected value on level 1 will determine the child list (level 2) to be displayed for another property. This list of values for the second property is depends on the selected value of the first property. This method browses all the properties to find the property vo that matches the list name, and next level. If no such property is found, it will return null.

Parameters:
p - is a property of type List (level "N")
Returns:
property of type List and next level (level "N+1")
Throws:
DataException - if param is not of type List.

getJavaClassNames

public java.lang.String[] getJavaClassNames()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setComments

public void setComments(java.lang.String comments)

getComments

public java.lang.String getComments()

setRelationVOs

public void setRelationVOs(RelationVO[] relationVOs)

addRelation

public void addRelation(RelationVO relvo)

getRelationVOs

public RelationVO[] getRelationVOs()

getRelationVO

public RelationVO getRelationVO(java.lang.String name)

addPropertyVO

public void addPropertyVO(PropertyVO p)

getModelId

public long getModelId()

setModelId

public void setModelId(long modelId)

addOMSRelationVO

public void addOMSRelationVO(DirectedRelationVO r)

addRole

public void addRole(RoleVO r)

addOtherRole

public void addOtherRole(RoleVO r)

findRoles

public RoleVO[] findRoles(RelationVO rel)

findOtherRoles

public RoleVO[] findOtherRoles(RelationVO rel)

getOmsRelationVOs

public DirectedRelationVO[] getOmsRelationVOs()

isAttachmentEnabled

public boolean isAttachmentEnabled()

setAttachmentEnabled

public void setAttachmentEnabled(boolean attachmentEnabled)

getIcon

public javax.swing.Icon getIcon()
Overrides:
getIcon in class XMLBean

export2csv

public void export2csv(java.io.Writer out)
                throws java.io.IOException
Specified by:
export2csv in interface XMLBean
Overrides:
export2csv in class XMLBean
Throws:
java.io.IOException

getPropertyIndex

public int getPropertyIndex(java.lang.String propname)
Returns the index of the property, or -1 if not found.

Parameters:
propname -
Returns:

getSearchablePropertyNames

public java.lang.String[] getSearchablePropertyNames()

getPropertyCount

public int getPropertyCount()