考虑以下时期:2017-11-03至2017-11-06
public class foo implements Serializable {
private Date startPeriod;
private Date endPeriod;
...
}
<xs:element name="container" >
<xs:complexType>
<xs:sequence>
<xs:element name="foo" type="fooType" />
...
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="fooType">
<xs:sequence>
<xs:element name="TimePeriodCovered" minOccurs="0" type="PeriodType" />
...
</xs:sequence>
</xs:complexType>
<xs:complexType name="PeriodType">
<xs:attribute name="v" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]Z?/[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]Z?" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
我完全不知道。它应该是什么?