OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
KeyedString.java
Go to the documentation of this file.
1 /* Copyright 2010, Object Management Group, Inc.
2  * Copyright 2010, PrismTech, Inc.
3  * Copyright 2010, Real-Time Innovations, Inc.
4  * All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 package org.omg.dds.type.builtin;
20 
21 import java.io.Serializable;
22 
23 import org.omg.dds.core.DDSObject;
25 
26 
27 public abstract class KeyedString implements Cloneable, Serializable, DDSObject
28 {
29  private static final long serialVersionUID = 5185023295888681379L;
30 
32  {
33  return env.getSPI().newKeyedString();
34  }
35 
41  public abstract KeyedString setKey(CharSequence key);
42 
46  public abstract String getKey();
47 
53  public abstract KeyedString setValue(CharSequence value);
54 
58  public abstract String getValue();
59 
60 
61  // -----------------------------------------------------------------------
62 
66  public abstract void copyFrom(KeyedString src);
67 
68  @Override
69  public abstract KeyedString clone();
70 }
abstract KeyedString clone()
abstract void copyFrom(KeyedString src)
Overwrite the state of this object with that of the given object.
abstract ServiceProviderInterface getSPI()
This method is not intended for use by applications.
abstract KeyedString setValue(CharSequence value)
A supertype of all DDS classes and interfaces.
Definition: DDSObject.java:25
static KeyedString newKeyedString(ServiceEnvironment env)
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
abstract KeyedString setKey(CharSequence key)