18.01.2015 Views

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

integer{0,256} powerOfTwo[1,2,4,8,16,32,64,128,256] = 1;<br />

An object with enumerated possible values and a default.<br />

object {<br />

string beast;<br />

number normalTemperature;<br />

} temps [ { "beast": "canine", "normalTemperature": 101.2 },<br />

{ "beast": "human", "normalTemperature": 98.6 } ]<br />

= { "beast": "canine", "normalTemperature": 101.2 };<br />

B.3.19<br />

Cautions<br />

When you stare hard enough at the grammar of a non-trivial language you usually learn quite a deal. Sometimes<br />

what you learn can be surprising or downright confusing. Here's a tour of the darker parts alleys of<br />

Orderly:<br />

Brackets and braces -- visually a tad confusing:<br />

integer{7,42} secretOfLife[7,42];<br />

And a little bit more confusing:<br />

array { integer{7,42}[7,42]; } secretOfLife;<br />

<strong>CMIS</strong>-v<strong>1.1</strong>-csprd01<br />

Standards Track Work Product<br />

Copyright © OASIS Open 2012. All Rights Reserved.<br />

18 August 2012<br />

Page 324 of 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!