update copyright
[fedora-idea.git] / xml / impl / src / com / intellij / xml / util / documentation / HtmlAttributeDescriptor.java
blob67b792fdde2754513897c8f8057a6d63dc4f7ecc
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.xml.util.documentation;
18 import java.util.Arrays;
20 /**
21 * Created by IntelliJ IDEA.
22 * User: maxim
23 * Date: 24.12.2004
24 * Time: 23:54:11
25 * To change this template use File | Settings | File Templates.
27 class HtmlAttributeDescriptor extends EntityDescriptor {
28 private String myType;
29 private boolean myHasDefaultValue;
30 private String[] mySetOfParentTags;
31 private boolean myParentSetIsExclusionSet;
33 boolean isValidParentTagName(String str) {
34 boolean containsInSet = Arrays.binarySearch(mySetOfParentTags, str) >= 0;
35 return containsInSet == !myParentSetIsExclusionSet;
38 String getType() {
39 return myType;
42 void setType(String type) {
43 this.myType = type;
46 boolean isHasDefaultValue() {
47 return myHasDefaultValue;
50 void setHasDefaultValue(boolean hasDefaultValue) {
51 this.myHasDefaultValue = hasDefaultValue;
54 String[] getSetOfParentTags() {
55 return mySetOfParentTags;
58 boolean isParentSetIsExclusionSet() {
59 return myParentSetIsExclusionSet;
62 void setParentSetIsExclusionSet(boolean _parentSetIsExclusionSet) {
63 myParentSetIsExclusionSet = _parentSetIsExclusionSet;
66 void setSetOfParentTags(String[] _setOfParentTags) {
67 mySetOfParentTags = _setOfParentTags;