private void initDeclaredPropertyDefinitions(VltNodeType nt, ResourceProxy child) {
Map<String,VltPropertyDefinition> pds = new HashMap<String,VltPropertyDefinition>();
// load propertyDefinition children
for (Iterator<ResourceProxy> it = child.getChildren().iterator(); it.hasNext();) {
ResourceProxy aChild = it.next();
String childName = PathUtil.getName(aChild.getPath());
if (childName.startsWith("jcr:propertyDefinition")) {
String jcrName = (String)aChild.getProperties().get("jcr:name");
if (jcrName!=null) {
VltPropertyDefinition pd = new VltPropertyDefinition();
pd.setName(jcrName);
Boolean autoCreated = (Boolean)aChild.getProperties().get("jcr:autoCreated");
if (autoCreated!=null) {
pd.setAutoCreated(autoCreated);
}
Boolean multiple = (Boolean)aChild.getProperties().get("jcr:multiple");
if (multiple!=null) {
pd.setMultiple(multiple);
}
Boolean mandatory = (Boolean)aChild.getProperties().get("jcr:mandatory");
if (mandatory!=null) {
pd.setMandatory(mandatory);
}
Boolean isProtected = (Boolean)aChild.getProperties().get("jcr:protected");
if (isProtected!=null) {
pd.setProtected(isProtected);
}
final Object object = aChild.getProperties().get("jcr:requiredType");
if (object!=null) {
String requiredType = (String)object;
if (requiredType!=null) {
pd.setRequiredType(propertyTypeFromName(requiredType));
}