/*
 * Copyright 2010 FatWire Corporation. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.fatwire.gst.foundation.properties;

import java.io.Serializable;

import com.fatwire.assetapi.data.AssetId;
import com.fatwire.gst.foundation.facade.assetapi.AssetIdUtils;

/**
 * TODO: Add class/interface details
 *
 * @author Tony Field
 * @since 11-09-02
 */
final class PropertyImpl implements Property, Serializable {
    String name;
    String description;
    String value;
    PropertyImpl(String name, String description, String value) {
        this.name = name;
        this.value = value;
    }
    public String getName() {
        return name;
    }
    public String getDescription() {
        return description;
    }
    public boolean isNull() {
        return value == null;
    }
    public boolean asBoolean() {
        return Boolean.getBoolean(value);
    }
    public String asString() {
        return value;
    }
    public long asLong() {
        return Long.valueOf(value);
    }
    public int asInt() {
        return Integer.valueOf(value);
    }
    public AssetId asAssetId() {
        return AssetIdUtils.fromString(value);
    }

    public String toString() {
        return "GSTProperty:"+name+"="+value; // todo: smart password suppression
    }
}

@@ -952,24 +952,106 @@
 zable %7B%0A    
+/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 692797066527955686L;%0A%09
 String name;

Adding a serialVersionUID as this class is Serializable