1 package org.opensync.tools;
2
3 public class Child extends Object {
4 private String idChildFile,keyChildFile,keyParentFile;
5 /***
6 * Constructor
7 */
8 public Child() {
9 }
10
11 public void setIdChildFile(String s) {
12 this.idChildFile = s;
13 }
14 public void setKeyChildFile(String s) {
15 this.keyChildFile = s;
16 }
17 public void setKeyParentFile(String s) {
18 this.keyParentFile = s;
19 }
20
21 public String getIdChildFile() {
22 return(idChildFile);
23 }
24 public String getKeyChildFile() {
25 return(keyChildFile);
26 }
27 public String getKeyParentFile() {
28 return(keyParentFile);
29 }
30
31 public boolean equals(String s, String p) {
32 return (idChildFile.equals(s) && keyParentFile.equals(p));
33 }
34 public boolean equals2(String s, String p) {
35 return (idChildFile.equals(s) && keyParentFile.substring(0,keyParentFile.indexOf(".")).equals(p));
36 }
37 }
38
39
40
41