本文整理了Java中org.cybergarage.upnp.Device.getDeviceNode()
方法的一些代码示例,展示了Device.getDeviceNode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.getDeviceNode()
方法的具体详情如下:
包路径:org.cybergarage.upnp.Device
类名称:Device
方法名:getDeviceNode
暂无
代码示例来源:origin: i2p/i2p.i2p
public boolean isNMPRMode() {
Node devNode = getDeviceNode();
if (devNode == null)
return false;
return (devNode.getNode(UPnP.INMPR03) != null) ? true : false;
}
代码示例来源:origin: i2p/i2p.i2p
public int getConfigId() {
Node devNode = getDeviceNode();
if (devNode == null)
return 0;
return devNode.getAttributeIntegerValue(CONFIG_ID);
}
代码示例来源:origin: i2p/i2p.i2p
public void setModelURL(String value) {
getDeviceNode().setNode(MODEL_URL, value);
}
代码示例来源:origin: i2p/i2p.i2p
public void setPresentationURL(String value) {
getDeviceNode().setNode(presentationURL, value);
}
代码示例来源:origin: i2p/i2p.i2p
public void setManufacture(String value) {
getDeviceNode().setNode(MANUFACTURE, value);
}
代码示例来源:origin: i2p/i2p.i2p
public String getManufactureURL() {
return getDeviceNode().getNodeValue(MANUFACTURE_URL);
}
代码示例来源:origin: i2p/i2p.i2p
public String getModelDescription() {
return getDeviceNode().getNodeValue(MODEL_DESCRIPTION);
}
代码示例来源:origin: i2p/i2p.i2p
public String getModelName() {
return getDeviceNode().getNodeValue(MODEL_NAME);
}
代码示例来源:origin: i2p/i2p.i2p
public String getModelNumber() {
return getDeviceNode().getNodeValue(MODEL_NUMBER);
}
代码示例来源:origin: i2p/i2p.i2p
public String getSerialNumber() {
return getDeviceNode().getNodeValue(SERIAL_NUMBER);
}
代码示例来源:origin: i2p/i2p.i2p
public String getUPC() {
return getDeviceNode().getNodeValue(UPC);
}
代码示例来源:origin: i2p/i2p.i2p
public void setDeviceType(String value) {
getDeviceNode().setNode(DEVICE_TYPE, value);
}
代码示例来源:origin: i2p/i2p.i2p
public void setModelDescription(String value) {
getDeviceNode().setNode(MODEL_DESCRIPTION, value);
}
代码示例来源:origin: i2p/i2p.i2p
public void setModelNumber(String value) {
getDeviceNode().setNode(MODEL_NUMBER, value);
}
代码示例来源:origin: i2p/i2p.i2p
public void setUDN(String value) {
getDeviceNode().setNode(UDN, value);
}
代码示例来源:origin: i2p/i2p.i2p
public boolean removePresentationURL() {
return getDeviceNode().removeNode(presentationURL);
}
代码示例来源:origin: i2p/i2p.i2p
public String getPresentationURL() {
return getDeviceNode().getNodeValue(presentationURL);
}
代码示例来源:origin: i2p/i2p.i2p
/**
* Add a Service to device without checking for duplicate or syntax error
*
* @param s
* Add Service s to the Device
*/
public void addService(Service s) {
Node serviceListNode = getDeviceNode().getNode(ServiceList.ELEM_NAME);
if (serviceListNode == null) {
serviceListNode = new Node(ServiceList.ELEM_NAME);
getDeviceNode().addNode(serviceListNode);
}
serviceListNode.addNode(s.getServiceNode());
}
代码示例来源:origin: i2p/i2p.i2p
public void setNMPRMode(boolean flag) {
Node devNode = getDeviceNode();
if (devNode == null)
return;
if (flag == true) {
devNode.setNode(UPnP.INMPR03, UPnP.INMPR03_VERSION);
devNode.removeNode(Device.URLBASE_NAME);
} else {
devNode.removeNode(UPnP.INMPR03);
}
}
代码示例来源:origin: i2p/i2p.i2p
private DeviceData getDeviceData() {
Node node = getDeviceNode();
DeviceData userData = (DeviceData) node.getUserData();
if (userData == null) {
userData = new DeviceData();
node.setUserData(userData);
userData.setNode(node);
}
return userData;
}
内容来源于网络,如有侵权,请联系作者删除!