test_class.file: common/src/test/java/org/apache/ivory/entity/FeedHelperTest.java
test_class.identifier: FeedHelperTest
test_case.body: @Test
      public void testEvaluateExpression() throws Exception {
          Cluster cluster = new Cluster();
          cluster.setName("name");
          cluster.setColo("colo");
          cluster.setProperties(new Properties());
          Property prop = new Property();
          prop.setName("pname");
          prop.setValue("pvalue");
          cluster.getProperties().getProperties().add(prop);
          
          Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.colo}/*/US"), "colo/*/US");
          Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "${cluster.name}/*/${cluster.pname}"), "name/*/pvalue");
          Assert.assertEquals(FeedHelper.evaluateClusterExp(cluster, "IN"), "IN");
      }
test_case.class_method_signature: FeedHelperTest.testEvaluateExpression()
test_case.full_signature: @Test public void testEvaluateExpression()
test_case.identifier: testEvaluateExpression
test_case.invocations: setName setColo setProperties setName setValue add getProperties getProperties assertEquals evaluateClusterExp assertEquals evaluateClusterExp assertEquals evaluateClusterExp
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEvaluateExpression()
focal_class.file: common/src/main/java/org/apache/ivory/entity/FeedHelper.java
focal_class.identifier: FeedHelper
focal_class.class_method_signature: FeedHelper.getCluster(Feed feed, String clusterName)
focal_class.full_signature: public static Cluster getCluster(Feed feed, String clusterName)
focal_class.identifier: getCluster
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, String clusterName)
focal_class.return: Cluster
focal_class.signature: Cluster getCluster(Feed feed, String clusterName)
focal_class.class_method_signature: FeedHelper.getLocation(Feed feed, LocationType type,
  			String clusterName)
focal_class.full_signature: public static Location getLocation(Feed feed, LocationType type,
  			String clusterName)
focal_class.identifier: getLocation
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, LocationType type,
  			String clusterName)
focal_class.return: Location
focal_class.signature: Location getLocation(Feed feed, LocationType type,
  			String clusterName)
focal_class.class_method_signature: FeedHelper.getLocation(Feed feed, LocationType type)
focal_class.full_signature: public static Location getLocation(Feed feed, LocationType type)
focal_class.identifier: getLocation
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, LocationType type)
focal_class.return: Location
focal_class.signature: Location getLocation(Feed feed, LocationType type)
focal_class.class_method_signature: FeedHelper.getLocation(Locations locations, LocationType type)
focal_class.full_signature: public static Location getLocation(Locations locations, LocationType type)
focal_class.identifier: getLocation
focal_class.modifiers: public static
focal_class.parameters: (Locations locations, LocationType type)
focal_class.return: Location
focal_class.signature: Location getLocation(Locations locations, LocationType type)
focal_class.class_method_signature: FeedHelper.normalizePartitionExpression(String part1, String part2)
focal_class.full_signature: public static String normalizePartitionExpression(String part1, String part2)
focal_class.identifier: normalizePartitionExpression
focal_class.modifiers: public static
focal_class.parameters: (String part1, String part2)
focal_class.return: String
focal_class.signature: String normalizePartitionExpression(String part1, String part2)
focal_class.class_method_signature: FeedHelper.normalizePartitionExpression(String partition)
focal_class.full_signature: public static String normalizePartitionExpression(String partition)
focal_class.identifier: normalizePartitionExpression
focal_class.modifiers: public static
focal_class.parameters: (String partition)
focal_class.return: String
focal_class.signature: String normalizePartitionExpression(String partition)
focal_class.class_method_signature: FeedHelper.loadClusterProperties(org.apache.ivory.entity.v0.cluster.Cluster cluster)
focal_class.full_signature: private static Properties loadClusterProperties(org.apache.ivory.entity.v0.cluster.Cluster cluster)
focal_class.identifier: loadClusterProperties
focal_class.modifiers: private static
focal_class.parameters: (org.apache.ivory.entity.v0.cluster.Cluster cluster)
focal_class.return: Properties
focal_class.signature: Properties loadClusterProperties(org.apache.ivory.entity.v0.cluster.Cluster cluster)
focal_class.class_method_signature: FeedHelper.evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_class.full_signature: public static String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_class.identifier: evaluateClusterExp
focal_class.modifiers: public static
focal_class.parameters: (org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_class.return: String
focal_class.signature: String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_method.body: public static String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
              throws IvoryException {
          Properties properties = loadClusterProperties(clusterEntity);
          ExpressionHelper expHelp = ExpressionHelper.get();
          expHelp.setPropertiesForVariable(properties);
          return expHelp.evaluateFullExpression(exp, String.class);
      }
focal_method.class_method_signature: FeedHelper.evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_method.full_signature: public static String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_method.identifier: evaluateClusterExp
focal_method.invocations: loadClusterProperties get setPropertiesForVariable evaluateFullExpression
focal_method.modifiers: public static
focal_method.parameters: (org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)
focal_method.return: String
focal_method.signature: String evaluateClusterExp(org.apache.ivory.entity.v0.cluster.Cluster clusterEntity, String exp)