/******************************************************************************* | |
* Copyright (c) 2014, 2016 Orange. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
*******************************************************************************/ | |
package org.eclipse.om2m.commons.resource; | |
import javax.xml.bind.annotation.XmlAccessType; | |
import javax.xml.bind.annotation.XmlAccessorType; | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
@XmlAccessorType(XmlAccessType.NONE) | |
@XmlJavaTypeAdapter(CustomAttributeAdapter.class) | |
public class CustomAttribute { | |
private String shortName; | |
private String longName; | |
private String value; | |
private String type; | |
public String getLongName() { | |
return longName; | |
} | |
public void setLongName(String name) { | |
this.longName = name; | |
} | |
public String getShortName() { | |
return shortName; | |
} | |
public void setShortName(String shortName) { | |
this.shortName = shortName; | |
} | |
public String getValue() { | |
return value; | |
} | |
public void setValue(String value) { | |
this.value = value; | |
} | |
public String getType() { | |
return type; | |
} | |
public void setType(String type) { | |
this.type = type; | |
} | |
@Override | |
public String toString() { | |
return "<CustomAttribute " + shortName + "/" + longName + "/" + type + "/" + | |
value + "/>"; | |
} | |
} |