KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > document1 > cci > Media


1 // ----------------------------------------------------------------------------
2
// Instance/IntfBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:38:57 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.document1.cci;
14
15 public interface Media
16   extends
17  org.openmdx.base.cci.BasicObject {
18 // ----------------------------------------------------------------------------
19
// Instance/IntfAttributeGetStream.vm
20
// ----------------------------------------------------------------------------
21

22   /**
23    * @return A java.io.InputStream containing the binary value as stream for this attribute.
24    * @exception JmiException If the values cannot be retrieved for some reason.
25    * @deprecated
26    */

27   public java.io.InputStream JavaDoc getContent(
28   );
29
30   /**
31    * @param stream A java.io.OutputStream containing the binary value as output stream.
32    * @param position start streaming at given position.
33    * @return length of the stream.
34    * @exception JmiException If the values cannot be retrieved for some reason.
35    */

36   public long getContent(
37     java.io.OutputStream JavaDoc stream,
38     long position
39   );
40
41
42 // ----------------------------------------------------------------------------
43
// Instance/IntfAttributeSetStream
44
// ----------------------------------------------------------------------------
45

46   /**
47    * @param newValue A java.io.InputStream containing the binary value for this attribute.
48    * @exception JmiException If the value cannot be set for some reason.
49    */

50   public void setContent(
51     java.io.InputStream JavaDoc newValue
52   );
53
54   /**
55    * @param newValue A java.io.InputStream containing the binary value for this attribute.
56    * @param length length of the stream in bytes.
57    * @exception JmiException If the value cannot be set for some reason.
58    */

59   public void setContent(
60     java.io.InputStream JavaDoc newValue,
61     long length
62   );
63
64
65 // ----------------------------------------------------------------------------
66
// Instance/IntfAttributeGet0_1
67
// ----------------------------------------------------------------------------
68
/**
69    * @return The possibly null value for attribute <code>contentLength</code>.
70    * @exception JmiException If the value cannot be retrieved for some reason.
71    */

72   public Long JavaDoc getContentLength(
73   );
74
75 // ----------------------------------------------------------------------------
76
// Instance/IntfAttributeGet0_1
77
// ----------------------------------------------------------------------------
78
/**
79    * @return The possibly null value for attribute <code>contentMimeType</code>.
80    * @exception JmiException If the value cannot be retrieved for some reason.
81    */

82   public String JavaDoc getContentMimeType(
83   );
84
85 // ----------------------------------------------------------------------------
86
// Instance/IntfAttributeSet0_1
87
// ----------------------------------------------------------------------------
88

89
90   /**
91    * Sets a new value for the attribute <code>contentMimeType</code>.
92    * @param newValue The possibly null new value for attribute <code>contentMimeType</code>.
93    * @exception JmiException If the value cannot be set for some reason.
94    */

95   public void setContentMimeType(
96     String JavaDoc newValue
97   );
98
99 // ----------------------------------------------------------------------------
100
// Instance/IntfAttributeGet0_1
101
// ----------------------------------------------------------------------------
102
/**
103    * @return The possibly null value for attribute <code>contentName</code>.
104    * @exception JmiException If the value cannot be retrieved for some reason.
105    */

106   public String JavaDoc getContentName(
107   );
108
109 // ----------------------------------------------------------------------------
110
// Instance/IntfAttributeSet0_1
111
// ----------------------------------------------------------------------------
112

113
114   /**
115    * Sets a new value for the attribute <code>contentName</code>.
116    * @param newValue The possibly null new value for attribute <code>contentName</code>.
117    * @exception JmiException If the value cannot be set for some reason.
118    */

119   public void setContentName(
120     String JavaDoc newValue
121   );
122
123 // ----------------------------------------------------------------------------
124
// Instance/IntfAttributeGet0_1
125
// ----------------------------------------------------------------------------
126
/**
127    * @return The possibly null value for attribute <code>description</code>.
128    * @exception JmiException If the value cannot be retrieved for some reason.
129    */

130   public String JavaDoc getDescription(
131   );
132
133 // ----------------------------------------------------------------------------
134
// Instance/IntfAttributeSet0_1
135
// ----------------------------------------------------------------------------
136

137
138   /**
139    * Sets a new value for the attribute <code>description</code>.
140    * @param newValue The possibly null new value for attribute <code>description</code>.
141    * @exception JmiException If the value cannot be set for some reason.
142    */

143   public void setDescription(
144     String JavaDoc newValue
145   );
146
147 // ----------------------------------------------------------------------------
148
// Instance/IntfEnd.vm
149
// ----------------------------------------------------------------------------
150
}
151
Popular Tags