Class InsertLocation.Factory
- java.lang.Object
-
- com.sodius.mdw.metamodel.integrity.io.command.InsertLocation.Factory
-
- Enclosing interface:
- InsertLocation
public static class InsertLocation.Factory extends Object
The factory provides methods to instantiate a particular insert location.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InsertLocationcreateAfter(Item item)Inserts theItemafter the specified sibling into its parent.static InsertLocationcreateAtIndex(int index)Inserts theItemat the specified index into its parent.static InsertLocationcreateBefore(Item item)Inserts theItembefore the specified sibling into its parent.static InsertLocationcreateFirst()Inserts theItemas first child into its parent.static InsertLocationcreateLast()Inserts theItemas last child into its parent.
-
-
-
Method Detail
-
createFirst
public static InsertLocation createFirst()
Inserts theItemas first child into its parent.- Returns:
- the location for item to insert.
-
createLast
public static InsertLocation createLast()
Inserts theItemas last child into its parent.- Returns:
- the location for item to insert.
-
createBefore
public static InsertLocation createBefore(Item item)
Inserts theItembefore the specified sibling into its parent.- Parameters:
item- the reference item.- Returns:
- the location for item to insert.
-
createAfter
public static InsertLocation createAfter(Item item)
Inserts theItemafter the specified sibling into its parent.- Parameters:
item- the reference item.- Returns:
- the location for item to insert.
-
createAtIndex
public static InsertLocation createAtIndex(int index)
Inserts theItemat the specified index into its parent.- Parameters:
index- the reference index.- Returns:
- the location for item to insert.
-
-