
org.opengis.cite.owc10.SuiteAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-owc10 Show documentation
Show all versions of ets-owc10 Show documentation
Checks context documents for conformance against the "OGC OWS
Context Conceptual Model" specification, version 1.0 (OGC 12-080r2).
package org.opengis.cite.owc10;
import com.sun.jersey.api.client.Client;
import java.io.File;
import java.net.URI;
import org.w3c.dom.Document;
/**
* An enumerated type defining ISuite attributes that may be set to constitute a
* shared test fixture.
*/
@SuppressWarnings("rawtypes")
public enum SuiteAttribute {
/**
* A client component for interacting with HTTP endpoints.
*/
CLIENT("httpClient", Client.class),
/**
* A DOM Document that represents the test subject or metadata about it.
*/
TEST_SUBJECT("testSubject", Document.class),
/**
* A File containing the test subject or a description of it.
*/
TEST_SUBJ_FILE("testSubjectFile", File.class),
/**
* An absolute URI that refers to the test subject or a description of it.
*/
TEST_SUBJ_URI("testSubjectURI", URI.class);
private final Class attrType;
private final String attrName;
private SuiteAttribute(String attrName, Class attrType) {
this.attrName = attrName;
this.attrType = attrType;
}
public Class getType() {
return attrType;
}
public String getName() {
return attrName;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder(attrName);
sb.append('(').append(attrType.getName()).append(')');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy