public class Platform extends Resource
AUTH_TYPE, CONN_MAX_EXCEEDED, DEVICE_DELETE, DEVICE_REGISTER, EMPTY_STR, INVALID_ADDRESS, INVALID_DEVICE, INVALID_DIR, INVALID_ID, INVALID_INF, INVALID_NAME, INVALID_PARAM, INVALID_PLATFORM, INVALID_PROVIDER, INVALID_RESOURCE, INVALID_TYPE, INVALID_URL, NOT_FOUND, NOT_INITIALIZED, NOTIFY_CLASS, NOTIFY_ON_STATUS, NOTIFY_ON_VERIFY, RESOURCE_ENABLED, RESOURCE_VALID, SEP, STR_ANY, STR_BASE_NAME, STR_DMC, STR_EMPTY, STR_FALSE, STR_INF, STR_INF_EXT, STR_ONE, STR_TRUE, STR_WILD, STR_ZERO, SYSTEM_ID, TIME, UPDATE_MAJOR, UPDATE_MINOR, UPDATE_SOFTWARE, UPDATE_SOFTWARE_APPS, UPDATE_SOFTWARE_DMC| Constructor and Description |
|---|
Platform(java.lang.String type)
Construct Device Management Client platform
|
Platform(java.lang.String type,
java.lang.String inf)
Construct Device Management Client platform
|
Platform(java.lang.String name,
java.lang.String type,
java.lang.String inf,
java.lang.String attr)
Construct a device tyoe object from the given information
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdate()
Check if the Platform has enough privilege for software/data update
|
Application |
getApplication()
Retrieve platform application object
|
Platform |
getBasePlatform()
Get base Platform
|
Command |
getBootstrapCommand()
Retrieve the bootstrap command of the Platform object.
|
java.util.Vector |
getDevices()
Get all devices belonging to this platform type.
|
java.lang.String |
getINF()
Get platform's INF file name
|
java.lang.String |
getLanguageCode()
Return abbreviated language code of the Platform.
|
java.lang.String |
getName()
Get full platform name (E.g.
|
java.lang.String[] |
getNameAndLanguage()
Get platform name and language name.
|
java.lang.String |
getType()
Get platform type (E.g.
|
boolean |
isAnonymous()
Returns true if the Platform is an anonymous platform.
|
boolean |
matchType(java.lang.String type)
Match platform types using nearest matching algorithm.
|
boolean |
matchType(java.lang.String type,
boolean exact)
Match platform types.
|
void |
removeBasePlatform(Platform plt)
Remove a base Platform object
|
void |
setBasePlatform(Platform plt)
Set a base Platform.
|
void |
setBootstrapCommand(Command cmd)
Set new bootstrap command.
|
void |
setINF(java.lang.String inf)
Change platform's INF file name
|
void |
setName(java.lang.String name)
Change platform name.
|
void |
setType(java.lang.String type)
Change platform type.
|
delete, equals, getAttribute, getId, getKey, hashCode, isEnabled, isSystemResource, isValid, removeAttribute, save, setAttribute, setEnabled, setNew, validateAttributepublic Platform(java.lang.String type)
type - Device typepublic Platform(java.lang.String type,
java.lang.String inf)
type - Device typeinf - Full path of the INF filepublic Platform(java.lang.String name,
java.lang.String type,
java.lang.String inf,
java.lang.String attr)
name - Platform name (E.g. Windows PC)type - Platform type (E.g. WIN32)inf - Platform's INF file nameattr - Platform attributes (E.g. enabled=true;upgrade=auto)public boolean canUpdate()
public Application getApplication()
public Platform getBasePlatform() throws ResourceException
ResourceExceptionpublic Command getBootstrapCommand()
null.public java.util.Vector getDevices()
throws ResourceException
oracle.lite.resource.ResourceExceptionResourceExceptionpublic java.lang.String getINF()
public java.lang.String getLanguageCode()
public java.lang.String getName()
public java.lang.String[] getNameAndLanguage()
java.lang.String[] containing Platform Name and
language name.public java.lang.String getType()
public boolean isAnonymous()
public boolean matchType(java.lang.String type)
type - Platform type stringpublic boolean matchType(java.lang.String type,
boolean exact)
type - Platform type stringexact - If true, match exact type.public void removeBasePlatform(Platform plt)
plt - Platform object (If null, existing base will
be removed.public void setBasePlatform(Platform plt)
plt - Platform objectpublic void setBootstrapCommand(Command cmd)
cmd - oracle.lite.resource.dm.Command objectpublic void setINF(java.lang.String inf)
public void setName(java.lang.String name)
public void setType(java.lang.String type)