[New] Added *.locatorFor(String, String) for root elements
This commit is contained in:
parent
b68b74aade
commit
19420f9d80
|
@ -208,4 +208,8 @@ public class Order extends AbstractStrolchRootElement implements StrolchRootElem
|
||||||
public int compareTo(Order o) {
|
public int compareTo(Order o) {
|
||||||
return getId().compareTo(o.getId());
|
return getId().compareTo(o.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Locator locatorFor(String type, String id) {
|
||||||
|
return Locator.valueOf(Tags.ORDER, type, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,4 +223,8 @@ public class Resource extends AbstractStrolchRootElement implements StrolchRootE
|
||||||
public int compareTo(Resource o) {
|
public int compareTo(Resource o) {
|
||||||
return getId().compareTo(o.getId());
|
return getId().compareTo(o.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Locator locatorFor(String type, String id) {
|
||||||
|
return Locator.valueOf(Tags.RESOURCE, type, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,4 +405,8 @@ public class Activity extends AbstractStrolchRootElement
|
||||||
public void setParent(Activity activity) {
|
public void setParent(Activity activity) {
|
||||||
this.parent = activity;
|
this.parent = activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Locator locatorFor(String type, String id) {
|
||||||
|
return Locator.valueOf(Tags.ACTIVITY, type, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue