1 18 19 package de.gulden.framework.amoda.generic.metadata; 20 21 import de.gulden.framework.amoda.generic.data.*; 22 import de.gulden.framework.amoda.model.metadata.*; 23 import de.gulden.framework.amoda.model.metadata.MetadataEntry; 24 import java.lang.*; 25 import java.util.*; 26 27 33 public class GenericMetadataEntry extends GenericValue implements MetadataEntry { 34 35 39 protected String source; 40 41 public GenericMetadata genericMetadata; 42 43 44 48 public GenericMetadataEntry() { 49 } 51 52 public GenericMetadataEntry(String name, Object value) { 53 setName(name); 54 set(value); 55 } 56 57 58 62 public GenericMetadata getGenericMetadata() { 63 return genericMetadata; 64 } 65 66 public void setGenericMetadata(GenericMetadata genericMetadata) { 67 if (this.genericMetadata != genericMetadata) { 68 if (this.genericMetadata != null) this.genericMetadata.removeGenericMetadataEntry(this); 69 this.genericMetadata = genericMetadata; 70 if (genericMetadata != null) genericMetadata.addGenericMetadataEntry(this); 71 } 72 } 73 74 public MetadataSchema getSchema() { 75 return getGenericMetadata().getSchema(); 76 } 77 78 public String getSource() { 79 return source; 80 } 81 82 public void setSource(String _source) { 83 source = _source; 84 } 85 86 public String toString() { 87 return super.toString(); 88 } 89 90 } | Popular Tags |