import org.onap.aai.sparky.util.NodeUtils;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
/**
protected String crossReferenceEntityValues;
protected ArrayList<String> crossEntityReferenceCollection = new ArrayList<String>();
- protected ObjectMapper mapper = new ObjectMapper();
/**
* Instantiates a new indexable cross entity reference.
this.crossReferenceEntityValues = NodeUtils.concatArray(crossEntityReferenceCollection, ";");
}
+ @JsonIgnore // Since this is a "get" we need to JSON ignore otherwise it will be called when converting to JSON
@Override
public String getAsJson() throws JsonProcessingException {
+ (crossReferenceEntityValues != null
? "crossReferenceEntityValues=" + crossReferenceEntityValues + ", " : "")
+ (crossEntityReferenceCollection != null
- ? "crossEntityReferenceCollection=" + crossEntityReferenceCollection + ", " : "")
- + (mapper != null ? "mapper=" + mapper : "") + "]";
+ ? "crossEntityReferenceCollection=" + crossEntityReferenceCollection + ", " : "");
}
-
-
-
}