@Override public PackageValidator moveTo(SubPackageType subPackageType) { processPackage(); if (subPackageType instanceof LocationType) { return moveTo((LocationType)subPackageType); } if (subPackageType instanceof LayerType) { return moveTo((LayerType)subPackageType); } return this; } }
@Override public DefaultPackageValidator get(MutableDeclaredType inputClass) { return new DefaultPackageValidator(inputClass); } }
public DefaultPackageValidator moveTo(LayerType layerType) { if (isValid()) { this.layerType = layerType; } return this; }
public LocationType getLocationType() { processPackage(); return locationType; } public LayerType getLayerType() {
private static MutableDeclaredType getOutputName(MutableDeclaredType type) { return type.clone().changePackage(new DefaultPackageValidatorProvider().get(type).moveTo(LayerType.MODEL)).addClassSufix(SUFFIX); }
public LocationType getLocationType() { processPackage(); return locationType; } public LayerType getLayerType() {
public boolean isValid() { processPackage(); return group != null && artifact != null && locationType != null && layerType != null; }
@Override public PackageValidator moveTo(SubPackageType subPackageType) { processPackage(); if (subPackageType instanceof LocationType) { return moveTo((LocationType)subPackageType); } if (subPackageType instanceof LayerType) { return moveTo((LayerType)subPackageType); } if (subPackageType instanceof ImplementationType) { return moveTo((ImplementationType)subPackageType); } return this; } }
public DefaultPackageValidator moveTo(LocationType locationType) { if (isValid()) { this.locationType = locationType; } return this; }
@Override public PackageValidator get(NamedType inputClass) { return new DefaultPackageValidator(inputClass); } }
public String getGroup() { processPackage(); return group; }
public DefaultPackageValidator setType(String type) { if (isValid()) { this.type += "." + type; } else { this.notParsedName += "." + type; } return this; }
@Override public PackageValidator get(String packageName) { return new DefaultPackageValidator(packageName); }
public boolean isValid() { processPackage(); return group != null && artifact != null && locationType != null && layerType != null; }
public DefaultPackageValidator setType(String type) { if (isValid()) { this.type += "." + type; } else { this.notParsedName += "." + type; } return this; }
@Override public DefaultPackageValidator get(String packageName) { return new DefaultPackageValidator(packageName); }
public String getType() { processPackage(); return type; }
public DefaultPackageValidator moveTo(LocationType locationType) { if (isValid()) { this.locationType = locationType; } return this; }
public LayerType getLayerType() { processPackage(); return layerType; }
public DefaultPackageValidator clearType() { if (isValid()) { this.type = null; } return this; }