FileDocCategorySizeDatePackage
SequenceElement.javaAPI DocExample7675Tue May 29 16:56:44 BST 2007com.sun.xml.ws.rm.protocol

SequenceElement

public class SequenceElement extends Object
SequenceElement is based on a JAXB Schema Compiler generated class that serializes and deserialized the SequenceType defined in the WS-RM schema.

Fields Summary
protected Identifier
identifier
protected Integer
messageNumber
protected LastMessage
lastMessage
protected List
any
private Map
otherAttributes
Constructors Summary
public SequenceElement()



     
        
    
Methods Summary
public java.util.ListgetAny()
Gets the value of the any property.

return
The value of the property.

        if (any == null) {
            any = new ArrayList<Object>();
        }
        return this.any;
    
public java.lang.StringgetId()
Accessor for the Id property. Maps to the Identifier property in the underlying JAXB class

return
The sequence id

        return getIdentifier().getValue();
    
public IdentifiergetIdentifier()
Gets the value of the identifier property.

return
The property value

        return identifier;
    
public booleangetLast()
Accessor for the Last property that maps to the LastMessage property in the underlying JAXB class

return
The value of the property.

        return getLastMessage() != null;
    
public com.sun.xml.ws.rm.protocol.SequenceElement$LastMessagegetLastMessage()
Gets the value of the lastMessage property.

return
The value of the property non-null indicates that a Last child will be serialized on the Sequence element.

        return lastMessage;
    
public java.lang.StringgetLocalPart()

        return new String ( "Sequence");
    
public java.lang.IntegergetMessageNumber()
Gets the value of the messageNumber property.

return
The value of the property.

        return messageNumber;
    
public intgetNumber()
Accessor for the Number property which maps to the MessageNumber property in the underlying JAXB class.

return
The Message number.

        return getMessageNumber();
    
public java.util.MapgetOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.

return
The map of attributes.

        return otherAttributes;
    
public voidsetId(java.lang.String id)
Mutator for the Id property. Maps to the Identifier property in the underlying JAXB class.

param
id The new value.

        Identifier identifier = new Identifier();
        identifier.setValue(id);
        setIdentifier(identifier);
    
public voidsetIdentifier(Identifier value)
Sets the value of the identifier property.

param
value The new value.

        this.identifier = value;
    
public voidsetLast(boolean last)
Mutator for the Last property that maps to the LastMessage property in the underlying JAXB class

param
last The value of the property.

        if (last) {
            setLastMessage(new LastMessage());
        } else {
            setLastMessage(null);
        }
    
public voidsetLastMessage(com.sun.xml.ws.rm.protocol.SequenceElement$LastMessage value)
Sets the value of the lastMessage property.

param
value The new value. Either null or a member of the placeholder inner LastMessage class.

        this.lastMessage = value;
    
public voidsetMessageNumber(java.lang.Integer value)
Sets the value of the messageNumber property.

param
value The new value.

        this.messageNumber = value;
    
public voidsetNumber(int l)
Mutator for the Number property which maps to the MessageNumber property in the underlying JAXB class.

param
l The Message number.

        setMessageNumber(l);
    
public java.lang.StringtoString()

       
        return Messages.SEQUENCE_TOSTRING_STRING
                .format(getId(),
                        getNumber(),
                        getLast() ? "true" : "false");