com.irisel.oms.olapi.beans
Class ClassVO
java.lang.Object
com.irisel.util.BaseBean
com.irisel.oms.olapi.beans.XMLBean
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
Fields inherited from interface com.irisel.util.XMLBean |
CSV |
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 |
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
ClassVO
public ClassVO()
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()