poussecafe.doc.model.domainprocessdoc.DomainProcessDocData Maven / Gradle / Ivy
The newest version!
package poussecafe.doc.model.domainprocessdoc;
import java.io.Serializable;
import poussecafe.attribute.Attribute;
import poussecafe.doc.model.ModuleComponentDoc;
import poussecafe.doc.model.ModuleComponentDocData;
@SuppressWarnings("serial")
public class DomainProcessDocData implements DomainProcessDoc.Attributes, Serializable {
@Override
public Attribute identifier() {
return new Attribute() {
@Override
public DomainProcessDocId value() {
return new DomainProcessDocId(className);
}
@Override
public void value(DomainProcessDocId value) {
className = value.stringValue();
}
};
}
private String className;
@Override
public Attribute moduleComponentDoc() {
return new Attribute() {
@Override
public ModuleComponentDoc value() {
return componentDoc.adapt();
}
@Override
public void value(ModuleComponentDoc value) {
componentDoc = ModuleComponentDocData.adapt(value);
}
};
}
private ModuleComponentDocData componentDoc;
}