com.irisel.oms.olapi.beans
Class XMLBean
java.lang.Object
com.irisel.util.BaseBean
com.irisel.oms.olapi.beans.XMLBean
- All Implemented Interfaces:
- XMLBean, java.io.Serializable
- Direct Known Subclasses:
- AppVO, ClassVO, DataInstance, DataInstanceSet, DataModelVO, DBInstanceSet, DescriptionVO, DirectedRelationVO, ListElmVO, ListVO, ModuleVO, PropertyVO, Query, RelationVO, RoleVO, ServiceVO, XMLBean
public class XMLBean
- extends BaseBean
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
CLASSNAME
Set this constant when extending this class
to enable persistence |
static java.lang.String |
CLASSTYPE
Set this constant when extending this class
to enable persistence |
static int |
DEFAULT_VISIBILITY
|
static int |
NOT_VISIBLE
|
static int |
VISIBLE
|
Fields inherited from interface com.irisel.util.XMLBean |
CSV |
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 |
DEFAULT_VISIBILITY
public static final int DEFAULT_VISIBILITY
- See Also:
- Constant Field Values
VISIBLE
public static final int VISIBLE
- See Also:
- Constant Field Values
NOT_VISIBLE
public static final int NOT_VISIBLE
- See Also:
- Constant Field Values
CLASSNAME
public static java.lang.String CLASSNAME
- Set this constant when extending this class
to enable persistence
CLASSTYPE
public static java.lang.String CLASSTYPE
- Set this constant when extending this class
to enable persistence
XMLBean
public XMLBean()
getO
public java.io.Serializable getO()
- Returns an Object. Used to serialize objects that are not beans.
- Returns:
setO
public void setO(java.io.Serializable object)
getGeneratedAt
public final java.util.Date getGeneratedAt()
setGeneratedAt
public final void setGeneratedAt(java.util.Date generatedAt)
setGenericAttr
public final void setGenericAttr(GenAttr genericAttr)
getGenericAttr
public final GenAttr getGenericAttr()
isDirty
public final boolean isDirty()
setDirty
public final void setDirty(boolean dirty)
isErased
public final boolean isErased()
setErased
public final void setErased(boolean erased)
getDescId
public final long getDescId()
setDescId
public final void setDescId(long descId)
getId
public final long getId()
setId
public void setId(long id)
getName
public final java.lang.String getName()
setName
public final void setName(java.lang.String name)
copyToInstance
public void copyToInstance(DataInstance di)
updateFromInstance
public void updateFromInstance(Instance di)
getVisibility
public int getVisibility()
- returns XMLBean.VISIBLE or XMLBean.INVISIBLE
setVisibility
public void setVisibility(int visibility)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
xmlSerialize
public final void xmlSerialize(java.io.OutputStream os)
- Specified by:
xmlSerialize
in interface XMLBean
- Overrides:
xmlSerialize
in class BaseBean
readFromStream
public static final XMLBean readFromStream(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
readFromFile
public static final XMLBean readFromFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
writeToStream
public static final void writeToStream(XMLBean b,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
writeToFile
public static final void writeToFile(XMLBean b,
java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
getIconName
public java.lang.String getIconName()
setIconName
public void setIconName(java.lang.String icon)
getIcon
public javax.swing.Icon getIcon()
setIcon
public void setIcon(javax.swing.Icon icon)
export2csv
public void export2csv(java.io.Writer w)
throws java.io.IOException
- Specified by:
export2csv
in interface XMLBean
- Overrides:
export2csv
in class BaseBean
- Throws:
java.io.IOException
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String label)
getOrd
public int getOrd()
setOrd
public void setOrd(int index)
isMandatory
public boolean isMandatory()
isReadOnly
public boolean isReadOnly()
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean value)