View Javadoc

1   package org.openrdf.concepts.awol;
2   
3   import java.lang.Integer;
4   import java.lang.Object;
5   import java.lang.String;
6   import java.util.Locale;
7   import java.util.Set;
8   import org.openrdf.concepts.webarch.InformationResource;
9   import org.openrdf.concepts.webarch.Representation;
10  import org.openrdf.elmo.annotations.rdf;
11  
12  /** see §4.1.3 in rfc 4287 One way to think of this is as a class that represents what one can get from an HTTP connection. It has a body, and a number of headers, info such as mime-type, content-lenght, etc... . */
13  @rdf("http://bblfish.net/work/atom-owl/2006-06-06/#Content")
14  public interface Content extends Representation {
15  
16  
17  	/** the body of the content. */
18  	@rdf("http://bblfish.net/work/atom-owl/2006-06-06/#body")
19  	public abstract Object getAwolBody();
20  
21  	/** the body of the content. */
22  	public abstract void setAwolBody(Object value);
23  
24  
25  	/** see §4.2.7.4 of rfc 4287. The language of the representation. */
26  	@rdf("http://bblfish.net/work/atom-owl/2006-06-06/#lang")
27  	public abstract Locale getAwolLang();
28  
29  	/** see §4.2.7.4 of rfc 4287. The language of the representation. */
30  	public abstract void setAwolLang(Locale value);
31  
32  
33  	/** see §4.2.7.6 of rfc 4287. The length in bytes of the representation. */
34  	@rdf("http://bblfish.net/work/atom-owl/2006-06-06/#length")
35  	public abstract Integer getAwolLength();
36  
37  	/** see §4.2.7.6 of rfc 4287. The length in bytes of the representation. */
38  	public abstract void setAwolLength(Integer value);
39  
40  
41  	/** a source of the representation */
42  	@rdf({"http://bblfish.net/work/atom-owl/2006-06-06/#src", "http://sw.nokia.com/WebArch-1/representationOf"})
43  	public abstract Set<InformationResource> getAwolSrcs();
44  
45  	/** a source of the representation */
46  	public abstract void setAwolSrcs(Set<? extends InformationResource> value);
47  
48  
49  	/** see §4.2.7.3 of rfc 4287. The mime type of the representation. */
50  	@rdf("http://bblfish.net/work/atom-owl/2006-06-06/#type")
51  	public abstract String getAwolType();
52  
53  	/** see §4.2.7.3 of rfc 4287. The mime type of the representation. */
54  	public abstract void setAwolType(String value);
55  
56  }