1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.statevalue
;
16 * A state value containing a variable-sized string
19 * @author Alexandre Montplaisir
21 final class StringStateValue
extends TmfStateValue
{
23 private final String valueStr
;
25 public StringStateValue(String valueAsString
) {
26 assert (valueAsString
!= null);
27 this.valueStr
= valueAsString
;
31 public byte getType() {
32 return ITmfStateValue
.TYPE_STRING
;
36 public boolean isNull() {
41 public String
getValue() {
46 public byte[] toByteArray() {
47 return valueStr
.getBytes();
51 public String
toString() {
This page took 0.031554 seconds and 5 git commands to generate.