Skip to content

Object Type Package Installation Plugin#

Registers an object type. Read about object types in the objectTypeDefinition PIP.

Components#

Each item is described as a <type> element with the mandatory child <name> that should follow the naming pattern <packageIdentifier>.<definition>, e.g. com.woltlab.wcf.example.

<definitionname>#

The <name> of the objectTypeDefinition.

<classname>#

The name of the class providing the object types's behaviour, the class has to implement the <interfacename> interface of the object type definition.

<*>#

Optional

Additional fields may be defined for specific definitions of object types. Refer to the documentation of these for further explanation.

Example#

objectType.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/objectType.xsd">
    <import>
        <type>
            <name>com.woltlab.wcf.example</name>
            <definitionname>com.woltlab.wcf.bulkProcessing.user.condition</definitionname>
            <classname>wcf\system\condition\UserIntegerPropertyCondition</classname>
            <conditiongroup>contents</conditiongroup>
            <propertyname>example</propertyname>
            <minvalue>0</minvalue>
        </type>
    </import>
</data>

Last update: 2021-04-23