001: /*
002: * File: story.java
003: * Project: jMOS, com.aranova.java.jmos.messages.profile
004: * Revision: 0.9.1
005: * Date: 18-ene-2006 11:51:15
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 rrepresentar un Story.
026: * <!ELEMENT story (storyID, storySlug?, storyNum?, mosExternalMetadata*, item*)>
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="story")
033: public class story extends Message {
034: @MOSAttribute(name="storyID",maxLength=128)
035: private String _storyID;
036: @MOSAttribute(name="storySlug",maxLength=128,modifier=TypeModifier.Optional)
037: private String _storySlug;
038: @MOSAttribute(name="storyNum",maxLength=128,modifier=TypeModifier.Optional)
039: private String _storyNum;
040: @MOSAttribute(name="mosExternalMetadata",modifier=TypeModifier.ZeroOrMore,writeTag=false)
041: private Set<mosExternalMetadata> _mosExternalMetadata = new LinkedHashSet<mosExternalMetadata>();
042: @MOSAttribute(name="item",modifier=TypeModifier.ZeroOrMore,writeTag=false)
043: private Set<item> _item = new LinkedHashSet<item>();
044:
045: /**
046: * @return Returns the storyID.
047: */
048: public String getStoryID() {
049: return _storyID;
050: }
051:
052: /**
053: * @param storyID The storyID to set.
054: */
055: public void setStoryID(final String storyID) {
056: _storyID = storyID;
057: }
058:
059: /**
060: * @return Returns the storyNum.
061: */
062: public String getStoryNum() {
063: return _storyNum;
064: }
065:
066: /**
067: * @param storyNum The storyNum to set.
068: */
069: public void setStoryNum(final String storyNum) {
070: _storyNum = storyNum;
071: }
072:
073: /**
074: * @return Returns the storySlug.
075: */
076: public String getStorySlug() {
077: return _storySlug;
078: }
079:
080: /**
081: * @param storySlug The storySlug to set.
082: */
083: public void setStorySlug(final String storySlug) {
084: _storySlug = storySlug;
085: }
086:
087: /**
088: * @return Returns the item.
089: */
090: public Set<item> getItem() {
091: return _item;
092: }
093:
094: /**
095: * @return Returns the mosExternalMetadata.
096: */
097: public Set<mosExternalMetadata> getMosExternalMetadata() {
098: return _mosExternalMetadata;
099: }
100: }
|