1 package org
.argeo
.slc
.core
.execution
;
5 public class RefSpecAttribute
extends AbstractSpecAttribute
implements
7 private Class
<?
> targetClass
;
9 private String targetClassName
;
10 private Object value
= null;
12 private List
<RefValueChoice
> choices
= null;
14 public Object
getValue() {
18 public void setValue(Object value
) {
22 public Class
<?
> getTargetClass() {
26 public void setTargetClass(Class
<?
> targetClass
) {
27 this.targetClass
= targetClass
;
28 this.targetClassName
= targetClass
.getName();
31 public String
getTargetClassName() {
32 return targetClassName
;
35 /** @return can be null */
36 public List
<RefValueChoice
> getChoices() {
40 public void setChoices(List
<RefValueChoice
> choices
) {
41 this.choices
= choices
;
45 protected Object
clone() throws CloneNotSupportedException
{
46 RefSpecAttribute rsa
= new RefSpecAttribute();
47 rsa
.setTargetClass(targetClass
);
48 rsa
.setChoices(choices
);
53 public String
toString() {
54 return "Ref spec attribute [" + targetClass
+ "]";