Package dk.vajhoej.model.app
Class FilenameShowWrapper
- java.lang.Object
-
- dk.vajhoej.model.app.FilenameShowWrapper
-
- All Implemented Interfaces:
Persistable
public class FilenameShowWrapper extends java.lang.Object implements Persistable
Class FilenameShowWrapper wraps a filename and a show status.
-
-
Constructor Summary
Constructors Constructor Description FilenameShowWrapper()Create instance of FilenameShowWrapper.FilenameShowWrapper(java.lang.String filename, boolean show)Create instance of FilenameShowWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameValuePairListgetAttributes()Get all single value fields.java.util.List<java.util.List<Persistable>>getChildren()Get all multi value fields.java.lang.StringgetFilename()Get filename.java.lang.StringgetId()Get id identifying object.java.lang.StringgetType()Get type (XML element name / database table name not Java class name).booleanisShow()Get show status.voidsetAttributes(NameValuePairList attr)Set all single value fields.voidsetChildren(java.util.List<java.util.List<Persistable>> childs)Set all multi value fields.
-
-
-
Method Detail
-
getFilename
public java.lang.String getFilename()
Get filename.- Returns:
- filename
-
isShow
public boolean isShow()
Get show status.- Returns:
- show status
-
getId
public java.lang.String getId()
Description copied from interface:PersistableGet id identifying object.- Specified by:
getIdin interfacePersistable- Returns:
- id
-
getType
public java.lang.String getType()
Description copied from interface:PersistableGet type (XML element name / database table name not Java class name).- Specified by:
getTypein interfacePersistable- Returns:
- type
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:PersistableGet all single value fields.- Specified by:
getAttributesin interfacePersistable- Returns:
- name value pair list
-
getChildren
public java.util.List<java.util.List<Persistable>> getChildren()
Description copied from interface:PersistableGet all multi value fields.- Specified by:
getChildrenin interfacePersistable- Returns:
- list of list of persistable objects
-
setAttributes
public void setAttributes(NameValuePairList attr) throws ModelException
Description copied from interface:PersistableSet all single value fields.- Specified by:
setAttributesin interfacePersistable- Parameters:
attr- value pair list- Throws:
ModelException- if problems
-
setChildren
public void setChildren(java.util.List<java.util.List<Persistable>> childs) throws ModelException
Description copied from interface:PersistableSet all multi value fields.- Specified by:
setChildrenin interfacePersistable- Parameters:
childs- list of list of persistable objects- Throws:
ModelException- if problems
-
-