/** * Expand the SmooksResourceConfiguration table. * <p/> * Expand the XmlDef entries to the target elements etc. */ private void expandSmooksResourceConfigurationTable() { class ExpansionSmooksResourceConfigurationStrategy implements SmooksResourceConfigurationStrategy { private ExpansionSmooksResourceConfigurationStrategy() { } public void applyStrategy(String elementName, SmooksResourceConfiguration resourceConfig) { // Expand XmlDef entries. if(resourceConfig.isXmlDef()) { String[] elements = getDTDElements(resourceConfig.getSelector().substring(SmooksResourceConfiguration.XML_DEF_PREFIX.length())); for (final String element : elements) { addResourceConfiguration(element, resourceConfig); } } // Add code to expand other expandable entry types here. } } SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(new ExpansionSmooksResourceConfigurationStrategy()); tableIterator.iterate(); }
/** * Expand the SmooksResourceConfiguration table. * <p/> * Expand the XmlDef entries to the target elements etc. */ private void expandSmooksResourceConfigurationTable() { class ExpansionSmooksResourceConfigurationStrategy implements SmooksResourceConfigurationStrategy { private ExpansionSmooksResourceConfigurationStrategy() { } public void applyStrategy(String elementName, SmooksResourceConfiguration resourceConfig) { // Expand XmlDef entries. if(resourceConfig.isXmlDef()) { String[] elements = getDTDElements(resourceConfig.getSelector().substring(SmooksResourceConfiguration.XML_DEF_PREFIX.length())); for (final String element : elements) { addResourceConfiguration(element, resourceConfig); } } // Add code to expand other expandable entry types here. } } SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(new ExpansionSmooksResourceConfigurationStrategy()); tableIterator.iterate(); }
/** * Expand the SmooksResourceConfiguration table. * <p/> * Expand the XmlDef entries to the target elements etc. */ private void expandSmooksResourceConfigurationTable() { class ExpansionSmooksResourceConfigurationStrategy implements SmooksResourceConfigurationStrategy { private ExpansionSmooksResourceConfigurationStrategy() { } public void applyStrategy(String elementName, SmooksResourceConfiguration resourceConfig) { // Expand XmlDef entries. if(resourceConfig.isXmlDef()) { String[] elements = getDTDElements(resourceConfig.getSelector().substring(SmooksResourceConfiguration.XML_DEF_PREFIX.length())); for (final String element : elements) { addResourceConfiguration(element, resourceConfig); } } // Add code to expand other expandable entry types here. } } SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(new ExpansionSmooksResourceConfigurationStrategy()); tableIterator.iterate(); }
/** * Expand the SmooksResourceConfiguration table. * * Expand the XmlDef entries to the target elements etc. */ private void expandSmooksResourceConfigurationTable() { class ExpansionSmooksResourceConfigurationStrategy implements SmooksResourceConfigurationStrategy { private ExpansionSmooksResourceConfigurationStrategy() { } public void applyStrategy(String elementName, SmooksResourceConfiguration resourceConfig) { // Expand XmlDef entries. if(resourceConfig.isXmlDef()) { String[] elements = getDTDElements(resourceConfig.getSelector().substring(SmooksResourceConfiguration.XML_DEF_PREFIX.length())); for(int i = 0; i < elements.length; i++) { addResourceConfiguration(elements[i], resourceConfig); } } // Add code to expand other expandable entry types here. } } SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(new ExpansionSmooksResourceConfigurationStrategy()); tableIterator.iterate(); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }
/** * Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to * their respective tables. */ private void extractContentHandlers() { ContentHandlerExtractionStrategy cduStrategy = new ContentHandlerExtractionStrategy(applicationContext); SmooksResourceConfigurationTableIterator tableIterator = new SmooksResourceConfigurationTableIterator(cduStrategy); tableIterator.iterate(); }