Date

<< Clique para Mostrar o Sumário >>

 

Date

Esta representação de dados complexos via XML é utilizada pelos seguintes objetos/propriedades:

accessDoor.priorityArray

analogOutput.priorityArray

analogValue.priorityArray

binaryLightingOutput.priorityArray

binaryOutput.priorityArray

binaryValue.priorityArray

bitstringValue.priorityArray

channel.presentValue

characterstringValue.priorityArray

dateValue.priorityArray

datepatternValue.priorityArray

datetimeValue.priorityArray

datetimepatternValue.priorityArray

integerValue.priorityArray

largeAnalogValue.priorityArray

lightingOutput.priorityArray

multiStateOutput.priorityArray

multiStateValue.priorityArray

octetstringValue.priorityArray

positiveIntegerValue.priorityArray

timeValue.priorityArray

timepatternValue.priorityArray

Esquema XML

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://www.elipse.com.br/drivers/BACnet" xmlns:mstns="http://www.elipse.com.br/drivers/BACnet" elementFormDefault="qualified" targetNamespace="http://www.elipse.com.br/drivers/BACnet" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="Date">
    <xs:restriction base="xs:string">
      <xs:pattern value="((19|20)\d\d|(\?\?\?)?\?)-((0[0-9]|1[012])|\??\?)-((0[0-9]|[12][0-9]|3[01])|\??\?)(-([0-6]|\?))?" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="Value" type="Date" />
</xs:schema>

Exemplos

Exemplo 1:

<?xml version="1.0" encoding="utf-8" ?>
<Value xmlns="http://www.elipse.com.br/drivers/BACnet">
  <Date>2017-12-20</Date>
</Value>

Esta página foi útil?