|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectobixserver.util.ObjUtil
public class ObjUtil
Utility class for Obj manipulation.
| Field Summary | |
|---|---|
static obix.Contract |
CONTRACT_ALARM
|
static obix.Contract |
CONTRACT_ALARM_QUERY_OUT
|
static obix.Contract |
CONTRACT_ALARMFILTER
|
static obix.Contract |
CONTRACT_ALL_ALARM
|
static obix.Contract |
CONTRACT_BAD_URI
|
static obix.Contract |
CONTRACT_NIL
|
static obix.Contract |
CONTRACT_OBJ
|
static obix.Contract |
CONTRACT_PERMISSION
|
static obix.Contract |
CONTRACT_POINT_ALARM
|
static obix.Contract |
CONTRACT_POINT_STATEFUL_ALARM
|
static obix.Contract |
CONTRACT_STATEFUL_ALARM
|
static obix.Contract |
CONTRACT_UNSUPPORTED
|
static obix.Contract |
CONTRACT_WATCH
|
static String |
CONTRACT_WATCH_SERVICE_URI
|
static String |
CONTRACT_WATCH_URI
|
static obix.Contract |
CONTRACT_WATCHIN
|
static obix.Contract |
CONTRACT_WATCHOUT
|
static Logger |
logger
|
static String |
WATCH_SERVICE_URI
|
| Constructor Summary | |
|---|---|
ObjUtil()
|
|
| Method Summary | |
|---|---|
static obix.Obj |
cloneInstance(obix.Obj src,
boolean nullName)
Clone an obj instance without the subtree. |
static obix.Obj |
cloneObj(obix.Obj src)
Clone an object without setting kids and parent from the source obj. |
static obix.Obj |
cloneObj(obix.Obj src,
boolean nullName)
Clone an object without setting kids and parent from the source obj. |
static obix.Obj |
cloneObjTree(obix.Obj src)
Clone an object, including it's children. |
static obix.Obj |
cloneObjTree(obix.Obj src,
boolean doTree,
boolean nullName)
Clone an object, possibly setting kids and parent from the source obj. |
static obix.Obj |
cloneObjTreeNullNameRoot(obix.Obj src,
boolean doTree,
boolean nullName)
Clone an object, possibly setting kids and parent from the source obj. |
static void |
copyObjTreeValues(obix.Obj src,
obix.Obj dst)
Copy Obj tree. |
static void |
copyObjValue(obix.Obj src,
obix.Obj dst)
Copies Obj value from src to dst. |
static obix.Err |
createBadUriErr(obix.Uri uri)
Creates an Err with the contract obix:BadUriErr |
static obix.Err |
createPermissionErr(obix.Uri uri)
Creates an Err with the contract obix:PermissionErr |
static obix.Err |
createUnsupportedErr(obix.Uri uri)
Creates an Err with the contract obix:PermissionErr |
static void |
ensureHrefForTree(obix.Obj obj)
|
static String |
getLeafName(obix.Uri uri)
Returns the 'leaf name' of a path. |
static String |
getParentPath(obix.Uri uri)
Returns the path of parent Obj in full relative path. |
static obix.Obj |
loadFromResource(String file)
Loads objects from a resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger logger
public static final obix.Contract CONTRACT_BAD_URI
public static final obix.Contract CONTRACT_PERMISSION
public static final obix.Contract CONTRACT_UNSUPPORTED
public static final obix.Contract CONTRACT_WATCHIN
public static final obix.Contract CONTRACT_WATCHOUT
public static final obix.Contract CONTRACT_NIL
public static final obix.Contract CONTRACT_WATCH
public static final obix.Contract CONTRACT_OBJ
public static final String CONTRACT_WATCH_URI
public static final String CONTRACT_WATCH_SERVICE_URI
public static final obix.Contract CONTRACT_POINT_ALARM
public static final obix.Contract CONTRACT_STATEFUL_ALARM
public static final obix.Contract CONTRACT_ALARM
public static final obix.Contract CONTRACT_ALL_ALARM
public static final obix.Contract CONTRACT_POINT_STATEFUL_ALARM
public static final obix.Contract CONTRACT_ALARMFILTER
public static final obix.Contract CONTRACT_ALARM_QUERY_OUT
public static final String WATCH_SERVICE_URI
| Constructor Detail |
|---|
public ObjUtil()
| Method Detail |
|---|
public static obix.Obj cloneObj(obix.Obj src)
src - source Obj
public static obix.Obj cloneObj(obix.Obj src,
boolean nullName)
nullName - if true, don't copy namesrc - source Obj
public static obix.Obj cloneInstance(obix.Obj src,
boolean nullName)
src - nullName -
public static obix.Obj cloneObjTree(obix.Obj src)
src - source Obj
public static obix.Obj cloneObjTree(obix.Obj src,
boolean doTree,
boolean nullName)
src - source ObjdoTree - perform deep cloning, cloning also childrennullName - if true, don't copy name
public static obix.Obj cloneObjTreeNullNameRoot(obix.Obj src,
boolean doTree,
boolean nullName)
src - source ObjdoTree - perform deep cloning, cloning also childrennullName - if true, don't copy name
public static void copyObjValue(obix.Obj src,
obix.Obj dst)
src - dst -
public static void copyObjTreeValues(obix.Obj src,
obix.Obj dst)
src - dst - public static obix.Obj loadFromResource(String file)
file -
ObixserverExceptionpublic static obix.Err createBadUriErr(obix.Uri uri)
uri - public static obix.Err createPermissionErr(obix.Uri uri)
uri - public static obix.Err createUnsupportedErr(obix.Uri uri)
uri - public static String getParentPath(obix.Uri uri)
uri -
public static String getLeafName(obix.Uri uri)
uri -
public static void ensureHrefForTree(obix.Obj obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||