Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/acs/damsel/srvr/asset/AssetDescriptor.java


1   package org.acs.damsel.srvr.asset;
2   
3   import java.io.*;
4   
5   /** *
6    * <p>Title: AssetDescriptor</p>
7    * <p>Description: An instance of this class describes an asset descriptor,
8    * which consists of a tag name and an associated value </p>
9    * @version 1.0
10   */
11  
12  public class AssetDescriptor implements Serializable{
13  
14    /*tag is the metadata name, with a given value*/
15    private String tag;
16    private String value;
17  
18    /*Do nothing constructor */
19    public AssetDescriptor() {
20      tag = null;
21      value = null;
22    }
23  
24    /*Constructor with two parameters: tag and value */
25    public AssetDescriptor(String tag, String value) {
26      this.tag = tag;
27      this.value = value;
28    }
29  
30    /* Getters and setters */
31    public String getValue() {
32      return value;
33    }
34  
35    public void setValue(String value) {
36      this.value = value;
37    }
38  
39    public String getTag() {
40      return tag;
41    }
42  
43    public void setTag(String tag) {
44      this.tag = tag;
45    }
46  
47    public String toString() {
48      return "" + tag + " " + value;
49    }
50  
51  }