blob: e9e66b3dfa9ea157d18d8d5b79b60f28aa4d0162 [file] [log] [blame]
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.webdav.jcr.nodetype;
import org.apache.jackrabbit.webdav.jcr.ItemResourceConstants;
import org.apache.jackrabbit.webdav.xml.Namespace;
/**
* <code>NodeTypeConstants</code> used to represent nodetype definitions in
* Xml.
*
* @see javax.jcr.nodetype.NodeType
* @todo intercaps only for consistency with jackrabbit... webdav rfcs never use intercaps.
*/
public interface NodeTypeConstants {
public static final Namespace NAMESPACE = ItemResourceConstants.NAMESPACE;
public static final String XML_NODETYPENAME = "nodetypename";
public static final String XML_REPORT_ALLNODETYPES = "all-nodetypes";
public static final String XML_REPORT_MIXINNODETYPES = "mixin-nodetypes";
public static final String XML_REPORT_PRIMARYNODETYPES = "primary-nodetypes";
public static final String XML_NODETYPES = "nodetypes";
public static final String XML_NODETYPE = "nodetype";
//------< copied from org.apache.jackrabbit.core.nodetype.xml.Constants >---
/** Name of the node type definition root element. */
String NODETYPES_ELEMENT = "nodeTypes";
/** Name of the node type definition element. */
String NODETYPE_ELEMENT = "nodeType";
/** Name of the child node definition element. */
String CHILDNODEDEFINITION_ELEMENT = "childNodeDefinition";
/** Name of the property definition element. */
String PROPERTYDEFINITION_ELEMENT = "propertyDefinition";
/** Name of the <code>isMixin</code> attribute. */
String ISMIXIN_ATTRIBUTE = "isMixin";
/** Name of the <code>hasOrderableChildNodes</code> attribute. */
String HASORDERABLECHILDNODES_ATTRIBUTE = "hasOrderableChildNodes";
/** Name of the primary item name attribute. */
String PRIMARYITEMNAME_ATTRIBUTE = "primaryItemName";
/** Name of the supertypes element. */
String SUPERTYPES_ELEMENT = "supertypes";
/** Name of the supertype element. */
String SUPERTYPE_ELEMENT = "supertype";
/** Name of the <code>name</code> attribute. */
String NAME_ATTRIBUTE = "name";
/** Name of the <code>autoCreated</code> attribute. */
String AUTOCREATED_ATTRIBUTE = "autoCreated";
/** Name of the <code>mandatory</code> attribute. */
String MANDATORY_ATTRIBUTE = "mandatory";
/** Name of the <code>onParentVersion</code> attribute. */
String ONPARENTVERSION_ATTRIBUTE = "onParentVersion";
/** Name of the <code>protected</code> attribute. */
String PROTECTED_ATTRIBUTE = "protected";
/** Name of the required type attribute. */
String REQUIREDTYPE_ATTRIBUTE = "requiredType";
/** Name of the value constraints element. */
String VALUECONSTRAINTS_ELEMENT = "valueConstraints";
/** Name of the value constraint element. */
String VALUECONSTRAINT_ELEMENT = "valueConstraint";
/** Name of the default values element. */
String DEFAULTVALUES_ELEMENT = "defaultValues";
/** Name of the default value element. */
String DEFAULTVALUE_ELEMENT = "defaultValue";
/** Name of the <code>multiple</code> attribute. */
String MULTIPLE_ATTRIBUTE = "multiple";
/** Name of the required primary types element. */
String REQUIREDPRIMARYTYPES_ELEMENT = "requiredPrimaryTypes";
/** Name of the required primary type element. */
String REQUIREDPRIMARYTYPE_ELEMENT = "requiredPrimaryType";
/** Name of the default primary type attribute. */
String DEFAULTPRIMARYTYPE_ATTRIBUTE = "defaultPrimaryType";
/** Name of the <code>sameNameSiblings</code> attribute. */
String SAMENAMESIBLINGS_ATTRIBUTE = "sameNameSiblings";
}