sb.append(new ValuePropertyFormatter(p.getValue())
.getFormattedValue());
}
formattedValue = sb.toString();
} else if (value instanceof ResourceValueProperty) {
ResourceValueProperty p = (ResourceValueProperty) value;
formattedValue = "rstring \"" + p.getValue().getValue() + "\"";
} else if (value instanceof LocationValueProperty) {
LocationValueProperty p = (LocationValueProperty) value;
formattedValue = "location \"" + p.getValue() + "\"";
} else if (value instanceof BindValueProperty) {
BindValueProperty p = (BindValueProperty) value;
formattedValue = "bind " + p.getElementReference().getName() + "#"
+ p.getAttribute();
} else if (value instanceof ControllerHandledValueProperty) {
formattedValue = "controllermethod "
+ ((ControllerHandledValueProperty) value).getMethodname();
} else if (value instanceof ScriptHandlerHandledValueProperty) {
formattedValue = "scriptmethod "
+ ((ScriptHandlerHandledValueProperty) value)
.getFunctionname();
} else if (value instanceof ScriptValueExpression) {
formattedValue = "scriptexpression "
+ ((ScriptValueExpression) value).getSourcecode();
} else if (value instanceof ScriptValueReference) {
formattedValue = "scriptvalue "
+ ((ScriptValueReference) value).getReference();
} else if (value instanceof StaticValueProperty) {
StaticValueProperty p = (StaticValueProperty) value;
StringBuffer sb = new StringBuffer();
if (p.getModifier() != null) {
sb.append(p.getModifier() + " ");
}
sb.append("static " + p.getName() + " : ");
sb.append(new ValuePropertyFormatter(p.getValue())
.getFormattedValue());
formattedValue = sb.toString();
} else if (value instanceof StaticCallValueProperty) {
StaticCallValueProperty p = (StaticCallValueProperty) value;
StringBuffer sb = new StringBuffer();
if (p.getModifier() != null) {
sb.append(p.getModifier() + " ");
}
sb.append("call " + p.getType().getSimpleName() + " # "
+ p.getName() + " : ");
sb.append(new ValuePropertyFormatter(p.getValue())
.getFormattedValue());
formattedValue = sb.toString();
} else if (value instanceof ConstValueProperty) {
ConstValueProperty p = (ConstValueProperty) value;
StringBuffer sb = new StringBuffer();
sb.append("const " + p.getType().getSimpleName() + "#"
+ p.getField());
formattedValue = sb.toString();
} else if (value instanceof IncludeValueProperty) {
IncludeValueProperty inc = (IncludeValueProperty) value;
formattedValue = "include " + "source=" + inc.getSource()
+ " name=" + inc.getName(); // TODO