@Deprecated public class ReportSchemaXml extends BaseOpenmrsObject
Constructor and Description |
---|
ReportSchemaXml()
Deprecated.
Default constructor
|
ReportSchemaXml(java.lang.Integer reportschemaId)
Deprecated.
Convenience constructor taking in a primary key report schema id
|
ReportSchemaXml(ReportSchema schema)
Deprecated.
Convenience constructor to allow a user to create this shlub of a class from a full
ReportSchema object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Deprecated.
|
java.lang.Integer |
getId()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
java.lang.Integer |
getReportSchemaId()
Deprecated.
Returns the ReportSchema Id
|
java.lang.String |
getXml()
Deprecated.
Returns the xml of the ReportSchemaXml
|
void |
populateFromReportSchema(ReportSchema reportSchema)
Deprecated.
Convenience helper method to set the attributes on this ReportSchemaXML object with what is
in the report schema object
|
void |
setDescription(java.lang.String description)
Deprecated.
|
void |
setId(java.lang.Integer id)
Deprecated.
|
void |
setName(java.lang.String name)
Deprecated.
|
void |
setReportSchemaId(java.lang.Integer reportSchemaId)
Deprecated.
Set the Report Schema Id
|
void |
setXml(java.lang.String xml)
Deprecated.
Set the xml content for the ReportSchemaXml
|
void |
updateXmlFromAttributes()
Deprecated.
Convenience helper method that will deserialize the "xml" string to a ReportSchema, update
that report schema with the id/name/desc attributes that are on this ReportSchemaXml object,
and then re serialize that ReportSchema object into the "xml" string
|
public ReportSchemaXml()
public ReportSchemaXml(java.lang.Integer reportschemaId)
reportschemaId
- public ReportSchemaXml(ReportSchema schema) throws java.lang.Exception
schema
- the ReportSchema to serialize and store with this tiny classjava.lang.Exception
- if serialization failspublic void setReportSchemaId(java.lang.Integer reportSchemaId)
reportSchemaId
- public java.lang.Integer getReportSchemaId()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic void setXml(java.lang.String xml)
xml
- serialized contentpublic java.lang.String getXml()
public void populateFromReportSchema(ReportSchema reportSchema)
reportSchema
- ReportSchema from which to pull valuespublic void updateXmlFromAttributes() throws java.lang.Exception
java.lang.Exception
public java.lang.Integer getId()
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.