blob: 4b7a1ba6fb5fd67452586214492774f4a282d8ca [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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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();
}
}