thredds.catalog2.simpleImpl
Class AccessImpl

java.lang.Object
  extended by thredds.catalog2.simpleImpl.AccessImpl
All Implemented Interfaces:
Access, AccessBuilder, ThreddsBuilder

public class AccessImpl
extends java.lang.Object
implements Access, AccessBuilder

_more_

Since:
4.0
Author:
edavis

Constructor Summary
protected AccessImpl(DatasetImpl parentDataset)
           
 
Method Summary
 Access build()
          Generate the object being built by this ThreddsBuilder.
 DataFormatType getDataFormat()
           
 long getDataSize()
           
 Service getService()
           
 ServiceBuilder getServiceBuilder()
           
 java.lang.String getUrlPath()
           
 boolean isBuildable(java.util.List<BuilderIssue> issues)
          Check whether the state of this ThreddsBuilder is such that build() will succeed.
 boolean isBuilt()
          Check whether this ThreddsBuilder has been built.
 void setDataFormat(DataFormatType dataFormat)
           
 void setDataSize(long dataSize)
           
 void setServiceBuilder(ServiceBuilder service)
           
 void setUrlPath(java.lang.String urlPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessImpl

protected AccessImpl(DatasetImpl parentDataset)
Method Detail

setServiceBuilder

public void setServiceBuilder(ServiceBuilder service)
Specified by:
setServiceBuilder in interface AccessBuilder

setUrlPath

public void setUrlPath(java.lang.String urlPath)
Specified by:
setUrlPath in interface AccessBuilder

setDataFormat

public void setDataFormat(DataFormatType dataFormat)
Specified by:
setDataFormat in interface AccessBuilder

setDataSize

public void setDataSize(long dataSize)
Specified by:
setDataSize in interface AccessBuilder

getService

public Service getService()
Specified by:
getService in interface Access

getServiceBuilder

public ServiceBuilder getServiceBuilder()
Specified by:
getServiceBuilder in interface AccessBuilder

getUrlPath

public java.lang.String getUrlPath()
Specified by:
getUrlPath in interface Access
Specified by:
getUrlPath in interface AccessBuilder

getDataFormat

public DataFormatType getDataFormat()
Specified by:
getDataFormat in interface Access
Specified by:
getDataFormat in interface AccessBuilder

getDataSize

public long getDataSize()
Specified by:
getDataSize in interface Access
Specified by:
getDataSize in interface AccessBuilder

isBuilt

public boolean isBuilt()
Description copied from interface: ThreddsBuilder
Check whether this ThreddsBuilder has been built.

Specified by:
isBuilt in interface ThreddsBuilder
Returns:
true if this ThreddsBuilder has already been built, false otherwise.

isBuildable

public boolean isBuildable(java.util.List<BuilderIssue> issues)
Description copied from interface: ThreddsBuilder
Check whether the state of this ThreddsBuilder is such that build() will succeed.

Specified by:
isBuildable in interface ThreddsBuilder
Parameters:
issues - a list into which any issues that come up during isBuildable() will be add.
Returns:
true if this ThreddsBuilder is in a state where build() will succeed.

build

public Access build()
             throws BuilderException
Description copied from interface: ThreddsBuilder
Generate the object being built by this ThreddsBuilder.

Specified by:
build in interface AccessBuilder
Specified by:
build in interface ThreddsBuilder
Returns:
the THREDDS catalog object being built by this ThreddsBuilder.
Throws:
BuilderException - if this ThreddsBuilder is not in a valid state.