org.newsml.toolkit.conformance
Class ContentItemTest

java.lang.Object
  |
  +--org.newsml.toolkit.conformance.TestBase
        |
        +--org.newsml.toolkit.conformance.ContentItemTest

public class ContentItemTest
extends TestBase

ContentItem-specific conformance tests.

This class reports an error if a ContentItem has both an Href and Encoding or DataContent (DTD conformance can confirm that Encoding and DataContent themselves are mutually-exclusive).

Version:
2.0
Author:
Reuters PLC
See Also:
NewsMLTestManager

Constructor Summary
ContentItemTest()
           
 
Method Summary
 void run(BaseNode node, boolean useExternal)
          Run tests for a ContentItem node.
 
Methods inherited from class org.newsml.toolkit.conformance.TestBase
error, internal, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentItemTest

public ContentItemTest()
Method Detail

run

public void run(BaseNode node,
                boolean useExternal)
         throws NewsMLException
Run tests for a ContentItem node.
Overrides:
run in class TestBase
Parameters:
node - A ContentItem node.
useExternal - Not used.
Throws:
NewsMLException - If the test fails.
java.lang.ClassCastException - If the node parameter is not an instance of ContentItem.
See Also:
TestBase.run(org.newsml.toolkit.BaseNode, boolean)