/** * Constructor. * * @param value Object to store. * @param role Associated role. * @param type Attribute type. * @deprecated Use {@link Attribute#Attribute(Object, String, String, String)}. */ @Deprecated public Attribute(Object value, String role, AttributeType type) { this.value = value; setType(type); setRole(role); }
/** * Constructor. * * @param name name of the attribute * @param value Object to store. * @param role Asociated role. * @param type Attribute type. * @deprecated Use * {@link Attribute#Attribute(Object, String, String)))}. */ public Attribute(String name, Object value, String role, AttributeType type) { this.name = name; this.value = value; setType(type); setRole(role); }