/** * Gets an arbitrary attribute value from the context * * @param name * @return */ public String getAttribute(String name) { return this.attributeManager.getAttribute(name); }
/** * Sets arbitrary attributes representing the contextual data associated with this particular context * * @param name * @param value */ public void setAttribute(String name, String value) { this.attributeManager.setAttribute(name, value); }
/** * Creates a command request * * @param service - the unique identifier of the camera command to be invoked */ public CameraCommandResponse() { this.attributeManager = new AttributeManager(); }
/** * Carries the context associated with a push command * * @param command - the unique identier of a registered PushCommand instance on the device */ public PushCommandContext(String command) { if(command == null || command.trim().length() == 0) { throw new IllegalArgumentException("Command cannot be empty!!"); } this.attributeManager = new AttributeManager(); this.attributeManager.setAttribute("service", command); }
/** * Removes an attribute associated with the context * * @param name */ public void removeAttribute(String name) { this.attributeManager.removeAttribute(name); } }
/** * Gets all the names that identify values of attributes in the context * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Gets all the values of attributes in the context * * @return */ public String[] getValues() { return this.attributeManager.getValues(); }
AttributeManager attributeManager = new AttributeManager(); Element value = (Element)header.getElementsByTagName("value").item(0); attributeManager.setAttribute(name.getTextContent(), value.getTextContent());
/** * Removes an attribute associated with the service request * * @param name */ public void removeAttribute(String name) { this.attributeManager.removeAttribute(name); }
/** * Gets all the names that identify values of attributes in the context * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Gets all the values of attributes in the context * * @return */ public String[] getValues() { return this.attributeManager.getValues(); }
/** * Gets an arbitrary attribute value from the context * * @param name * @return */ public String getAttribute(String name) { return this.attributeManager.getAttribute(name); }
/** * Sets arbitrary attributes representing the contextual data associated with this particular context * * @param name * @param value */ public void setAttribute(String name, String value) { this.attributeManager.setAttribute(name, value); }
public void removeConfigValue(String name) { this.attributeManager.removeAttribute(name); } }
public Subscription() { this.attributeManager = new AttributeManager(); }
/** * Gets all the names that identify values of attributes in the service request * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Gets all the values of attributes in the service request * * @return */ public Object[] getValues() { return this.attributeManager.getValues(); }
public String getConfigValue(String name, String value) { return this.attributeManager.getAttribute(name); }
/** * Sets arbitrary attributes representing the contextual data associated with this particular service request * * @param name * @param value */ public void setAttribute(String name, String value) { this.attributeManager.setAttribute(name, value); }
/** * Removes an attribute associated with the context * * @param name */ public void removeAttribute(String name) { this.attributeManager.removeAttribute(name); }