use of org.exoplatform.xml.object.XMLField in project kernel by exoplatform.
the class TestCollectionValue method getConfiguredCollection.
private XMLCollection getConfiguredCollection(String... profiles) throws Exception {
Configuration config = getConfiguration("collection-configuration.xml", profiles);
Component a = config.getComponent(InitParamsHolder.class.getName());
ObjectParameter op = a.getInitParams().getObjectParam("test.configuration");
XMLObject o = op.getXMLObject();
XMLField xf = o.getField("role");
return xf.getCollection();
}
use of org.exoplatform.xml.object.XMLField in project kernel by exoplatform.
the class TestField method getConfiguredCollection.
private XMLCollection getConfiguredCollection(String... profiles) throws Exception {
Configuration config = getConfiguration("field-configuration.xml", profiles);
Component a = config.getComponent(InitParamsHolder.class.getName());
ObjectParameter op = a.getInitParams().getObjectParam("test.configuration");
XMLObject o = op.getXMLObject();
XMLField xf = o.getField("role");
return xf.getCollection();
}
Aggregations