001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 *
019 */
020
021 package org.apache.directory.shared.ldap.schema.parsers;
022
023
024 import java.util.ArrayList;
025 import java.util.List;
026
027
028 /**
029 * RFC 4512 - 4.1.6. DIT Content Rule Description
030 *
031 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
032 * @version $Rev$, $Date$
033 */
034 public class DITContentRuleDescription extends AbstractSchemaDescription
035 {
036
037 private List<String> auxiliaryObjectClasses;
038
039 private List<String> mustAttributeTypes;
040
041 private List<String> mayAttributeTypes;
042
043 private List<String> notAttributeTypes;
044
045
046 public DITContentRuleDescription()
047 {
048 auxiliaryObjectClasses = new ArrayList<String>();
049 mustAttributeTypes = new ArrayList<String>();
050 mayAttributeTypes = new ArrayList<String>();
051 notAttributeTypes = new ArrayList<String>();
052 }
053
054
055 public List<String> getMayAttributeTypes()
056 {
057 return mayAttributeTypes;
058 }
059
060
061 public void setMayAttributeTypes( List<String> mayAttributeTypes )
062 {
063 this.mayAttributeTypes = mayAttributeTypes;
064 }
065
066
067 public List<String> getMustAttributeTypes()
068 {
069 return mustAttributeTypes;
070 }
071
072
073 public void setMustAttributeTypes( List<String> mustAttributeTypes )
074 {
075 this.mustAttributeTypes = mustAttributeTypes;
076 }
077
078
079 public List<String> getAuxiliaryObjectClasses()
080 {
081 return auxiliaryObjectClasses;
082 }
083
084
085 public void setAuxiliaryObjectClasses( List<String> auxiliaryObjectClasses )
086 {
087 this.auxiliaryObjectClasses = auxiliaryObjectClasses;
088 }
089
090
091 public List<String> getNotAttributeTypes()
092 {
093 return notAttributeTypes;
094 }
095
096
097 public void setNotAttributeTypes( List<String> notAttributeTypes )
098 {
099 this.notAttributeTypes = notAttributeTypes;
100 }
101
102
103 public void addAuxiliaryAttributeType( String oid )
104 {
105 auxiliaryObjectClasses.add( oid );
106 }
107
108
109 public void addMustAttributeType( String oid )
110 {
111 mustAttributeTypes.add( oid );
112 }
113
114
115 public void addMayAttributeType( String oid )
116 {
117 mayAttributeTypes.add( oid );
118 }
119
120
121 public void addNotAttributeType( String oid )
122 {
123 notAttributeTypes.add( oid );
124 }
125
126 }