001: /*
002: * File: item.java
003: * Project: jMOS, com.aranova.java.jmos.messages.profile
004: * Revision: 0.9.1
005: * Date: 18-ene-2006 12:00:48
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.profile;
015:
016: import java.util.LinkedHashSet;
017: import java.util.Set;
018:
019: import com.aranova.java.jmos.annotations.MOSAttribute;
020: import com.aranova.java.jmos.annotations.MOSMessage;
021: import com.aranova.java.jmos.enums.TypeModifier;
022: import com.aranova.java.jmos.messages.Message;
023:
024: /**
025: * Clase para representar la estructura item.
026: * <!ELEMENT item (itemID, itemSlug?, objID, mosID, mosAbstract?, objPaths?, itemChannel?, itemEdStart?, itemEdDur?, itemUserTimingDur?, itemTrigger?, macroIn?, macroOut?, mosExternalMetadata*)>
027: *
028: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
029: * @version 0.9.1
030: * @since 0.9.1
031: */
032: @MOSMessage(name="item")
033: public class item extends Message {
034: @MOSAttribute(name="itemID",maxLength=128)
035: private String _itemID;
036: @MOSAttribute(name="itemSlug",maxLength=128,modifier=TypeModifier.Optional)
037: private String _itemSlug;
038: @MOSAttribute(name="objID",maxLength=128)
039: private String _objID;
040: @MOSAttribute(name="mosID",maxLength=128)
041: private String _mosID;
042: @MOSAttribute(name="mosAbstract",modifier=TypeModifier.Optional,writeTag=false,isXML=true)
043: private String _mosAbstract;
044: @MOSAttribute(name="objPaths",modifier=TypeModifier.Optional,version="2.8.2",writeTag=false)
045: private objPaths _objPaths;
046: @MOSAttribute(name="itemChannel",maxLength=128,modifier=TypeModifier.Optional)
047: private String _itemChannel;
048: @MOSAttribute(name="itemEdStart",modifier=TypeModifier.Optional)
049: private Long _itemEdStart;
050: @MOSAttribute(name="itemEdDur",modifier=TypeModifier.Optional)
051: private Long _itemEdDur;
052: @MOSAttribute(name="itemUserTimingDur",modifier=TypeModifier.Optional)
053: private Long _itemUserTimingDur;
054: @MOSAttribute(name="itemTrigger",maxLength=128,modifier=TypeModifier.Optional)
055: private String _itemTrigger;
056: @MOSAttribute(name="macroIn",maxLength=128,modifier=TypeModifier.Optional)
057: private String _macroIn;
058: @MOSAttribute(name="macroOut",maxLength=128,modifier=TypeModifier.Optional)
059: private String _macroOut;
060: @MOSAttribute(name="mosExternalMetadata",modifier=TypeModifier.ZeroOrMore,writeTag=false)
061: private Set<mosExternalMetadata> _mosExternalMetadata = new LinkedHashSet<mosExternalMetadata>();
062:
063: /**
064: * @return Returns the itemChannel.
065: */
066: public String getItemChannel() {
067: return _itemChannel;
068: }
069:
070: /**
071: * @param itemChannel The itemChannel to set.
072: */
073: public void setItemChannel(final String itemChannel) {
074: _itemChannel = itemChannel;
075: }
076:
077: /**
078: * @return Returns the itemEdDur.
079: */
080: public Long getItemEdDur() {
081: return _itemEdDur;
082: }
083:
084: /**
085: * @param itemEdDur The itemEdDur to set.
086: */
087: public void setItemEdDur(final Long itemEdDur) {
088: _itemEdDur = itemEdDur;
089: }
090:
091: /**
092: * @return Returns the itemEdStart.
093: */
094: public Long getItemEdStart() {
095: return _itemEdStart;
096: }
097:
098: /**
099: * @param itemEdStart The itemEdStart to set.
100: */
101: public void setItemEdStart(final Long itemEdStart) {
102: _itemEdStart = itemEdStart;
103: }
104:
105: /**
106: * @return Returns the itemID.
107: */
108: public String getItemID() {
109: return _itemID;
110: }
111:
112: /**
113: * @param itemID The itemID to set.
114: */
115: public void setItemID(final String itemID) {
116: _itemID = itemID;
117: }
118:
119: /**
120: * @return Returns the itemSlug.
121: */
122: public String getItemSlug() {
123: return _itemSlug;
124: }
125:
126: /**
127: * @param itemSlug The itemSlug to set.
128: */
129: public void setItemSlug(final String itemSlug) {
130: _itemSlug = itemSlug;
131: }
132:
133: /**
134: * @return Returns the itemTrigger.
135: */
136: public String getItemTrigger() {
137: return _itemTrigger;
138: }
139:
140: /**
141: * @param itemTrigger The itemTrigger to set.
142: */
143: public void setItemTrigger(final String itemTrigger) {
144: _itemTrigger = itemTrigger;
145: }
146:
147: /**
148: * @return Returns the itemUserTimingDur.
149: */
150: public Long getItemUserTimingDur() {
151: return _itemUserTimingDur;
152: }
153:
154: /**
155: * @param itemUserTimingDur The itemUserTimingDur to set.
156: */
157: public void setItemUserTimingDur(final Long itemUserTimingDur) {
158: _itemUserTimingDur = itemUserTimingDur;
159: }
160:
161: /**
162: * @return Returns the macroIn.
163: */
164: public String getMacroIn() {
165: return _macroIn;
166: }
167:
168: /**
169: * @param macroIn The macroIn to set.
170: */
171: public void setMacroIn(final String macroIn) {
172: _macroIn = macroIn;
173: }
174:
175: /**
176: * @return Returns the macroOut.
177: */
178: public String getMacroOut() {
179: return _macroOut;
180: }
181:
182: /**
183: * @param macroOut The macroOut to set.
184: */
185: public void setMacroOut(final String macroOut) {
186: _macroOut = macroOut;
187: }
188:
189: /**
190: * @return Returns the mosAbstract.
191: */
192: public String getMosAbstract() {
193: return _mosAbstract;
194: }
195:
196: /**
197: * @param mosAbstract The mosAbstract to set.
198: */
199: public void setMosAbstract(final String mosAbstract) {
200: _mosAbstract = mosAbstract;
201: }
202:
203: /**
204: * @return Returns the mosID.
205: */
206: public String getItemMosID() {
207: return _mosID;
208: }
209:
210: /**
211: * @param mosID The mosID to set.
212: */
213: public void setItemMosID(final String mosID) {
214: _mosID = mosID;
215: }
216:
217: /**
218: * @return Returns the objID.
219: */
220: public String getObjID() {
221: return _objID;
222: }
223:
224: /**
225: * @param objID The objID to set.
226: */
227: public void setObjID(final String objID) {
228: _objID = objID;
229: }
230:
231: /**
232: * @return Returns the objPaths.
233: */
234: public objPaths getObjPaths() {
235: return _objPaths;
236: }
237:
238: /**
239: * @param objPaths The objPaths to set.
240: */
241: public void setObjPaths(final objPaths objPaths) {
242: _objPaths = objPaths;
243: }
244:
245: /**
246: * @return Returns the mosExternalMetadata.
247: */
248: public Set<mosExternalMetadata> getMosExternalMetadata() {
249: return _mosExternalMetadata;
250: }
251: }
|