indent(code);
generateOpenBlock(code);
newLine(code);
for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
JavaProperty property = (JavaProperty)i.next();
indent(2,code);
code.append("new "
+ convertType(QName.class, classInfo)
+ "(NAMESPACE_URI, \""
+ getPropertyName(property, false)
+ "\", PREFIX)");
if(i.hasNext()) {
code.append(",");
}
newLine(code);
}
indent(code);
generateCloseBlock(code);
statement(";",code);
newLine(2,code);
indent(code);
code.append("public "
+ convertType(QName.class, classInfo)
+ "[] getPropertyNames()");
newLine(code);
indent(code);
generateOpenBlock(code);
newLine(code);
indent(2,code);
code.append("return _PROPERTIES;");
newLine(code);
indent(code);
generateCloseBlock(code);
newLine(2,code);
for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
JavaProperty property = (JavaProperty)i.next();
indent(code);
code.append("private "
+ convertType(property.getJavaType(), classInfo)
+ " _"
+ getPropertyName(property, false)
+ ";");
newLine(2, code);
}