1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Add isMetadata() instead of testing whether dynamic cast fails

This commit is contained in:
James Cotton 2011-03-07 11:26:50 -06:00
parent b81450a4aa
commit 157e561927
3 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public abstract class UAVDataObject extends UAVObject {
super.initialize(instID);
}
public boolean isMetadata() { return true; };
/**
* Assign a metaobject
*/

View File

@ -66,6 +66,11 @@ public class UAVMetaObject extends UAVObject {
// Setup metadata of parent
parentMetadata = parent.getDefaultMetadata();
}
@Override
public boolean isMetadata() {
return true;
};
/**
* Get the parent object

View File

@ -46,6 +46,7 @@ public abstract class UAVObject {
}
}
public abstract boolean isMetadata();
/**
* Object update mode