corpus-services  1.0
CorpusData.java
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package de.uni_hamburg.corpora;
7 
8 import java.io.IOException;
9 import java.net.URL;
10 import javax.xml.parsers.ParserConfigurationException;
11 import javax.xml.transform.TransformerException;
12 import javax.xml.xpath.XPathExpressionException;
13 import org.xml.sax.SAXException;
14 
19 public interface CorpusData {
20 
21  public URL getURL();
22 
23  public void setURL(URL url);
24 
25  public URL getParentURL();
26 
27  public void setParentURL(URL url);
28 
29  public String getFilename();
30 
31  public void setFilename(String s);
32 
33  public String getFilenameWithoutFileEnding();
34 
35  public void setFilenameWithoutFileEnding(String s);
36 
37  public String toSaveableString() throws TransformerException, ParserConfigurationException, SAXException, IOException, XPathExpressionException;
38 
39  public String toUnformattedString();
40 
41  //needed if there were changes to the file so they are represented in the object too
42  public void updateUnformattedString(String newUnformattedString);
43 
44 }
void setFilenameWithoutFileEnding(String s)
void updateUnformattedString(String newUnformattedString)