thredds.catalog
Class InvAccessImpl

java.lang.Object
  extended by thredds.catalog.InvAccess
      extended by thredds.catalog.InvAccessImpl

public class InvAccessImpl
extends InvAccess

Concrete access element.

Author:
john caron
See Also:
InvAccess

Field Summary
protected  String serviceName
           
 
Fields inherited from class thredds.catalog.InvAccess
dataFormat, dataset, dataSize, service, type, urlPath
 
Constructor Summary
protected InvAccessImpl(InvDataset dataset, String urlPath)
           
  InvAccessImpl(InvDataset dataset, String urlPath, InvService service)
          Construct from an existing InvService.
  InvAccessImpl(InvDataset dataset, String urlPath, String serviceName, String typeName, String dataFormatName, double dataSize)
          Construct from fields in XML catalog.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 - optional
dataSize - optional
Method Detail

finish

public boolean finish()
Finish constructing after all elements have been added.

Returns:
true if successful.

toString

public String toString()
String representation

Overrides:
toString in class Object

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.

Overrides:
equals in class Object

hashCode

public int hashCode()
Override Object.hashCode() to implement equals.

Overrides:
hashCode in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.