Package uk.org.ogsadai.data

Examples of uk.org.ogsadai.data.StringData


    public void addColumnNames(String[] columnNames)
    {
        mNamesInput.add(ListBegin.VALUE);
        for (int i = 0; i < columnNames.length; i++)
        {
            mNamesInput.add(new StringData(columnNames[i]));
        }
        mNamesInput.add(ListEnd.VALUE);
    }
View Full Code Here


     * Add a condition.
     * @param expression
     */
    public void addCondition(String expression)
    {
        mExpressionInput.add(new StringData(expression));
    }
View Full Code Here

     * Adds a new condition value.
     * @param expression
     */
    public void addCondition(String expression)
    {
        mExpressionInput.add(new StringData(expression));
    }
View Full Code Here

     * @param resourceID
     *            ID of the group resource
     */
    public void addResourceId(final ResourceID resourceID)
    {
        mResourceIdInput.add(new StringData(resourceID.toString()));
    }
View Full Code Here

     */
    public RDFUpdate(String PEData)
    {
        super(DEFAULT_ACTIVITY_NAME);
        mPEdata = new SimpleActivityInput("PEData");
        mPEdata.add(new StringData(PEData));
        mOutput = new SimpleActivityOutput("output");
        this.setResourceID("RDFResource");
    }
View Full Code Here

     *             if there is an error reading from a data source.
     */
    public StringData nextOutput() throws DataStreamErrorException,
            UnexpectedDataValueException, DataSourceUsageException
    {
        return new StringData(mOutput.getDataValueIterator()
                .nextAsString());
    }
View Full Code Here

     * @param name
     *            Name to add to the input.
     */
    public void addInput(String name)
    {
        mPEdata.add(new StringData(name));
    }
View Full Code Here

    public void update(Observable o, Object arg)
    {
        ResourceWrapper resource = (ResourceWrapper)arg;
        String serviceURL = ((AxisResource)resource.getResource()).getURLString();
        addInput(URL, serviceURL);
        addInput(RESOURCE_ID, new StringData(resource.getResourceID().toString()));
    }
View Full Code Here

     */
    public void update(Observable o, Object arg)
    {
        JerseyDataSource resource = (JerseyDataSource)arg;
        String url = ((JerseyResource)resource.getResource()).getBaseURL();
        addInput(URL, new StringData(url));
        addInput(RESOURCE_ID, new StringData(resource.getResourceID().toString()));
    }
View Full Code Here

     */
    public static DataValue[] toDataValue(Object object)
    {
        if (object instanceof String)
        {
            return new DataValue[] {new StringData((String)object)};
        }
        else if (object instanceof Long)
        {
            return new DataValue[] {new LongData((Long)object)};
        }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.data.StringData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.