Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kie.remote.services.jaxb;
 
 import java.util.Map;
 
import  org.jbpm.services.task.impl.model.xml.JaxbContent;
import  org.kie.api.command.Command;
import  org.kie.api.task.model.Content;
import  org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse;
@XmlRootElement(name = "content-response")
public class JaxbContentResponse extends JaxbContent implements JaxbCommandResponse<Content> {
    @XmlSchemaType(name = "int")
    private Integer index;
    @XmlElement(name = "command-name")
    @XmlSchemaType(name = "string")
    private String commandName;
    public JaxbContentResponse() {
        // Default constructor
    }
    public JaxbContentResponse(int i, Command<?> cmd) {
        this. = i;
        this. = cmd.getClass().getSimpleName();
    }
    /*
     * (non-Javadoc)
     * 
     * @see org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse#getIndex()
     */
    @Override
    public Integer getIndex() {
        return ;
    }
    @Override
    public void setIndex(Integer index) {
        this. = index;
        
    }
    /*
     * (non-Javadoc)
     * 
     * @see org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse#getCommandName()
     */
    @Override
    public String getCommandName() {
        return ;
    }
    @Override
    public void setCommandName(String cmdName) {
        this. = cmdName;
    }
    
    public JaxbContentResponse(JaxbContent contentint i, Command<?> cmd) {
        super(content);
        this. = i;
        this. = cmd.getClass().getSimpleName();
    }
    public Content getResult() {
        return this;
   }
    @Override
    public void setResult(Content result) {
        initialize(result);
    }
New to GrepCode? Check out our FAQ X