
org.opengis.cite.cat30.SuiteAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-cat30 Show documentation
Show all versions of ets-cat30 Show documentation
Checks a catalogue service implementation for conformance to
"OGC Catalogue Services 3.0 Specification -- HTTP Protocol Binding" (OGC
12-176r6) and related specifications.
package org.opengis.cite.cat30;
import com.sun.jersey.api.client.Client;
import javax.xml.validation.Schema;
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),
/**
* An immutable Schema object representing the complete CSW 3.0 schema.
*/
CSW_SCHEMA("cswSchema", Schema.class),
/**
* A DOM Document representation of the test subject or metadata about it.
*/
TEST_SUBJECT("testSubject", Document.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