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 InsertLocation
createAfter(Item item)
Inserts theItem
after the specified sibling into its parent.static InsertLocation
createAtIndex(int index)
Inserts theItem
at the specified index into its parent.static InsertLocation
createBefore(Item item)
Inserts theItem
before the specified sibling into its parent.static InsertLocation
createFirst()
Inserts theItem
as first child into its parent.static InsertLocation
createLast()
Inserts theItem
as last child into its parent.
-
-
-
Method Detail
-
createFirst
public static InsertLocation createFirst()
Inserts theItem
as first child into its parent.- Returns:
- the location for item to insert.
-
createLast
public static InsertLocation createLast()
Inserts theItem
as last child into its parent.- Returns:
- the location for item to insert.
-
createBefore
public static InsertLocation createBefore(Item item)
Inserts theItem
before 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 theItem
after 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 theItem
at the specified index into its parent.- Parameters:
index
- the reference index.- Returns:
- the location for item to insert.
-
-