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

cdc.applic.dictionaries.edit.EnNamingConvention Maven / Gradle / Ivy

The newest version!
package cdc.applic.dictionaries.edit;

public final class EnNamingConvention extends EnAbstractOwnedElement
        implements EnNameItem {
    public static final String KIND = "NamingConvention";
    private String name;

    protected EnNamingConvention(Builder builder) {
        super(builder);
        this.name = builder.name;
        addToOwner();
    }

    @Override
    public String getKind() {
        return KIND;
    }

    @Override
    public EnRef getRef() {
        return getRef(EnNamingConvention.class);
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;

        fireSemanticChange(EnNames.NAME);
    }

    static Builder builder(EnRegistry owner) {
        return new Builder(owner);
    }

    public static final class Builder
            extends EnAbstractOwnedElement.Builder
            implements EnNameBuilding {
        private String name;

        protected Builder(EnRegistry owner) {
            super(owner);
        }

        @Override
        public Class getBuiltClass() {
            return EnNamingConvention.class;
        }

        @Override
        public Builder name(String name) {
            this.name = name;
            return self();
        }

        @Override
        public EnNamingConvention build() {
            return wrap(new EnNamingConvention(this));
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy