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

poussecafe.doc.model.factorydoc.FactoryDocData Maven / Gradle / Ivy

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

import java.io.Serializable;
import poussecafe.attribute.Attribute;
import poussecafe.doc.model.BoundedContextComponentDoc;
import poussecafe.doc.model.BoundedContextComponentDocData;

@SuppressWarnings("serial")
public class FactoryDocData implements FactoryDoc.Attributes, Serializable {

    @Override
    public Attribute identifier() {
        return new Attribute() {
            @Override
            public FactoryDocId value() {
                return FactoryDocId.ofClassName(className);
            }

            @Override
            public void value(FactoryDocId 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy