close

Filter

loading table of contents...

Content Server Manual / Version 2310

Table Of Contents

4.3.2 Struct Properties

Struct properties are special because they might prevent the Content Server from restart. This is because struct properties might contain link or link list properties with links which are restricted to specific content types (see Example 4.6, “ Struct XML with link list property ”).

<?xml version="1.0" encoding="UTF-8"?>
<Struct xmlns="http://www.coremedia.com/2008/struct"
        xmlns:xlink="http://www.w3.org/1999/xlink">

  <StringProperty Name="string">foo</StringProperty>
  <LinkProperty Name="link"
                LinkType="coremedia:///cap/contenttype/CMArticle"
                xlink:href="coremedia:///cap/content/2"/>
  <StructProperty Name="substruct">
    <Struct>
      <LinkListProperty Name="links"
                        LinkType="coremedia:///cap/contenttype/Content_">
        <Link xlink:href="coremedia:///cap/content/2"/>
        <Link xlink:href="coremedia:///cap/content/102"/>
      </LinkListProperty>
    </Struct>
  </StructProperty>
</Struct>

Example 4.6.  Struct XML with link list property


If you change the content type name, these links are invalid and you get an error.

java.lang.NullPointerException
at
com.coremedia.cotopaxi.struct.xml.StructUnHandler.unparseLinkList(StructUnHandler.java:194)

Example 4.7.  Error message because of invalid link type


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.