blob: c9d8ef96be7f59b6e2afd56a25a24bb61b4b8364 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 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;
public class Tag21ElementCollection extends Tag20ElementCollection {
class TACreater21 extends TACreater20{
void createForDirTag() {
super.createForDirTag();
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 TACreater20 getAttributeCreater(){
return new TACreater21();
}
}