2 * ============LICENSE_START====================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
22 package org.onap.aaf.misc.env.impl;
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;
32 public class BasicTrans extends AbsTransJAXB {
34 public BasicTrans(EnvJAXB env) {
39 protected TimeTaken newTimeTaken(String name, int flag) {
41 * Note: could have created a different format for Time Taken, but using BasicEnv's instead
43 return delegate.start(name, flag);
46 public Slot slot(String name) {
47 return delegate.slot(name);
50 public <T> T get(StaticSlot slot) {
51 return delegate.get(slot);
54 public <T> T get(StaticSlot slot, T dflt) {
55 return delegate.get(slot,dflt);
58 public String setProperty(String tag, String value) {
59 delegate.setProperty(tag, value);
63 public String getProperty(String tag) {
64 return delegate.getProperty(tag);
67 public String getProperty(String tag, String deflt) {
68 return delegate.getProperty(tag, deflt);
72 public Decryptor decryptor() {
73 return delegate.decryptor();
77 public Encryptor encryptor() {
78 return delegate.encryptor();