added method to filter type.properties for mappings to other prototypes
This commit is contained in:
parent
f29baf6c5d
commit
9fa5abf0ac
1 changed files with 14 additions and 0 deletions
|
@ -45,5 +45,19 @@ public class DocProperties extends DocFileElement {
|
|||
return props;
|
||||
}
|
||||
|
||||
public Properties getMappings () {
|
||||
Properties childProps = new Properties ();
|
||||
for (Enumeration e = props.keys (); e.hasMoreElements (); ) {
|
||||
String key = (String) e.nextElement ();
|
||||
String value = props.getProperty (key);
|
||||
if (value.startsWith ("collection") || value.startsWith ("object") || value.startsWith ("mountpoint")) {
|
||||
String prototype = value.substring (value.indexOf("(")+1, value.indexOf(")")).trim ();
|
||||
childProps.setProperty (key, prototype);
|
||||
}
|
||||
|
||||
}
|
||||
return childProps;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue