edu.ucsb.nceas.metacat.service
Class XMLSchema

java.lang.Object
  extended by edu.ucsb.nceas.metacat.service.XMLSchema

public class XMLSchema
extends java.lang.Object


Constructor Summary
XMLSchema(java.lang.String fileNamespace)
          Constructor - sets the schema file namespace only.
XMLSchema(java.lang.String fileNamespace, java.lang.String externalFileUri)
          Constructor - the schema file name will be extracted from the external file uri.
 
Method Summary
 java.lang.String getExternalFileUri()
          Gets the external file uri
 java.lang.String getFileName()
          Gets the file name
 java.lang.String getFileNamespace()
          Gets the file namespace
 java.lang.String getLocalFileDir()
          Gets the local file directory path
 java.lang.String getLocalFileUri()
          Gets the local file uri
 void setExternalFileUri(java.lang.String externalFileUri)
          Sets the external file uri.
 void setFileName(java.lang.String fileName)
          Set the file name.
 void setFileNamespace(java.lang.String fileNamespace)
          Sets the file namespace
 void setLocalFileUri(java.lang.String localFileUri)
          Sets the local file uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSchema

public XMLSchema(java.lang.String fileNamespace,
                 java.lang.String externalFileUri)
Constructor - the schema file name will be extracted from the external file uri. The local file uri and local file dir will be constructed using system values and the file name.

Parameters:
fileNamespace - the file's name space
externalFileUri - the external uri where the schema is located

XMLSchema

public XMLSchema(java.lang.String fileNamespace)
Constructor - sets the schema file namespace only. The file name will need to be added separately.

Parameters:
namespace - the file's name space
Method Detail

setFileName

public void setFileName(java.lang.String fileName)
Set the file name. The local file uri and local file dir will also get set using system context url and dir values and the schema directory value.

Parameters:
fileName - the file name to set

getFileName

public java.lang.String getFileName()
Gets the file name

Returns:
string holding the file name

setFileNamespace

public void setFileNamespace(java.lang.String fileNamespace)
Sets the file namespace

Parameters:
fileNamespace - the namespace to set

getFileNamespace

public java.lang.String getFileNamespace()
Gets the file namespace

Returns:
a string holding the file namespace

setExternalFileUri

public void setExternalFileUri(java.lang.String externalFileUri)
Sets the external file uri. Extracts the file name from the uri and sets the file name as well.

Parameters:
externalFileUri - the external file uri to set

getExternalFileUri

public java.lang.String getExternalFileUri()
Gets the external file uri

Returns:
a string holding the external file uri

setLocalFileUri

public void setLocalFileUri(java.lang.String localFileUri)
Sets the local file uri. If the uri doesn't start with http:// the full uri is constructed using the system context url and the schema directory.

Parameters:
localFileUri - the base uri to set.

getLocalFileUri

public java.lang.String getLocalFileUri()
Gets the local file uri

Returns:
a string holding the local file uri

getLocalFileDir

public java.lang.String getLocalFileDir()
Gets the local file directory path

Returns:
a string holding the local file directory path


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.