blob: f00bcf6566d6bd83f02edbd3e68e2c5c778a1c76 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.html.core.internal.contentmodel;
import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclaration;
class JSP21ElementCollection extends JSP20ElementCollection {
class JACreator21 extends JACreater20 {
void createForDirPage() {
super.createForDirPage();
AttrDecl adec;
// ("trimDirectiveWhitespaces" ENUM DECLARED (true|false) "false")
adec = createBoolType(JSP21Namespace.ATTR_NAME_TRIM_DIRECTIVE_WHITESPACES, ATTR_VALUE_FALSE);
if (adec != null) {
adec.usage = CMAttributeDeclaration.OPTIONAL;
declarations.putNamedItem(JSP21Namespace.ATTR_NAME_TRIM_DIRECTIVE_WHITESPACES, adec);
}
// ("deferredSyntaxAllowedAsLiteral" ENUM DECLARED (true|false) "false")
adec = createBoolType(JSP21Namespace.ATTR_NAME_DEFERRED_SYNTAX_ALLOWED_AS_LITERAL, ATTR_VALUE_FALSE);
if (adec != null) {
adec.usage = CMAttributeDeclaration.OPTIONAL;
declarations.putNamedItem(JSP21Namespace.ATTR_NAME_DEFERRED_SYNTAX_ALLOWED_AS_LITERAL, adec);
}
}
}
protected JACreater20 getAttributeCreator() {
return new JACreator21();
}
}