01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12: package org.tigris.subversion.javahl;
13:
14: import org.tmatesoft.svn.core.javahl.SVNClientImpl;
15:
16: /**
17: * @version 1.1.1
18: * @author TMate Software Ltd.
19: */
20: public class JavaHLPropertyData extends PropertyData {
21:
22: private SVNClientImpl myClientImpl;
23:
24: JavaHLPropertyData(SVNClientImpl clientImpl, SVNClient cl,
25: String p, String n, String v, byte[] d) {
26: super (cl, p, n, v, d);
27: myClientImpl = clientImpl;
28: }
29:
30: public void remove(boolean recurse) throws ClientException {
31: if (myClientImpl != null) {
32: myClientImpl.propertyRemove(getPath(), getName(), recurse);
33: } else {
34: super .remove(recurse);
35: }
36: }
37:
38: public void setValue(byte[] newValue, boolean recurse)
39: throws ClientException {
40: if (myClientImpl != null) {
41: myClientImpl.propertySet(getPath(), getName(), newValue,
42: recurse);
43: } else {
44: super .remove(recurse);
45: }
46: }
47:
48: public void setValue(String newValue, boolean recurse)
49: throws ClientException {
50: if (myClientImpl != null) {
51: myClientImpl.propertySet(getPath(), getName(), newValue,
52: recurse);
53: } else {
54: super.remove(recurse);
55: }
56: }
57: }
|