01: /*
02: * File: element_source.java
03: * Project: jMOS, com.aranova.java.jmos.messages.profile
04: * Revision: 0.9.1
05: * Date: 18-ene-2006 19:24:33
06: *
07: * Copyright (C) Aragón Innovación Tecnológica S.L.L.
08: * All rights reserved.
09: *
10: * This software is distributed under the terms of the Aranova License version 1.0.
11: * See the terms of the Aranova License in the documentation provided with this software.
12: */
13:
14: package com.aranova.java.jmos.messages.profile;
15:
16: import java.util.LinkedHashSet;
17: import java.util.Set;
18:
19: import com.aranova.java.jmos.annotations.MOSAttribute;
20: import com.aranova.java.jmos.annotations.MOSMessage;
21: import com.aranova.java.jmos.enums.TypeModifier;
22: import com.aranova.java.jmos.messages.Message;
23:
24: /**
25: * Clase para representar la estructura element_source.
26: * <!ELEMENT element_source (story+ | item+ | storyID+ | itemID+)>
27: *
28: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
29: * @version 0.9.1
30: * @since 0.9.1
31: */
32: @MOSMessage(name="element_target")
33: public class element_source extends Message {
34: @MOSAttribute(name="story",modifier=TypeModifier.OneOrMore,writeTag=false)
35: private Set<story> _story = new LinkedHashSet<story>();
36: @MOSAttribute(name="item",modifier=TypeModifier.OneOrMore,writeTag=false)
37: private Set<item> _item = new LinkedHashSet<item>();
38: @MOSAttribute(name="storyID",maxLength=128,modifier=TypeModifier.OneOrMore)
39: private Set<String> _storyID = new LinkedHashSet<String>();
40: @MOSAttribute(name="itemID",maxLength=128,modifier=TypeModifier.OneOrMore)
41: private Set<String> _itemID = new LinkedHashSet<String>();
42:
43: /**
44: * @return Returns the item.
45: */
46: public Set<item> getItem() {
47: return _item;
48: }
49:
50: /**
51: * @return Returns the itemID.
52: */
53: public Set<String> getItemID() {
54: return _itemID;
55: }
56:
57: /**
58: * @return Returns the story.
59: */
60: public Set<story> getStory() {
61: return _story;
62: }
63:
64: /**
65: * @return Returns the storyID.
66: */
67: public Set<String> getStoryID() {
68: return _storyID;
69: }
70: }
|