Package net.sf.okapi.lib.xliff2.core
Class CloneFactory
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.CloneFactory
-
public class CloneFactory extends Object
Provides methods to create deep-copy clones of various abstract classes or interfaces.
-
-
Constructor Summary
Constructors Constructor Description CloneFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectcreate(Object original)Creates a deep-copy clone of a given object.static IExtChildcreate(IExtChild original)Creates a deep-copy clone of a givenIExtChildobject.static Partcreate(Part original)static Tagcreate(Tag original, Tags destinationTags)Creates a deep-copy clone of a givenTagobject.
-
-
-
Method Detail
-
create
public static Tag create(Tag original, Tags destinationTags)
Creates a deep-copy clone of a givenTagobject.- Parameters:
original- the original tag to duplicate.destinationTags- the list of destination tags. This is used to find and connect opening tags when creating closing tags.- Returns:
- the new tag.
-
create
public static Part create(Part original)
- Parameters:
original- the original part/segment to duplicate.- Returns:
- the new part/segment.
-
create
public static IExtChild create(IExtChild original)
Creates a deep-copy clone of a givenIExtChildobject.- Parameters:
original- the original object to duplicate.- Returns:
- the new object.
-
-