001: /*
002: * File: mosObj.java
003: * Project: jMOS, com.aranova.java.jmos.messages.profile1
004: * Revision: 0.9 - Inicial
005: * Date: 20-oct-2005 17:55:11
006: *
007: * Copyright (C) Aragón Innovación Tecnológica S.L.L.
008: * All rights reserved.
009: *
010: * This software is distributed under the terms of the Aranova License version 1.0.
011: * See the terms of the Aranova License in the documentation provided with this software.
012: */
013:
014: package com.aranova.java.jmos.messages.profile1;
015:
016: import java.util.Date;
017: import java.util.LinkedHashSet;
018: import java.util.Set;
019:
020: import com.aranova.java.jmos.annotations.MOSAttribute;
021: import com.aranova.java.jmos.annotations.MOSMessage;
022: import com.aranova.java.jmos.enums.TypeModifier;
023: import com.aranova.java.jmos.enums.TypePort;
024: import com.aranova.java.jmos.enums.mosfield.objAir;
025: import com.aranova.java.jmos.enums.mosfield.objType;
026: import com.aranova.java.jmos.enums.mosfield.status;
027: import com.aranova.java.jmos.messages.Message;
028: import com.aranova.java.jmos.messages.profile.mosExternalMetadata;
029: import com.aranova.java.jmos.messages.profile.objPaths;
030:
031: /**
032: * Profile 1 - MOS Object Description.<BR>
033: * <b>Purpose</b><BR>
034: * Contains information that describes a unique MOS Object to the NCS. The NCS uses this information to search for and reference the MOS Object.<BR>
035: * <b>Response</b><BR>
036: * {@link mosAck mosAck}<BR>
037: * <b>Port</b><BR>
038: * MOS Lower Port (10540) - Media Object Metadata<BR>
039: *
040: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
041: * @version 0.9.1
042: * @since 0.9
043: */
044: @MOSMessage(name="mosObj",profile=1,port=TypePort.LowerPort,response=mosAck.class)
045: public class mosObj extends Message {
046: @MOSAttribute(name="objID",maxLength=128)
047: private String _objID;
048: @MOSAttribute(name="objSlug",maxLength=128)
049: private String _objSlug;
050: @MOSAttribute(name="mosAbstract",modifier=TypeModifier.Optional,writeTag=false,isXML=true)
051: private String _mosAbstract;
052: @MOSAttribute(name="objGroup",modifier=TypeModifier.Optional)
053: private String _objGroup;
054: @MOSAttribute(name="objType")
055: private objType _objType;
056: @MOSAttribute(name="objTB")
057: private Long _objTB;
058: @MOSAttribute(name="objRev")
059: private Integer _objRev;
060: @MOSAttribute(name="objDur")
061: private Long _objDur;
062: @MOSAttribute(name="status")
063: private status _status;
064: @MOSAttribute(name="objAir")
065: private objAir _objAir;
066: @MOSAttribute(name="objPaths",modifier=TypeModifier.Optional,version="2.8.2",writeTag=false)
067: private objPaths _objPaths;
068: @MOSAttribute(name="createdBy",maxLength=128)
069: private String _createdBy;
070: @MOSAttribute(name="created")
071: private Date _created;
072: @MOSAttribute(name="changedBy")
073: private String _changedBy;
074: @MOSAttribute(name="changed")
075: private Date _changed;
076: @MOSAttribute(name="description",writeTag=false,isXML=true)
077: private String _description;
078: @MOSAttribute(name="mosExternalMetadata",modifier=TypeModifier.ZeroOrMore,writeTag=false)
079: private Set<mosExternalMetadata> _mosExternalMetadata = new LinkedHashSet<mosExternalMetadata>();
080:
081: /**
082: * @return Returns the changed.
083: */
084: public Date getChanged() {
085: return _changed;
086: }
087:
088: /**
089: * @param changed The changed to set.
090: */
091: public void setChanged(final Date changed) {
092: _changed = changed;
093: }
094:
095: /**
096: * @return Returns the changedBy.
097: */
098: public String getChangedBy() {
099: return _changedBy;
100: }
101:
102: /**
103: * @param changedBy The changedBy to set.
104: */
105: public void setChangedBy(final String changedBy) {
106: _changedBy = changedBy;
107: }
108:
109: /**
110: * @return Returns the created.
111: */
112: public Date getCreated() {
113: return _created;
114: }
115:
116: /**
117: * @param created The created to set.
118: */
119: public void setCreated(final Date created) {
120: _created = created;
121: }
122:
123: /**
124: * @return Returns the createdBy.
125: */
126: public String getCreatedBy() {
127: return _createdBy;
128: }
129:
130: /**
131: * @param createdBy The createdBy to set.
132: */
133: public void setCreatedBy(final String createdBy) {
134: _createdBy = createdBy;
135: }
136:
137: /**
138: * @return Returns the description.
139: */
140: public String getDescription() {
141: return _description;
142: }
143:
144: /**
145: * @param description The description to set.
146: */
147: public void setDescription(final String description) {
148: _description = description;
149: }
150:
151: /**
152: * @return Returns the mosAbstract.
153: */
154: public String getMosAbstract() {
155: return _mosAbstract;
156: }
157:
158: /**
159: * @param mosAbstract The mosAbstract to set.
160: */
161: public void setMosAbstract(final String mosAbstract) {
162: _mosAbstract = mosAbstract;
163: }
164:
165: /**
166: * @return Returns the mosExternalMetadata.
167: */
168: public Set<mosExternalMetadata> getMosExternalMetadata() {
169: return _mosExternalMetadata;
170: }
171:
172: /**
173: * @return Returns the objAir.
174: */
175: public objAir getObjAir() {
176: return _objAir;
177: }
178:
179: /**
180: * @param objAir The objAir to set.
181: */
182: public void setObjAir(final objAir objAir) {
183: _objAir = objAir;
184: }
185:
186: /**
187: * @return Returns the objDur.
188: */
189: public Long getObjDur() {
190: return _objDur;
191: }
192:
193: /**
194: * @param objDur The objDur to set.
195: */
196: public void setObjDur(final Long objDur) {
197: _objDur = objDur;
198: }
199:
200: /**
201: * @return Returns the objGroup.
202: */
203: public String getObjGroup() {
204: return _objGroup;
205: }
206:
207: /**
208: * @param objGroup The objGroup to set.
209: */
210: public void setObjGroup(final String objGroup) {
211: _objGroup = objGroup;
212: }
213:
214: /**
215: * @return Returns the objID.
216: */
217: public String getObjID() {
218: return _objID;
219: }
220:
221: /**
222: * @param objID The objID to set.
223: */
224: public void setObjID(final String objID) {
225: _objID = objID;
226: }
227:
228: /**
229: * @return Returns the objPaths.
230: */
231: public objPaths getObjPaths() {
232: return _objPaths;
233: }
234:
235: /**
236: * @param objPaths The objPaths to set.
237: */
238: public void setObjPaths(final objPaths objPaths) {
239: _objPaths = objPaths;
240: }
241:
242: /**
243: * @return Returns the objRev.
244: */
245: public Integer getObjRev() {
246: return _objRev;
247: }
248:
249: /**
250: * @param objRev The objRev to set.
251: */
252: public void setObjRev(final Integer objRev) {
253: _objRev = objRev;
254: }
255:
256: /**
257: * @return Returns the objSlug.
258: */
259: public String getObjSlug() {
260: return _objSlug;
261: }
262:
263: /**
264: * @param objSlug The objSlug to set.
265: */
266: public void setObjSlug(final String objSlug) {
267: _objSlug = objSlug;
268: }
269:
270: /**
271: * @return Returns the objTB.
272: */
273: public Long getObjTB() {
274: return _objTB;
275: }
276:
277: /**
278: * @param objTB The objTB to set.
279: */
280: public void setObjTB(final Long objTB) {
281: _objTB = objTB;
282: }
283:
284: /**
285: * @return Returns the objType.
286: */
287: public objType getObjType() {
288: return _objType;
289: }
290:
291: /**
292: * @param objType The objType to set.
293: */
294: public void setObjType(final objType objType) {
295: _objType = objType;
296: }
297:
298: /**
299: * @return Returns the status.
300: */
301: public status getStatus() {
302: return _status;
303: }
304:
305: /**
306: * @param status The status to set.
307: */
308: public void setStatus(final status status) {
309: _status = status;
310: }
311: }
|