com.ibm.streams.operator.meta
Interface XMLType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.streams.operator.Type
Type.Factory, Type.MetaType
-
-
Method Summary
Methods Modifier and Type Method and Description java.net.URL
getDeclaredSchema()
Get the schema of the XML attribute.java.lang.Object
randomValue(java.util.Random rand)
Return a randomly generated value for testing.-
Methods inherited from interface com.ibm.streams.operator.Type
getAsCompositeElementType, getDefaultValue, getLanguageType, getMetaType, getObjectType, toString
-
-
-
-
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 byType.getDefaultValue()
is always returned.- Specified by:
randomValue
in interfaceType
- Parameters:
rand
- Random object used to generate value.- Returns:
- A random value valid for this type
-
-