Class InvAccessImpl


  • public class InvAccessImpl
    extends InvAccess
    Concrete access element.
    See Also:
    InvAccess
    • 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.
      • 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