public class ReplaceDescendantsUtil extends Object
AbstractJaxb.replaceDescendants(Class, String)
,
AbstractJaxb.replaceDescendants(Class, AbstractJaxb)
,
AbstractJaxb.replaceDescendants(String, String)
,
AbstractJaxb.replaceDescendants(String, AbstractJaxb)
,
AbstractJaxb.replaceDescendants(String, Class, String)
,
AbstractJaxb.replaceDescendants(String, Class, AbstractJaxb)
Constructor and Description |
---|
ReplaceDescendantsUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends AbstractJaxb> |
replaceDescendants(T target,
Class<T> tagType,
String replace) |
static <T extends AbstractJaxb> |
replaceDescendants(T target,
Class<T> tagType,
String clazz,
String replace) |
static <T extends AbstractJaxb> |
replaceDescendants(T target,
Class<T> tagType,
String clazz,
T replace)
タグとclass指定で子孫要素を置換する なお、replaceのディープコピーで置換されます。
|
static <T extends AbstractJaxb> |
replaceDescendants(T target,
Class<T> tagType,
T replace)
タグ指定で子孫要素を置換する なお、replaceのディープコピーで置換されます。
|
static <T extends AbstractJaxb> |
replaceDescendants(T target,
String clazz,
String replace) |
static <T extends AbstractJaxb> |
replaceDescendants(T target,
String clazz,
T replace)
class属性の指定で子孫要素を置換する なお、replaceのディープコピーで置換されます。
|
public static <T extends AbstractJaxb> void replaceDescendants(T target, Class<T> tagType, String clazz, T replace) throws TagTypeUnmatchException
T
- tag type. (i.e. Div.class, Span.class...)target
- object for scantagType
- tag classclazz
- class property of tagreplace
- replacement tag object.TagTypeUnmatchException
public static <T extends AbstractJaxb> void replaceDescendants(T target, Class<T> tagType, String clazz, String replace) throws TagTypeUnmatchException
TagTypeUnmatchException
public static <T extends AbstractJaxb> void replaceDescendants(T target, Class<T> tagType, T replace) throws TagTypeUnmatchException
target
- object for scantagType
- tag classreplace
- replacement tag object.TagTypeUnmatchException
public static <T extends AbstractJaxb> void replaceDescendants(T target, Class<T> tagType, String replace) throws TagTypeUnmatchException
TagTypeUnmatchException
public static <T extends AbstractJaxb> void replaceDescendants(T target, String clazz, T replace) throws TagTypeUnmatchException
target
- object for scanclazz
- class property of tagreplace
- replacement tag objectTagTypeUnmatchException
public static <T extends AbstractJaxb> void replaceDescendants(T target, String clazz, String replace) throws TagTypeUnmatchException
TagTypeUnmatchException
Copyright © 2021 Project Mixer2. All rights reserved.