pl.mbdev.openstage.test
Class WrappingTest

java.lang.Object
  extended by pl.mbdev.openstage.test.OpenStageSDK_Test
      extended by pl.mbdev.openstage.test.WrappingTest

public class WrappingTest
extends OpenStageSDK_Test

Example showing how you can add commands directly to form items, instead of wrapping each of them with IppItem first. This is achieved because of automatic wrapping up mechanism. Look at the output to see how the mechanism of automatic wrapping in IppItem works.

 Copyright 2011 Mateusz Bysiek,
     mb@mbdev.pl, http://mbdev.pl/
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 

Author:
Mateusz Bysiek

Constructor Summary
WrappingTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void writeXml(java.io.PrintWriter out)
          Here you should initialize all XML objects you would like to test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingTest

public WrappingTest()
Method Detail

main

public static void main(java.lang.String[] args)

writeXml

protected void writeXml(java.io.PrintWriter out)
Description copied from class: OpenStageSDK_Test
Here you should initialize all XML objects you would like to test. The generated content will be sent to console. Use any Xml sub-class, or your custom class.

Specified by:
writeXml in class OpenStageSDK_Test
Parameters:
out - PrintWriter created from System.out, you should use sendTo(out) at some point of your test to see any results