package org.eclipse.graphiti.mm; import javax.persistence.Basic; import javax.persistence.DiscriminatorColumn; import javax.persistence.Entity; import org.eclipse.emf.texo.test.TexoTestObjectConverter; import org.eclipse.emf.texo.test.TexoTestQNameConverter; import org.eclipse.emf.texo.test.model.base.identifiable.Identifiable; import org.eclipse.persistence.annotations.Converter; import org.eclipse.persistence.annotations.Converters; /** * A representation of the model object '<em><b>Property</b></em>'. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Entity(name = "mm_Property") @DiscriminatorColumn(length = 255) @Converters({ @Converter(converterClass = TexoTestObjectConverter.class, name = "TexoTestObjectConverter"), @Converter(converterClass = TexoTestQNameConverter.class, name = "TexoTestQNameConverter") }) public class Property extends Identifiable { /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Basic(optional = false) private String key = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Basic(optional = false) private String value = null; /** * Returns the value of '<em><b>key</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>key</b></em>' feature * @generated */ public String getKey() { return key; } /** * Sets the '{@link Property#getKey() <em>key</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newKey * the new value of the '{@link Property#getKey() key}' feature. * @generated */ public void setKey(String newKey) { key = newKey; } /** * Returns the value of '<em><b>value</b></em>' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @return the value of '<em><b>value</b></em>' feature * @generated */ public String getValue() { return value; } /** * Sets the '{@link Property#getValue() <em>value</em>}' feature. * * <!-- begin-user-doc --> <!-- end-user-doc --> * * @param newValue * the new value of the '{@link Property#getValue() value}' feature. * @generated */ public void setValue(String newValue) { value = newValue; } /** * A toString method which prints the values of all EAttributes of this instance. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ @Override public String toString() { return "Property " + " [key: " + getKey() + "]" + " [value: " + getValue() + "]" + "{extends: " + super.toString() + "} "; } }