poussecafe.doc.model.servicedoc.ServiceDocData Maven / Gradle / Ivy
package poussecafe.doc.model.servicedoc;
import java.io.Serializable;
import poussecafe.attribute.Attribute;
import poussecafe.doc.model.BoundedContextComponentDoc;
import poussecafe.doc.model.BoundedContextComponentDocData;
@SuppressWarnings("serial")
public class ServiceDocData implements ServiceDoc.Attributes, Serializable {
@Override
public Attribute identifier() {
return new Attribute() {
@Override
public ServiceDocId value() {
return ServiceDocId.ofClassName(className);
}
@Override
public void value(ServiceDocId value) {
className = value.stringValue();
}
};
}
private String className;
@Override
public Attribute boundedContextComponentDoc() {
return new Attribute() {
@Override
public BoundedContextComponentDoc value() {
return boundedContextComponentDoc.adapt();
}
@Override
public void value(BoundedContextComponentDoc value) {
boundedContextComponentDoc = BoundedContextComponentDocData.adapt(value);
}
};
}
private BoundedContextComponentDocData boundedContextComponentDoc;
}