1 19 package org.openharmonise.him.editors.report.rqom; 20 21 import org.openharmonise.him.harmonise.*; 22 23 30 public class Metadata { 31 32 private ReportQuery m_reportQuery = null; 33 34 37 private String m_sPath = null; 38 39 42 private String m_sValue = null; 43 44 47 private String m_sOperator = "="; 48 49 54 public Metadata(String sPath, ReportQuery reportQuery) { 55 super(); 56 this.m_sPath = sPath; 57 this.m_reportQuery = reportQuery; 58 } 59 60 65 public String getPath() { 66 return this.m_sPath; 67 } 68 69 73 public String getName() { 74 int index = m_sPath.lastIndexOf("/"); 75 String temp = m_sPath; 76 if(index>0){ 77 temp = m_sPath.substring(index + 1); 78 } 79 return temp; 80 } 81 86 public void setPath(String sPath) { 87 if(sPath.equals("")) { 88 this.m_sPath = null; 89 } else { 90 this.m_sPath = sPath; 91 } 92 this.m_reportQuery.fireDataChangedMessage(); 93 } 94 95 100 public String getValue() { 101 return this.m_sValue; 102 } 103 104 109 public void setValue(String sValue) { 110 this.m_sValue = sValue; 111 this.m_reportQuery.fireDataChangedMessage(); 112 } 113 114 117 public String getOperator() { 118 return m_sOperator; 119 } 120 123 public void setOperator(String operator) { 124 m_sOperator = operator; 125 this.m_reportQuery.fireDataChangedMessage(); 126 } 127 128 131 public boolean isSystemProperty() { 132 if(this.m_sPath.indexOf(HarmonisePaths.PATH_SYSTEM_PROPS)>=0){ 133 return true; 134 } else { 135 return false; 136 } 137 } 138 } 139 | Popular Tags |