public LogicalPath getTypePath(final JavaType javaType) { final String physicalTypeId = getPhysicalTypeIdentifier(javaType); if (StringUtils.isBlank(physicalTypeId)) { return null; } return PhysicalTypeIdentifier.getPath(physicalTypeId); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
/** * Called whenever there is a requirement to produce a local identifier (ie * an instance identifier consistent with {@link #getProvidesType()}) for * the indicated {@link ClassOrInterfaceTypeDetails}. * @param details * @return */ protected String createLocalIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createLocalIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails repositoryDetails) { final LogicalPath repositoryLogicalPath = PhysicalTypeIdentifier.getPath(repositoryDetails.getDeclaredByMetadataId()); return createIdentifier(repositoryDetails.getType(), repositoryLogicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public final String getIdForPhysicalJavaType(final String physicalJavaTypeIdentifier) { Validate.isTrue( MetadataIdentificationUtils.getMetadataClass(physicalJavaTypeIdentifier).equals( MetadataIdentificationUtils.getMetadataClass(PhysicalTypeIdentifier .getMetadataIdentiferType())), "Expected a valid physical Java type instance identifier (not '%s')", physicalJavaTypeIdentifier); final JavaType javaType = PhysicalTypeIdentifier.getJavaType(physicalJavaTypeIdentifier); final LogicalPath path = PhysicalTypeIdentifier.getPath(physicalJavaTypeIdentifier); return createLocalIdentifier(javaType, path); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails projectionDetails) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(projectionDetails.getDeclaredByMetadataId()); return createIdentifier(projectionDetails.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails details) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(details.getDeclaredByMetadataId()); return createIdentifier(details.getType(), logicalPath); }
public static String createIdentifier(ClassOrInterfaceTypeDetails repositoryDetails) { final LogicalPath repositoryLogicalPath = PhysicalTypeIdentifier.getPath(repositoryDetails.getDeclaredByMetadataId()); return createIdentifier(repositoryDetails.getType(), repositoryLogicalPath); }
public String getPhysicalTypeCanonicalPath(final String physicalTypeId) { final LogicalPath logicalPath = PhysicalTypeIdentifier.getPath(physicalTypeId); final JavaType javaType = PhysicalTypeIdentifier.getJavaType(physicalTypeId); final Pom pom = getProjectOperations().getPomFromModuleName(logicalPath.getModule()); final String canonicalFilePath = pom.getPathLocation(logicalPath.getPath()) + javaType.getRelativeFileName(); if (getFileManager().exists(canonicalFilePath)) { getTypeCache().cacheTypeAgainstModule(pom, javaType); getTypeCache().cacheFilePathAgainstTypeIdentifier(canonicalFilePath, physicalTypeId); } return canonicalFilePath; }