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

poussecafe.doc.model.aggregatedoc.AggregateDocId Maven / Gradle / Ivy

The newest version!
package poussecafe.doc.model.aggregatedoc;

import poussecafe.domain.ValueObject;
import poussecafe.util.StringId;

/**
 * @trivial
 */
public class AggregateDocId extends StringId implements ValueObject {

    public static AggregateDocId ofClassName(String className) {
        return new AggregateDocId(className);
    }

    private AggregateDocId(String id) {
        super(id);
    }

    public String name() {
        String[] elements = stringValue().split("\\.");
        return elements[elements.length - 1];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy