01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.ivy.core.cache;
19:
20: import org.apache.ivy.plugins.namespace.Namespace;
21:
22: public class CacheMetadataOptions extends CacheDownloadOptions {
23: private boolean validate = false;
24: private Namespace namespace = Namespace.SYSTEM_NAMESPACE;
25: private Boolean isCheckmodified = null;
26: private String changingMatcherName = null;
27: private String changingPattern = null;
28:
29: public Namespace getNamespace() {
30: return namespace;
31: }
32:
33: public CacheMetadataOptions setNamespace(Namespace namespace) {
34: this .namespace = namespace;
35: return this ;
36: }
37:
38: public boolean isValidate() {
39: return validate;
40: }
41:
42: public CacheMetadataOptions setValidate(boolean validate) {
43: this .validate = validate;
44: return this ;
45: }
46:
47: public Boolean isCheckmodified() {
48: return isCheckmodified;
49: }
50:
51: public CacheMetadataOptions setCheckmodified(Boolean isCheckmodified) {
52: this .isCheckmodified = isCheckmodified;
53: return this ;
54: }
55:
56: public String getChangingMatcherName() {
57: return changingMatcherName;
58: }
59:
60: public CacheMetadataOptions setChangingMatcherName(
61: String changingMatcherName) {
62: this .changingMatcherName = changingMatcherName;
63: return this ;
64: }
65:
66: public String getChangingPattern() {
67: return changingPattern;
68: }
69:
70: public CacheMetadataOptions setChangingPattern(
71: String changingPattern) {
72: this.changingPattern = changingPattern;
73: return this;
74: }
75: }
|