AT&T 2.0.19 Code drop, stage 1
[aaf/authz.git] / misc / env / src / main / java / org / onap / aaf / misc / env / impl / BasicTrans.java
1 /**
2  * ============LICENSE_START====================================================
3  * org.onap.aaf
4  * ===========================================================================
5  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6  * ===========================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END====================================================
19  *
20  */
21
22 package org.onap.aaf.misc.env.impl;
23
24 import org.onap.aaf.misc.env.Decryptor;
25 import org.onap.aaf.misc.env.Encryptor;
26 import org.onap.aaf.misc.env.EnvJAXB;
27 import org.onap.aaf.misc.env.Slot;
28 import org.onap.aaf.misc.env.StaticSlot;
29 import org.onap.aaf.misc.env.TimeTaken;
30
31
32 public class BasicTrans extends AbsTransJAXB {
33         
34         public BasicTrans(EnvJAXB env) {
35                 super(env);
36         }
37
38         @Override
39         protected TimeTaken newTimeTaken(String name, int flag) {
40                 /**
41                  * Note: could have created a different format for Time Taken, but using BasicEnv's instead
42                  */
43                 return delegate.start(name, flag);
44         }
45         
46         public Slot slot(String name) {
47                 return delegate.slot(name);
48         }
49
50         public <T> T get(StaticSlot slot) {
51                 return delegate.get(slot);
52         }
53
54         public <T> T get(StaticSlot slot, T dflt) {
55                 return delegate.get(slot,dflt);
56         }
57
58         public String setProperty(String tag, String value) {
59                 delegate.setProperty(tag, value);
60                 return value;
61         }
62
63         public String getProperty(String tag) {
64                 return delegate.getProperty(tag);
65         }
66
67         public String getProperty(String tag, String deflt) {
68                 return delegate.getProperty(tag, deflt);
69         }
70
71         @Override
72         public Decryptor decryptor() {
73                 return delegate.decryptor();
74         }
75
76         @Override
77         public Encryptor encryptor() {
78                 return delegate.encryptor();
79         }
80
81 }