Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.xmlcalabash.runtime;
 
Created by IntelliJ IDEA. User: ndw Date: Oct 7, 2008 Time: 7:38:44 AM To change this template use File | Settings | File Templates.
public class XInput {
    private XProcRuntime runtime = null;
    private String port = null;
    private XdmNode node = null;
    private boolean sequenceOk = false;
    private boolean isParameters = false;
    private Vector<ReadablePipereaders = null;
    private WritablePipe writer = null;
    private DocumentSequence documents = null;
    public XInput(XProcRuntime runtimeInput input) {
        this. = runtime;
         = input.getNode();
         = input.getPort();
         = input.getSequence();
         = input.getParameterInput();
         = new Vector<ReadablePipe> ();
    }
    public String getPort() {
        return ;
    }
    public XdmNode getNode() {
        return ;
    }
    public ReadablePipe getReader() {
        if ( == null) {
             = new DocumentSequence();
        }
        ReadablePipe pipe = new Pipe();
        pipe.canReadSequence();
        .add(pipe);
        return pipe;
    }
    public WritablePipe getWriter() {
        if ( != null) {
            throw new XProcException("Attempt to create two writers for the same input.");
        }
        if ( == null) {
             = new DocumentSequence();
        }
         = new Pipe();
        return ;
    }
    public boolean getSequence() {
        return ;
    }
    public boolean getParameters() {
        return ;
    }
New to GrepCode? Check out our FAQ X