Package thredds.catalog
Class InvAccessImpl
- java.lang.Object
-
- thredds.catalog.InvAccess
-
- thredds.catalog.InvAccessImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected String
serviceName
-
Constructor Summary
Constructors Modifier Constructor Description protected
InvAccessImpl(InvDataset dataset, String urlPath)
InvAccessImpl(InvDataset dataset, String urlPath, String serviceName, String typeName, String dataFormatName, double dataSize)
Construct from fields in XML catalog.InvAccessImpl(InvDataset dataset, String urlPath, InvService service)
Construct from an existing InvService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
InvAccessImpl elements with same values are equal.boolean
finish()
Finish constructing after all elements have been added.String
getDataFormatName()
String
getServiceName()
String
getServiceType()
int
hashCode()
Override Object.hashCode() to implement equals.void
setSize(double dataSize)
String
toString()
String representation-
Methods inherited from class thredds.catalog.InvAccess
getDataFormatType, getDataset, getDataSize, getService, getStandardUri, getStandardUrlName, getUnresolvedUrlName, getUrlPath, getWrappedUrlName, hasDataSize
-
-
-
-
Field Detail
-
serviceName
protected String serviceName
-
-
Constructor Detail
-
InvAccessImpl
public InvAccessImpl(InvDataset dataset, String urlPath, InvService service)
Construct from an existing InvService.- Parameters:
dataset
- : the containing dataset.urlPath
- : the urlPath.service
- : reference to an existing service.
-
InvAccessImpl
protected InvAccessImpl(InvDataset dataset, String urlPath)
-
InvAccessImpl
public InvAccessImpl(InvDataset dataset, String urlPath, String serviceName, String typeName, String dataFormatName, double dataSize)
Construct from fields in XML catalog. Either serviceName or typeName must be specified, not both.- Parameters:
dataset
- : the containing dataset.urlPath
- : the urlPath.serviceName
- : name of an existing service, or null.typeName
- : ServiceType name or null. If specified, this creates an anonymous Service (one that is only used by this access element).dataFormatName
- optionaldataSize
- optional
-
-
Method Detail
-
finish
public boolean finish()
Finish constructing after all elements have been added.- Returns:
- true if successful.
-
getServiceName
public String getServiceName()
- Returns:
- the service name if specified
-
getServiceType
public String getServiceType()
- Returns:
- the service type name if specified
-
getDataFormatName
public String getDataFormatName()
- Returns:
- the data format type name if specified
-
setSize
public void setSize(double dataSize)
-
equals
public boolean equals(Object o)
InvAccessImpl elements with same values are equal.
-
-