org.digidoc4j.ddoc.tsl.Quality Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddoc4j Show documentation
Show all versions of ddoc4j Show documentation
DDoc4J is Java Library for validating DDOC documents. It's not recommended to use it directly but rather through DigiDoc4J's API.
The newest version!
package org.digidoc4j.ddoc.tsl;
import org.digidoc4j.ddoc.utils.ConvertUtils;
/**
* Models the ETSI TS 102 231 V3.1.1. TSL QualityElement
* @author Veiko Sinivee
*/
public class Quality {
/** quality name or URI */
private String m_name;
/** quality value */
private int m_value;
/**
* Default constructor for Quality
*/
public Quality()
{
m_name = null;
m_value = 0;
}
// accessors
public String getName() { return m_name; }
public int getValue() { return m_value; }
// mutators
public void setName(String s) { m_name = s; }
public void setValue(int n) { m_value = n; }
/**
* Returns elements stringified form for debugging
* @return elements stringified form
*/
public String toString() {
StringBuffer sb = new StringBuffer("[Quality");
sb.append(ConvertUtils.stringElemToString("name", m_name));
sb.append(ConvertUtils.intElemToString("value", m_value));
sb.append("]");
return sb.toString();
}
}