@Test public void testSetCoAPResourceType() { resource.setCoAPResourceType(CoAPResourceType.HELLO_WORLD); assertEquals(resource.getCoAPResourceType(), CoAPResourceType.HELLO_WORLD); assertFalse(resource.getCoAPResourceType() == CoAPResourceType.CARELESS); }
public void setCoAPResourceType(CoAPResourceType type) { this.type = type; }
CoAPResource { public void setCoAPResourceType(CoAPResourceType type) { this.type = type; } }
CoAPResource { public void setCoAPResourceType(CoAPResourceType type) { this.type = type; } CoAPResource(URI uri); }
CoAPResource { public void setCoAPResourceType(CoAPResourceType type) { this.type = type; } CoAPResource(URI uri); void setUri(URI uri); URI getUri(); void setHost(String host); String getHost(); String getLinkFormatPresentation(boolean absolute); void setCoAPResourceType(CoAPResourceType type); CoAPResourceType getCoAPResourceType(); void setResourceType(String resourceType); String getResourceType(); String getInterfaceDescription(); void setInterfaceDescription(String interfaceDescription); void setContentType(int contentType); int getContentType(); void setContent(byte[] content); byte[] getContent(); void setMaximumSize(int maximumSize); int getMaximumSize(); void setMaxAge(int maxAge); int getMaxAge(); void setTitle(String title); String getTitle(); void setTitleAsterisk(String title); String getTitleAsterisk(); void setRelationType(String relationType); String getRelationType(); void setAnchor(String anchor); String getAnchor(); void setInstance(String instance); void addObserver(CoAPResourceObserver observer); boolean removeObserver(CoAPResourceObserver observer); List<CoAPResourceObserver> getObservers(); Map<String, String> getAttributes(); String getAttribute(String attributeName); void setKey(String key); String getKey(); boolean matchWithQueryParams(Map<String, String> params); }
CoAPResource { public void setCoAPResourceType(CoAPResourceType type) { this.type = type; } CoAPResource(URI uri); void setUri(URI uri); URI getUri(); void setHost(String host); String getHost(); String getLinkFormatPresentation(boolean absolute); void setCoAPResourceType(CoAPResourceType type); CoAPResourceType getCoAPResourceType(); void setResourceType(String resourceType); String getResourceType(); String getInterfaceDescription(); void setInterfaceDescription(String interfaceDescription); void setContentType(int contentType); int getContentType(); void setContent(byte[] content); byte[] getContent(); void setMaximumSize(int maximumSize); int getMaximumSize(); void setMaxAge(int maxAge); int getMaxAge(); void setTitle(String title); String getTitle(); void setTitleAsterisk(String title); String getTitleAsterisk(); void setRelationType(String relationType); String getRelationType(); void setAnchor(String anchor); String getAnchor(); void setInstance(String instance); void addObserver(CoAPResourceObserver observer); boolean removeObserver(CoAPResourceObserver observer); List<CoAPResourceObserver> getObservers(); Map<String, String> getAttributes(); String getAttribute(String attributeName); void setKey(String key); String getKey(); boolean matchWithQueryParams(Map<String, String> params); static final String DELIMITER; static final String ATTRIBUTE_DELIMITER; static final String RESOURCE_TYPE; static final String INTERFACE_DESCRIPTION; static final String MAXIMUM_SIZE; static final String TITLE; static final String TITLE_ASTERISK; static final String RELATION_TYPE; static final String ANCHOR; static final String CONTENT_TYPE; static final String INSTANCE; static final String KEY; }