public class ReplaceByIdUtil extends Object
AbstractJaxb.replaceById(String, String),
AbstractJaxb.replaceById(String, AbstractJaxb)| Constructor and Description |
|---|
ReplaceByIdUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractJaxb> |
replaceById(String id,
T target,
String replace) |
static <T extends AbstractJaxb> |
replaceById(String id,
T target,
T replace)
targetの子孫要素のうち、指定したid属性を持つ要素を置換します。 なお、replaceのディープコピーで置換されます。
target自身を置換することはできません。
|
public static <T extends AbstractJaxb> boolean replaceById(String id, T target, T replace) throws TagTypeUnmatchException
id - target - replace - TagTypeUnmatchExceptionpublic static <T extends AbstractJaxb> boolean replaceById(String id, T target, String replace) throws TagTypeUnmatchException
TagTypeUnmatchExceptionCopyright © 2021 Project Mixer2. All rights reserved.