public class InvService extends Object
Modifier and Type | Field and Description |
---|---|
static InvService |
cdmremote |
static InvService |
cdmrfeature |
static InvService |
fileServer |
static InvService |
iso |
static InvService |
latest |
static InvService |
ncml |
static InvService |
ncss |
static InvService |
opendap |
static InvService |
uddc |
static InvService |
wcs |
static InvService |
wms |
Constructor and Description |
---|
InvService(String name,
String serviceTypeName,
String base,
String suffix,
String desc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDatasetRoot(InvProperty root)
Deprecated.
use InvCatalogImpl
|
void |
addProperty(InvProperty p)
Add a property
|
void |
addService(InvService service)
Add a nested service to a service of type COMPOUND.
|
protected boolean |
check(StringBuilder out) |
String |
dump() |
boolean |
equals(Object o)
InvServices with same values are equal
|
InvService |
findNestedService(String name) |
String |
findProperty(String name)
Get named property.
|
String |
getBase()
get the base URL for the service
|
List<InvProperty> |
getDatasetRoots()
Get dataset roots.
|
String |
getDescription()
Get the "human readable" description; use ServiceType.toString() if not set
|
String |
getFullName()
Deprecated.
services should always be at top level.
|
String |
getName()
Get the service name: referenced by dataset and access elements.
|
List<InvProperty> |
getProperties()
Get properties for this service.
|
List<InvService> |
getServices()
Get nested services; only if getServiceType() == ServiceType.COMPOUND.
|
ServiceType |
getServiceType()
get the Service Type
|
String |
getSuffix()
Get the suffix; may be null
|
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
isRelativeBase()
See if the service Base is reletive
|
String |
toString()
string representation
|
public static final InvService cdmremote
public static final InvService cdmrfeature
public static final InvService fileServer
public static final InvService latest
public static final InvService ncss
public static final InvService opendap
public static final InvService wcs
public static final InvService wms
public static final InvService ncml
public static final InvService uddc
public static final InvService iso
public InvService(String name, String serviceTypeName, String base, String suffix, String desc)
name
- : name to show to the userserviceTypeName
- : ServiceTypebase
- : base for forming URLsuffix
- : suffix for forming URL, may be null.desc
- : human readable description, may be null.public String getName()
public String getBase()
public ServiceType getServiceType()
public String getSuffix()
public String getDescription()
public List<InvProperty> getProperties()
public List<InvProperty> getDatasetRoots()
public String findProperty(String name)
name
- match this namepublic InvService findNestedService(String name)
public boolean equals(Object o)
public int hashCode()
public String dump()
public void addService(InvService service)
service
- add thispublic void addProperty(InvProperty p)
p
- add thispublic void addDatasetRoot(InvProperty root)
root
- add thispublic List<InvService> getServices()
public String getFullName()
protected boolean check(StringBuilder out)
public boolean isRelativeBase()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.