All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.atteo.xmlcombiner.CombineChildren Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
/*
 * Copyright 2012 Atteo.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.atteo.xmlcombiner;

/**
 * Controls the behavior of merging child elements.
 */
public enum CombineChildren {
	/**
	 * Merge subelements from both elements.
	 *
	 * 

* This is the default. * Those subelements which can be uniquely paired between two documents using the key (tag+selected attributes) * will be merged, those that cannot be paired will be appended.
* Example:
* First: *

	 * {@code
	 *  
	 *     
	 *         parameter
	 *     
	 *  
	 * }
	 * 
* Second: *
	 * {@code
	 *  
	 *     
	 *         other value
	 *     
	 *  
	 * }
	 * 
* Result: *
	 * {@code
	 *  
	 *     
	 *         other value
	 *     
	 *  
	 * }
	 * 
*

*/ MERGE, /** * Always append child elements from both recessive and dominant elements. * *

* Example:
* First: *

	 * {@code
	 * 
	 *     
	 *         parameter
	 *     
	 *  
	 * }
	 * 
* Second: *
	 * {@code
	 * 
	 *     
	 *         parameter
	 *     
	 *  
	 * }
	 * 
* Result: *
	 * {@code
	 * 
	 *     
	 *         parameter
	 *         parameter
	 *     
	 *  
	 * }
	 * 
*

*/ APPEND; public static final String ATTRIBUTE_NAME = "combine.children"; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy