public JavaType getItdJavaType(final ItdMetadataProvider metadataProvider) { Assert.notNull(metadataProvider, "Metadata provider required"); return new JavaType( PhysicalTypeIdentifier.getJavaType(getId()).getFullyQualifiedTypeName() + "_Roo_" + metadataProvider.getItdUniquenessFilenameSuffix()); }
public String getItdCanonicalPath(final ItdMetadataProvider metadataProvider) { Assert.notNull(metadataProvider, "Metadata provider required"); final int dropFrom = this.physicalLocationCanonicalPath.lastIndexOf(".java"); Assert.isTrue( dropFrom > -1, "Unexpected governor filename format '" + this.physicalLocationCanonicalPath + "'"); return this.physicalLocationCanonicalPath.substring(0, dropFrom) + "_Roo_" + metadataProvider.getItdUniquenessFilenameSuffix() + ".aj"; }