protected void mergeConfigurationContainer_Inherited( ConfigurationContainer target, ConfigurationContainer source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getInherited(); if ( src != null ) { if ( sourceDominant || target.getInherited() == null ) { target.setInherited( src ); target.setLocation( "inherited", source.getLocation( "inherited" ) ); } } }
/** * Method writeConfigurationContainer. * * @param configurationContainer * @param serializer * @param tagName * @throws java.io.IOException */ private void writeConfigurationContainer( ConfigurationContainer configurationContainer, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( configurationContainer.getInherited() != null ) { serializer.startTag( NAMESPACE, "inherited" ).text( configurationContainer.getInherited() ).endTag( NAMESPACE, "inherited" ); } if ( configurationContainer.getConfiguration() != null ) { ((Xpp3Dom) configurationContainer.getConfiguration()).writeToSerializer( NAMESPACE, serializer ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeConfigurationContainer( ConfigurationContainer, String, XmlSerializer )
/** * Method writeConfigurationContainer. * * @param configurationContainer * @param serializer * @param tagName * @throws java.io.IOException */ private void writeConfigurationContainer( ConfigurationContainer configurationContainer, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( configurationContainer.getInherited() != null ) { serializer.attribute( NAMESPACE, "inherited", configurationContainer.getInherited() ); } if ( configurationContainer.getConfiguration() != null ) { ((Xpp3Dom) configurationContainer.getConfiguration()).writeToSerializer( NAMESPACE, serializer ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeConfigurationContainer( ConfigurationContainer, String, XmlSerializer )
protected void mergeConfigurationContainer_Inherited( ConfigurationContainer target, ConfigurationContainer source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getInherited(); if ( src != null ) { if ( sourceDominant || target.getInherited() == null ) { target.setInherited( src ); target.setLocation( "inherited", source.getLocation( "inherited" ) ); } } }
/** * Method writeConfigurationContainer. * * @param configurationContainer * @param serializer * @param tagName * @throws java.io.IOException */ private void writeConfigurationContainer( ConfigurationContainer configurationContainer, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( configurationContainer.getInherited() != null ) { serializer.startTag( NAMESPACE, "inherited" ).text( configurationContainer.getInherited() ).endTag( NAMESPACE, "inherited" ); } if ( configurationContainer.getConfiguration() != null ) { ((Xpp3Dom) configurationContainer.getConfiguration()).writeToSerializer( NAMESPACE, serializer ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeConfigurationContainer( ConfigurationContainer, String, XmlSerializer )
/** * Method updateConfigurationContainer. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer(ConfigurationContainer value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "inherited", value.getInherited(), null); findAndReplaceXpp3DOM(innerCount, root, "configuration", (Xpp3Dom)value.getConfiguration()); } } //-- void updateConfigurationContainer(ConfigurationContainer, String, Counter, Element)
/** * Method updateConfigurationContainer * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer(ConfigurationContainer value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "inherited", value.getInherited(), null); findAndReplaceXpp3DOM(innerCount, root, "configuration", (Xpp3Dom)value.getConfiguration()); } } //-- void updateConfigurationContainer(ConfigurationContainer, String, Counter, Element)
/** * Method updateConfigurationContainer * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer( ConfigurationContainer value, String xmlTag, Counter counter, Element element ) { boolean shouldExist = value != null; Element root = updateElement( counter, element, xmlTag, shouldExist ); if ( shouldExist ) { Counter innerCount = new Counter( counter.getDepth() + 1 ); findAndReplaceSimpleElement( innerCount, root, "inherited", value.getInherited(), null ); findAndReplaceXpp3DOM( innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration() ); } } // -- void updateConfigurationContainer(ConfigurationContainer, String, Counter, Element)
/** * Method updateConfigurationContainer * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer( ConfigurationContainer value, String xmlTag, Counter counter, Element element ) { boolean shouldExist = value != null; Element root = updateElement( counter, element, xmlTag, shouldExist ); if ( shouldExist ) { Counter innerCount = new Counter( counter.getDepth() + 1 ); findAndReplaceSimpleElement( innerCount, root, "inherited", value.getInherited(), null ); findAndReplaceXpp3DOM( innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration() ); } } // -- void updateConfigurationContainer(ConfigurationContainer, String, Counter, Element)
/** * Method updateConfigurationContainer. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer(ConfigurationContainer value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "inherited", value.getInherited(), null); findAndReplaceXpp3DOM(innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration()); } } // -- void updateConfigurationContainer(ConfigurationContainer, String, // Counter, Element)
/** * Method updateConfigurationContainer. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateConfigurationContainer( ConfigurationContainer value, String xmlTag, Counter counter, Element element ) { boolean shouldExist = value != null; Element root = updateElement( counter, element, xmlTag, shouldExist ); if ( shouldExist ) { Counter innerCount = new Counter( counter.getDepth() + 1 ); findAndReplaceSimpleElement( innerCount, root, "inherited", value.getInherited(), null ); findAndReplaceXpp3DOM( innerCount, root, "configuration", (Xpp3Dom) value.getConfiguration() ); } } // -- void updateConfigurationContainer(ConfigurationContainer, String, Counter, Element)
root, "inherited", value.getInherited(), null );