com.jaspersoft.jasperserver.util
Class ResourceBean
java.lang.Object
com.jaspersoft.jasperserver.util.ResourceBean
- Direct Known Subclasses:
- ContentResourceBean, DataSourceBean, DataTypeBean, FileResourceBean, FolderBean, InputControlBean, ListOfValuesBean, MondrianXmlaDefinitionBean, OlapClientConnectionBean, OlapUnitBean, QueryBean, ReportUnitBean
public abstract class ResourceBean
- extends java.lang.Object
The classes that inherit from ResourceBean are used to go back and forth
between the java objects they represent and XML. We are currently using
the Castor library in order to marshal and unmarshal between java and
XML.
One thing to note is that Castor handles primitive fields such as int and
boolean as XML attributes of the top level XML tag for the particular
object. Castor automatically gives default values for these primitives.
So, if something like boolean hasData() has not been explicitly set, Castor
will give it a default value of "false". For int the default value is
zero.
Furthermore, if a String value such as String setDescrption() does not
have a value (is null) it will not be included in the output (unmarshal)
XML. So, this is different than how primitives are dealt with.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBean
public ResourceBean()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String label)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getUriString
public java.lang.String getUriString()
setUriString
public void setUriString(java.lang.String uriString)
getParentFolder
public java.lang.String getParentFolder()
setParentFolder
public void setParentFolder(java.lang.String parentFolder)
getResourceType
public java.lang.String getResourceType()
setResourceType
public void setResourceType(java.lang.String resourceType)
getIsNew
public boolean getIsNew()
setIsNew
public void setIsNew(boolean isNew)
getCreationDate
public java.util.Date getCreationDate()
setCreationDate
public void setCreationDate(java.util.Date creationDate)
getVersion
public int getVersion()
setVersion
public void setVersion(int version)
getProductReleaseVersion
public java.lang.String getProductReleaseVersion()
setProductReleaseVersion
public void setProductReleaseVersion(java.lang.String productReleaseVersion)
getIsUriReference
public boolean getIsUriReference()
setIsUriReference
public void setIsUriReference(boolean isUriReference)
getResourceBeanType
public java.lang.String getResourceBeanType()
setResourceBeanType
public void setResourceBeanType(java.lang.String resourceBeanType)
Copyright © 2007. All Rights Reserved.