All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.model.boundedcontextdoc.BoundedContextDocData Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
package poussecafe.doc.model.boundedcontextdoc;

import java.io.Serializable;
import poussecafe.attribute.Attribute;
import poussecafe.doc.model.ComponentDoc;
import poussecafe.doc.model.ComponentDocData;

@SuppressWarnings("serial")
public class BoundedContextDocData implements BoundedContextDoc.Attributes, Serializable {

    @Override
    public Attribute identifier() {
        return new Attribute() {
            @Override
            public BoundedContextDocId value() {
                return BoundedContextDocId.ofPackageName(id);
            }

            @Override
            public void value(BoundedContextDocId value) {
                id = value.stringValue();
            }
        };
    }

    private String id;

    @Override
    public Attribute componentDoc() {
        return new Attribute() {
            @Override
            public ComponentDoc value() {
                return componentDoc.toModel();
            }

            @Override
            public void value(ComponentDoc value) {
                componentDoc = ComponentDocData.of(value);
            }
        };
    }

    private ComponentDocData componentDoc;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy