@Test public void testGetActualProperty() throws Exception { }
@Override public TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, GroupProxy group, Property prop) throws Exception { TextBlock tb = new TextBlock(false, false); String propCanonName = definition.getNamingStrategy().getUriName(group.getCanonicalName(prop)); String type = prop.getValueType().getDestinationType().getCanonicalName(); if (prop.getDefaultValue() != null) { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"{}\" type=\"{}\" override=\"false\"/>", propCanonName, TextUtil.escapeXml(prop.getDefaultValue().toString()), type) ); } else { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"[{}]\" type=\"{}\" override=\"false\"/>", propCanonName, prop.getValueType().getDestinationType().getSimpleName(), type) ); } return tb; }
JndiLoaderSamplePrinter extends BaseSamplePrinter implements SamplePrinter { @Override public TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, GroupProxy group, Property prop) throws Exception { TextBlock tb = new TextBlock(false, false); String propCanonName = definition.getNamingStrategy().getUriName(group.getCanonicalName(prop)); String type = prop.getValueType().getDestinationType().getCanonicalName(); if (prop.getDefaultValue() != null) { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"{}\" type=\"{}\" override=\"false\"/>", propCanonName, TextUtil.escapeXml(prop.getDefaultValue().toString()), type) ); } else { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"[{}]\" type=\"{}\" override=\"false\"/>", propCanonName, prop.getValueType().getDestinationType().getSimpleName(), type) ); } return tb; } }
JndiLoaderSamplePrinter extends BaseSamplePrinter implements SamplePrinter { @Override public TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, GroupProxy group, Property prop) throws Exception { TextBlock tb = new TextBlock(false, false); String propCanonName = definition.getNamingStrategy().getUriName(group.getCanonicalName(prop)); String type = prop.getValueType().getDestinationType().getCanonicalName(); if (prop.getDefaultValue() != null) { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"{}\" type=\"{}\" override=\"false\"/>", propCanonName, TextUtil.escapeXml(prop.getDefaultValue().toString()), type) ); } else { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"[{}]\" type=\"{}\" override=\"false\"/>", propCanonName, prop.getValueType().getDestinationType().getSimpleName(), type) ); } return tb; } JndiLoaderSamplePrinter(); }
JndiLoaderSamplePrinter extends BaseSamplePrinter implements SamplePrinter { @Override public TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, GroupProxy group, Property prop) throws Exception { TextBlock tb = new TextBlock(false, false); String propCanonName = definition.getNamingStrategy().getUriName(group.getCanonicalName(prop)); String type = prop.getValueType().getDestinationType().getCanonicalName(); if (prop.getDefaultValue() != null) { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"{}\" type=\"{}\" override=\"false\"/>", propCanonName, TextUtil.escapeXml(prop.getDefaultValue().toString()), type) ); } else { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"[{}]\" type=\"{}\" override=\"false\"/>", propCanonName, prop.getValueType().getDestinationType().getSimpleName(), type) ); } return tb; } JndiLoaderSamplePrinter(); @Override PrintFormat getFormat(); @Override TextBlock getSampleFileStart(); @Override TextBlock getSampleStartComment(StaticPropertyConfigurationInternal definition); @Override String getInAliaseString(StaticPropertyConfigurationInternal definition, EffectiveName name); @Override TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, 
			GroupProxy group, Property prop); @Override TextBlock getSampleFileEnd(); @Override String getSampleFileExtension(); }
JndiLoaderSamplePrinter extends BaseSamplePrinter implements SamplePrinter { @Override public TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, GroupProxy group, Property prop) throws Exception { TextBlock tb = new TextBlock(false, false); String propCanonName = definition.getNamingStrategy().getUriName(group.getCanonicalName(prop)); String type = prop.getValueType().getDestinationType().getCanonicalName(); if (prop.getDefaultValue() != null) { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"{}\" type=\"{}\" override=\"false\"/>", propCanonName, TextUtil.escapeXml(prop.getDefaultValue().toString()), type) ); } else { tb.addLine( TextUtil.format("<Environment name=\"{}\" value=\"[{}]\" type=\"{}\" override=\"false\"/>", propCanonName, prop.getValueType().getDestinationType().getSimpleName(), type) ); } return tb; } JndiLoaderSamplePrinter(); @Override PrintFormat getFormat(); @Override TextBlock getSampleFileStart(); @Override TextBlock getSampleStartComment(StaticPropertyConfigurationInternal definition); @Override String getInAliaseString(StaticPropertyConfigurationInternal definition, EffectiveName name); @Override TextBlock getActualProperty(StaticPropertyConfigurationInternal definition, 
			GroupProxy group, Property prop); @Override TextBlock getSampleFileEnd(); @Override String getSampleFileExtension();  }