public class YMarshal
extends java.lang.Object
Constructor and Description |
---|
YMarshal() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
marshal(java.util.List<YSpecification> specificationList,
YSchemaVersion version)
Builds an XML Document from a list of specifications
|
static java.lang.String |
marshal(YSpecification specification)
Builds an XML Document from a specification
|
static java.util.List<YSpecification> |
unmarshalSpecifications(java.lang.String specStr)
Builds a list of specification objects from a XML string.
|
static java.util.List<YSpecification> |
unmarshalSpecifications(java.lang.String specStr,
boolean schemaValidate)
Builds a list of specification objects from a XML string.
|
public static java.util.List<YSpecification> unmarshalSpecifications(java.lang.String specStr) throws YSyntaxException
specStr
- the XML string describing the specification setYSyntaxException
- if a parsed specification doesn't validate against
schemapublic static java.util.List<YSpecification> unmarshalSpecifications(java.lang.String specStr, boolean schemaValidate) throws YSyntaxException
specStr
- the XML string describing the specification setschemaValidate
- when true, will cause the specifications to be
validated against schema while being parsedYSyntaxException
- if a parsed specification doesn't validate against
schemapublic static java.lang.String marshal(java.util.List<YSpecification> specificationList, YSchemaVersion version)
specificationList
- the list of specifications to build into an XML document
'specification set'version
- the appropriate schema version to usepublic static java.lang.String marshal(YSpecification specification)
specification
- the specification to build into an XML document
'specification set'Copyright © 2004-2014 The YAWL Foundation.