AnonymousParmeterTree.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Google Inc.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
00005  * use this file except in compliance with the License. You may obtain a copy of
00006  * the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00013  * License for the specific language governing permissions and limitations under
00014  * the License.
00015  */
00016 
00017 package org.ros.node;
00018 
00019 import org.ros.internal.node.parameter.DefaultParameterTree;
00020 import org.ros.internal.node.server.NodeIdentifier;
00021 import org.ros.namespace.GraphName;
00022 import org.ros.namespace.NameResolver;
00023 import org.ros.node.parameter.ParameterListener;
00024 import org.ros.node.parameter.ParameterTree;
00025 
00026 import java.net.URI;
00027 import java.util.Collection;
00028 import java.util.List;
00029 import java.util.Map;
00030 
00034 public class AnonymousParmeterTree implements ParameterTree {
00035 
00036   private ParameterTree parameterTree;
00037 
00038   public AnonymousParmeterTree(URI masterUri) {
00039     NodeIdentifier nodeIdentifier = new NodeIdentifier(GraphName.of("invalid"), null);
00040     parameterTree =
00041         DefaultParameterTree.newFromNodeIdentifier(nodeIdentifier, masterUri, NameResolver.newRoot(), null);
00042   }
00043 
00044   @Override
00045   public boolean getBoolean(GraphName name) {
00046     return parameterTree.getBoolean(name);
00047   }
00048 
00049   @Override
00050   public boolean getBoolean(String name) {
00051     return parameterTree.getBoolean(name);
00052   }
00053 
00054   @Override
00055   public boolean getBoolean(GraphName name, boolean defaultValue) {
00056     return parameterTree.getBoolean(name, defaultValue);
00057   }
00058 
00059   @Override
00060   public boolean getBoolean(String name, boolean defaultValue) {
00061     return parameterTree.getBoolean(name, defaultValue);
00062   }
00063 
00064   @Override
00065   public int getInteger(GraphName name) {
00066     return parameterTree.getInteger(name);
00067   }
00068 
00069   @Override
00070   public int getInteger(String name) {
00071     return parameterTree.getInteger(name);
00072   }
00073 
00074   @Override
00075   public int getInteger(GraphName name, int defaultValue) {
00076     return parameterTree.getInteger(name, defaultValue);
00077   }
00078 
00079   @Override
00080   public int getInteger(String name, int defaultValue) {
00081     return parameterTree.getInteger(name, defaultValue);
00082   }
00083 
00084   @Override
00085   public double getDouble(GraphName name) {
00086     return parameterTree.getDouble(name);
00087   }
00088 
00089   @Override
00090   public double getDouble(String name) {
00091     return parameterTree.getDouble(name);
00092   }
00093 
00094   @Override
00095   public double getDouble(GraphName name, double defaultValue) {
00096     return parameterTree.getDouble(name, defaultValue);
00097   }
00098 
00099   @Override
00100   public double getDouble(String name, double defaultValue) {
00101     return parameterTree.getDouble(name, defaultValue);
00102   }
00103 
00104   @Override
00105   public String getString(GraphName name) {
00106     return parameterTree.getString(name);
00107   }
00108 
00109   @Override
00110   public String getString(String name) {
00111     return parameterTree.getString(name);
00112   }
00113 
00114   @Override
00115   public String getString(GraphName name, String defaultValue) {
00116     return parameterTree.getString(name, defaultValue);
00117   }
00118 
00119   @Override
00120   public String getString(String name, String defaultValue) {
00121     return parameterTree.getString(name, defaultValue);
00122   }
00123 
00124   @Override
00125   public List<?> getList(GraphName name) {
00126     return parameterTree.getList(name);
00127   }
00128 
00129   @Override
00130   public List<?> getList(String name) {
00131     return parameterTree.getList(name);
00132   }
00133 
00134   @Override
00135   public List<?> getList(GraphName name, List<?> defaultValue) {
00136     return parameterTree.getList(name, defaultValue);
00137   }
00138 
00139   @Override
00140   public List<?> getList(String name, List<?> defaultValue) {
00141     return parameterTree.getList(name, defaultValue);
00142   }
00143 
00144   @Override
00145   public Map<?, ?> getMap(GraphName name) {
00146     return parameterTree.getMap(name);
00147   }
00148 
00149   @Override
00150   public Map<?, ?> getMap(String name) {
00151     return parameterTree.getMap(name);
00152   }
00153 
00154   @Override
00155   public Map<?, ?> getMap(GraphName name, Map<?, ?> defaultValue) {
00156     return parameterTree.getMap(name, defaultValue);
00157   }
00158 
00159   @Override
00160   public Map<?, ?> getMap(String name, Map<?, ?> defaultValue) {
00161     return parameterTree.getMap(name, defaultValue);
00162   }
00163 
00164   @Override
00165   public void set(GraphName name, boolean value) {
00166     parameterTree.set(name, value);
00167   }
00168 
00169   @Override
00170   public void set(String name, boolean value) {
00171     parameterTree.set(name, value);
00172   }
00173 
00174   @Override
00175   public void set(GraphName name, int value) {
00176     parameterTree.set(name, value);
00177   }
00178 
00179   @Override
00180   public void set(String name, int value) {
00181     parameterTree.set(name, value);
00182   }
00183 
00184   @Override
00185   public void set(GraphName name, double value) {
00186     parameterTree.set(name, value);
00187   }
00188 
00189   @Override
00190   public void set(String name, double value) {
00191     parameterTree.set(name, value);
00192   }
00193 
00194   @Override
00195   public void set(GraphName name, String value) {
00196     parameterTree.set(name, value);
00197   }
00198 
00199   @Override
00200   public void set(String name, String value) {
00201     parameterTree.set(name, value);
00202   }
00203 
00204   @Override
00205   public void set(GraphName name, List<?> value) {
00206     parameterTree.set(name, value);
00207   }
00208 
00209   @Override
00210   public void set(String name, List<?> value) {
00211     parameterTree.set(name, value);
00212   }
00213 
00214   @Override
00215   public void set(GraphName name, Map<?, ?> value) {
00216     parameterTree.set(name, value);
00217   }
00218 
00219   @Override
00220   public void set(String name, Map<?, ?> value) {
00221     parameterTree.set(name, value);
00222   }
00223 
00224   @Override
00225   public boolean has(GraphName name) {
00226     return parameterTree.has(name);
00227   }
00228 
00229   @Override
00230   public boolean has(String name) {
00231     return parameterTree.has(name);
00232   }
00233 
00234   @Override
00235   public void delete(GraphName name) {
00236     parameterTree.delete(name);
00237   }
00238 
00239   @Override
00240   public void delete(String name) {
00241     parameterTree.delete(name);
00242   }
00243 
00244   @Override
00245   public GraphName search(GraphName name) {
00246     return parameterTree.search(name);
00247   }
00248 
00249   @Override
00250   public GraphName search(String name) {
00251     return parameterTree.search(name);
00252   }
00253 
00254   @Override
00255   public Collection<GraphName> getNames() {
00256     return parameterTree.getNames();
00257   }
00258 
00262   @Override
00263   public void addParameterListener(GraphName name, ParameterListener listener) {
00264     throw new UnsupportedOperationException();
00265   }
00266 
00270   @Override
00271   public void addParameterListener(String name, ParameterListener listener) {
00272     throw new UnsupportedOperationException();
00273   }
00274 }


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:49