pdk.flow.xml.XmlTypeInfo
contains functions to operate with XML TypeInfo variables
This functions are based on Java org.w3c.dom
package classes.
https://docs.oracle.com/en/java/javase/11/docs/api/java.xml/org/w3c/dom/package-summary.html
You can always rely on Java documentation and examples!
Constants
DERIVATION_EXTENSION
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by extension.
2
DERIVATION_LIST
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the list.
8
DERIVATION_RESTRICTION
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by restriction if complex types are involved, or a restriction if simple types are involved.
1
DERIVATION_UNION
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the union if simple types are involved.
4
Functions
getConstantName
Returns name of the constant by value.
Arguments:
constantValue
:: pdk.core.Integer
Result:
output :: pdk.core.String
Possible exceptions
NullPointerException - throws if the
constantValue
isNULL
getConstantValue
Returns value of the constant by name.
Arguments:
constantName
:: pdk.core.String
Result:
output :: pdk.core.Integer
Possible exceptions
NullPointerException - throws if the
constantName
isNULL
getTypeName
The name of a type declared for the associated element or attribute, or null
if unknown.
Arguments:
type
:: pdk.net.xml.TypeInfo
Result:
output :: pdk.core.String
Possible exceptions
NullPointerException - throws if the
type
isNULL
getTypeNamespace
The namespace of the type declared for the associated element or attribute or null
if the element does not have declaration or if no namespace information is available.
Arguments:
type
:: pdk.net.xml.TypeInfo
Result:
output :: pdk.core.String
Possible exceptions
NullPointerException - throws if the
type
isNULL
isDerivedFrom
This method returns if there is a derivation between the reference type definition, i.e. the TypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters.
Arguments:
type
:: pdk.net.xml.TypeInfotypeNamespaceArg
:: pdk.core.String - the namespace of the other type definition.typeNameArg
:: pdk.core.String - the name of the other type definition.derivationMethod
:: pdk.core.String - the type of derivation and conditions applied between two types, as described in the list of constants provided in this interface.
Result:
output :: pdk.core.Boolean - If the document's schema is a DTD or no schema is associated with the document, this method will always return
false
. If the document's schema is an XML Schema, the method will returntrue
if the reference type definition is derived from the other type definition according to the derivation parameter. If the value of the parameter is0
(no bit is set to1
for thederivationMethod
parameter), the method will returntrue
if the other type definition can be reached by recursing any combination of {base type definition}, {item type definition}, or {member type definitions} from the reference type definition.
Possible exceptions
NullPointerException - throws if the
type
,typeNamespaceArg
,typeNameArg
orderivationMethod
isNULL
Last updated