com.ibm.streams.operator.meta

Interface XMLType

  • All Superinterfaces:
    Type


    public interface XMLType
    extends Type
    Meta-type for an attribute of type XML.
    Since:
    InfoSphere® Streams Version 3.0
    • Method Detail

      • getDeclaredSchema

        java.net.URL getDeclaredSchema()
        Get the schema of the XML attribute.
        Returns:
        The URL for the declared XML schema or null if no schema was declared.
      • randomValue

        java.lang.Object randomValue(java.util.Random rand)
        Return a randomly generated value for testing.

        If getDeclaredSchema() returns null then a simple well-formed document is returned with random encoding, element names, attribute names and contents.

        If getDeclaredSchema() returns a URL then then the default value returned by Type.getDefaultValue() is always returned.

        Specified by:
        randomValue in interface Type
        Parameters:
        rand - Random object used to generate value.
        Returns:
        A random value valid for this type