Changeset 1947
- Timestamp:
- 02/22/08 11:00:36 (9 months ago)
- Files:
-
- branches/dictionary_changes/src/com/tresys/framework/compiler/Compiler.java (modified) (5 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/FSysGenerator.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/PolicyGenerator.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/Linkage.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/flnkage/FLNKParser.jj (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/flnkage/ILinkageItem.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Ability.java (moved) (moved from branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/flnkage/Ability.java) (4 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Access.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessBaseResource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessBoolean.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessResource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/BaseDomain.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/BaseResource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Comment.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Component.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/ComponentWithDictObjects.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Conditional.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/ControlResource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Domain.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Enter.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/EntrypointResource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/IDomain.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/IPolicyVisitable.java (moved) (moved from branches/dictionary_changes/src/com/tresys/framework/compiler/IPolicyVisitable.java) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/IPolicyVisitor.java (moved) (moved from branches/dictionary_changes/src/com/tresys/framework/compiler/IPolicyVisitor.java) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Policy.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/PolicyParser.jj (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/PolicyValidator.java (added)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Resource.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/policy/UserDomain.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/translator/SELinuxPolicy.java (modified) (5 diffs)
- branches/dictionary_changes/src/com/tresys/framework/compiler/translator/Translator.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/builder/SELinuxSystem.java (modified) (4 diffs)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/linkage/AbilityDataItem.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/linkage/FLNKGenerator.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/linkage/LinkageMasterBlock.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/GraphicPolicyMetaVisitor.java (modified) (2 diffs)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/GraphicPolicyRefresh.java (modified) (3 diffs)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/figure/EntryConnectionFigure.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/model/DomainShape.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/model/UserDomainShape.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/editor/policy/graphic/parts/ShapeNodeEditPolicy.java (modified) (1 diff)
- branches/dictionary_changes/src/com/tresys/framework/plugin/views/navigator/IResourceTreeEditPart.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dictionary_changes/src/com/tresys/framework/compiler/Compiler.java
r1946 r1947 26 26 import com.tresys.framework.compiler.linkage.Linkage; 27 27 import com.tresys.framework.compiler.policy.Policy; 28 import com.tresys.framework.compiler.policy.PolicyValidator; 28 29 import com.tresys.framework.compiler.systemResources.SystemResources; 29 30 import com.tresys.framework.compiler.translator.SELinuxDictionary; … … 410 411 } 411 412 412 System.out.println ("Validating policy..."); 413 if (!policy.Validate ()) 414 { 415 ErrorExit ("Policy validation failed, exiting..."); 416 } 417 413 { 414 System.out.println ("Validating policy..."); 415 416 CLIErrorHandler policyHandler = new CLIErrorHandler ("policy_validator"); 417 PolicyValidator policyValidator = new PolicyValidator (policy, policyHandler); 418 policy.Accept (policyValidator); 419 420 421 // if (!policy.Validate ()) 422 if (policyValidator.hasErrors ()) 423 { 424 ErrorExit ("Policy validation failed, exiting..."); 425 } 426 } 427 418 428 sysres = new SystemResources (policy); 419 429 errorCount = 0; … … 563 573 if (translator.GetErrorState ()) 564 574 { 565 System. err.println ("Errors encountered during translation!");575 System.out.println ("Errors encountered during translation!"); 566 576 if (polOutputFilename != null) 567 577 { 568 System. err.println ("Cleaning up generated policy...");578 System.out.println ("Cleaning up generated policy..."); 569 579 File pc = new File (polOutputFilename); 570 580 … … 573 583 if (fcOutputFilename != null) 574 584 { 575 System. err.println ("Cleaning up generated file context...");585 System.out.println ("Cleaning up generated file context..."); 576 586 File fc = new File (fcOutputFilename); 577 587 … … 592 602 public static void ErrorExit (String message) 593 603 { 594 System. err.println (message);604 System.out.println (message); 595 605 System.exit (1); 596 606 } branches/dictionary_changes/src/com/tresys/framework/compiler/FSysGenerator.java
r1938 r1947 21 21 import com.tresys.framework.compiler.dictionary.Rdef; 22 22 import com.tresys.framework.compiler.dictionary.SysResourceState; 23 import com.tresys.framework.compiler. linkage.flnkage.Ability;23 import com.tresys.framework.compiler.policy.Ability; 24 24 import com.tresys.framework.compiler.policy.AccessBaseResource; 25 import com.tresys.framework.compiler.policy.AccessBoolean; 25 26 import com.tresys.framework.compiler.policy.AccessResource; 26 27 import com.tresys.framework.compiler.policy.BaseDomain; … … 32 33 import com.tresys.framework.compiler.policy.Enter; 33 34 import com.tresys.framework.compiler.policy.EntrypointResource; 35 import com.tresys.framework.compiler.policy.IPolicyVisitor; 34 36 import com.tresys.framework.compiler.policy.Policy; 35 37 import com.tresys.framework.compiler.policy.Resource; … … 230 232 {} 231 233 234 public void Visit (AccessBoolean i_access) 235 {} 236 232 237 public void Visit (Ability i_ability) 233 238 {} branches/dictionary_changes/src/com/tresys/framework/compiler/PolicyGenerator.java
r1878 r1947 20 20 import com.tresys.framework.compiler.dictionary.EntryAccessDefn; 21 21 import com.tresys.framework.compiler.dictionary.Rdef; 22 import com.tresys.framework.compiler.linkage.flnkage.Ability;23 22 import com.tresys.framework.compiler.linkage.flnkage.BaseAccessDefn; 23 import com.tresys.framework.compiler.policy.Ability; 24 24 import com.tresys.framework.compiler.policy.AccessBaseResource; 25 import com.tresys.framework.compiler.policy.AccessBoolean; 25 26 import com.tresys.framework.compiler.policy.AccessResource; 26 27 import com.tresys.framework.compiler.policy.BaseDomain; … … 32 33 import com.tresys.framework.compiler.policy.Enter; 33 34 import com.tresys.framework.compiler.policy.EntrypointResource; 35 import com.tresys.framework.compiler.policy.IPolicyVisitor; 34 36 import com.tresys.framework.compiler.policy.Policy; 35 37 import com.tresys.framework.compiler.policy.Resource; … … 381 383 } 382 384 385 386 public void Visit (AccessBoolean i_access) 387 {} 388 383 389 public void Visit (Ability i_ability) 384 390 {} branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/Linkage.java
r1938 r1947 17 17 import java.util.Iterator; 18 18 19 import com.tresys.framework.compiler. linkage.flnkage.Ability;19 import com.tresys.framework.compiler.policy.Ability; 20 20 import com.tresys.framework.compiler.policy.BaseDomain; 21 21 import com.tresys.framework.compiler.policy.BaseResource; branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/flnkage/FLNKParser.jj
r1939 r1947 26 26 import com.tresys.framework.compiler.ErrorHandler; 27 27 import com.tresys.framework.compiler.ParserBase; 28 import com.tresys.framework.compiler.policy.Ability; 28 29 import com.tresys.framework.compiler.policy.BaseDomain; 29 30 import com.tresys.framework.compiler.policy.BaseResource; branches/dictionary_changes/src/com/tresys/framework/compiler/linkage/flnkage/ILinkageItem.java
r1878 r1947 12 12 import java.util.Map; 13 13 14 import com.tresys.framework.compiler.IPolicyVisitor;15 14 import com.tresys.framework.compiler.dictionary.NameValuePair; 15 import com.tresys.framework.compiler.policy.IPolicyVisitor; 16 16 17 17 public interface ILinkageItem branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Ability.java
r1939 r1947 7 7 */ 8 8 9 package com.tresys.framework.compiler. linkage.flnkage;9 package com.tresys.framework.compiler.policy; 10 10 11 11 import java.util.HashMap; 12 import java.util.Iterator;13 12 import java.util.Map; 14 13 import java.util.TreeMap; 15 14 16 15 import com.tresys.framework.compiler.AbstractToken; 17 import com.tresys.framework.compiler.IPolicyVisitor;18 16 import com.tresys.framework.compiler.dictionary.AccessTarget; 19 17 import com.tresys.framework.compiler.dictionary.INameValue; … … 21 19 import com.tresys.framework.compiler.dictionary.PermVector; 22 20 import com.tresys.framework.compiler.dictionary.Target; 21 import com.tresys.framework.compiler.linkage.flnkage.ILinkageItem; 23 22 24 23 import com.tresys.slide.utility.policyxmlparser.Interface; … … 130 129 * @return <code>true</code> if definition is valid. 131 130 */ 131 /* 132 132 final boolean Validate() 133 133 { 134 134 boolean valid = true; 135 135 136 /*for (PermVector pv:at.GetPermVectors().values())*/137 136 for (Iterator iter = accessTarget.GetPermVectors().values().iterator(); iter.hasNext(); ) 138 137 { … … 148 147 return valid; 149 148 } 150 149 */ 151 150 152 151 /** branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Access.java
r1878 r1947 15 15 import java.util.Collection; 16 16 17 import com.tresys.framework.compiler.IPolicyVisitable;18 import com.tresys.framework.compiler.IPolicyVisitor;19 17 import com.tresys.framework.compiler.AbstractToken; 20 18 import com.tresys.framework.compiler.dictionary.Verb; … … 108 106 Domain.Add(this); 109 107 } 110 111 public abstract boolean Validate();112 108 113 109 public abstract void Accept(IPolicyVisitor i_visitor); branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessBaseResource.java
r1878 r1947 13 13 import java.util.HashSet; 14 14 import java.util.Iterator; 15 import java.util.Map;16 15 import java.util.Set; 17 16 import java.util.TreeSet; 18 17 19 import com.tresys.framework.compiler.ErrorHandler;20 import com.tresys.framework.compiler.IPolicyVisitor;21 18 import com.tresys.framework.compiler.AbstractToken; 22 19 import com.tresys.framework.compiler.Utility; … … 176 173 } 177 174 178 public boolean Validate()179 {180 if (getDomain().GetChildDomains().size() > 0)181 {182 /*for (Domain child: Domain.GetChildDomains())*/183 Iterator iter = getDomain().GetChildDomains().values().iterator();184 while (iter.hasNext())185 {186 Domain child = (Domain) iter.next();187 /*for (Access childAccess: child.GetAccess(verb).values())*/188 Iterator iter2 = child.GetAccesses().iterator();189 while (iter2.hasNext())190 {191 Access childAccess = (Access) iter2.next();192 if (childAccess instanceof AccessBaseResource193 && ((AccessBaseResource) childAccess).GetBaseResource() == GetBaseResource())194 {195 return true;196 }197 }198 }199 200 Token.Error ("Access from parent not used by any children", ErrorHandler.ERROR_UNUSED_ACCESS, toString());201 return false;202 }203 204 // If the domain and the resource have the same parent, there are no constraints205 Domain domainParent = getDomain().getParent();206 207 if(domainParent != null) {208 209 Map parentAccesses = domainParent.GetAccessMap(m_verb.intValue());210 211 if (parentAccesses.isEmpty())212 {213 Token.Warning("Constraint violation: Child domain has attempted to exceed parent domain \""214 + domainParent.getName()215 + "\"'s access to interface \""216 + GetBaseResource().getName() + "\"",217 ErrorHandler.ERROR_INVALID_ACCESS, toString());218 return false;219 }220 221 Access parentToResource = (Access) parentAccesses.get(GetBaseResource());222 223 if (parentToResource == null)224 {225 Token.Warning("Constraint violation: Child domain has attempted to exceed parent domain \""226 + domainParent.getName()227 + "\"'s access to resource \""228 + GetBaseResource().getName() + "\"",229 ErrorHandler.ERROR_INVALID_ACCESS, toString ());230 return false;231 }232 233 if (parentToResource.m_bool != null234 && !parentToResource.m_bool.equals(m_bool))235 {236 Token.Warning("Constraint violation: Parent's permission on resource are wrapped in the boolean "237 + parentToResource.m_bool238 + ", child permission must also be wrapped by the same boolean",239 ErrorHandler.ERROR_MISSING_BOOLEAN, toString());240 return false;241 }242 243 }244 245 return true;246 }247 248 175 public boolean equals(Object arg0) 249 176 { branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessBoolean.java
r1939 r1947 10 10 11 11 import java.util.Collection; 12 import java.util.Map;13 12 14 13 import com.tresys.framework.compiler.AbstractToken; 15 import com.tresys.framework.compiler.IPolicyVisitor;16 14 17 15 public class AccessBoolean … … 25 23 26 24 public void Accept (IPolicyVisitor i_visitor) 27 {} 25 { 26 i_visitor.Visit (this); 27 } 28 28 29 29 public boolean isDefault () … … 46 46 // throws VerbMismatchException, UnrevokableException 47 47 {} 48 49 public boolean Validate ()50 {51 // If the domain and the resource have the same parent, there are no52 // constraints53 Domain domainParent = getDomain ().getParent ();54 55 if (domainParent != null)56 {57 58 Map/* <Component, Access> */parentAccesses = domainParent.GetAccessMap (m_verb.intValue ());59 60 if (parentAccesses.isEmpty ())61 {62 Token63 .Warning ("Constraint violation: Child domain has attempted to exceed parent domain \""64 + domainParent.getName ()65 + "\"'s access to interface \""66 + getResource ().getName () + "\"");67 return false;68 }69 70 Access parentToResource = (Access) parentAccesses.get (getResource ());71 72 if (parentToResource == null)73 {74 Token.Warning ("Constraint violation: Child domain has attempted to exceed parent domain \""75 + domainParent.getName ()76 + "\"'s access to resource \""77 + getResource ().getName () + "\"");78 return false;79 }80 81 if (parentToResource.m_bool != null && !parentToResource.m_bool.equals (m_bool))82 {83 Token84 .Warning ("Constraint violation: Parent's permission on resource are wrapped in the boolean "85 + parentToResource.m_bool86 + ", child permission must also be wrapped by the same boolean");87 return false;88 }89 90 }91 return true;92 }93 48 } branches/dictionary_changes/src/com/tresys/framework/compiler/policy/AccessResource.java
r1878 r1947 13 13 package com.tresys.framework.compiler.policy; 14 14 15 import com.tresys.framework.compiler.ErrorHandler;16 import com.tresys.framework.compiler.IPolicyVisitor;17 15 import com.tresys.framework.compiler.AbstractToken; 18 16 import com.tresys.framework.compiler.Utility; … … 293 291 } 294 292 295 public boolean Validate()296 {297 if (getDomain().GetChildDomains().size() > 0)298 {299 /*for (Domain child: Domain.GetChildDomains())*/300 Iterator iter = getDomain().GetChildDomains().values().iterator();301 boolean isUsed = false;302 while(iter.hasNext() && !isUsed)303 {304 Domain child = (Domain) iter.next();305 /*for (Access childAccess: child.GetAccess(verb).values())*/306 Iterator iter2 = child.GetAccesses(m_verb.intValue()).iterator();307 while(iter2.hasNext() && !isUsed)308 {309 Access childAccess = (Access) iter2.next();310 if (childAccess instanceof AccessResource311 && ((AccessResource) childAccess).getResource() == getResource())312 {313 isUsed = true;314 }315 }316 }317 if(!isUsed) {318 Token.Error("Access from parent not used by any children",319 ErrorHandler.ERROR_UNUSED_ACCESS, toString());320 return false;321 }322 }323 324 if(accessDefs == null || accessDefs.isEmpty())325 Token.Warning("No RDef in the resource " + getResource().getName()326 + " defines a " + Verb.toString(this.m_verb) + " access",327 ErrorHandler.ERROR_INVALID_ACCESS, toString());328 329 // If the domain and the resource have the same parent, there are no constraints330 Domain domainParent = getDomain().getParent();331 332 if(domainParent != null && domainParent != getResource ().getParent()) {333 334 Map/*<Component, Access>*/parentAccesses = domainParent.GetAccessMap(m_verb.intValue());335 336 if (parentAccesses == null)337 {338 Token.Warning("Constraint violation: Child domain has attempted to exceed parent domain \""339 + domainParent.getName()340 + "\"'s access to resource \""341 + getResource ().getName() + "\"",342 ErrorHandler.ERROR_INVALID_ACCESS, toString());343 return false;344 }345 AccessResource parentToResource = (AccessResource) parentAccesses.get(getResource ());346 347 if (parentToResource == null)348 {349 Token.Warning("Constraint violation: Child domain has attempted to exceed parent domain \""350 + domainParent.getName()351 + "\"'s access to resource \""352 + getResource ().getName() + "\"",353 ErrorHandler.ERROR_CHILD_EXCEED_ACCESS, toString());354 return false;355 }356 357 if (!IsSubsetOf(parentToResource))358 {359 Token.Error("Constraint violation: child's access: "360 + toString().replace(Utility.DELIM, ' ')361 + ", Parent's access: "362 + parentToResource.toString().replace(Utility.DELIM, ' '));363 return false;364 }365 366 if (parentToResource.m_bool != null367 && (m_bool == null || !parentToResource.m_bool.image.equals(m_bool.image)))368 {369 Token.Warning("Constraint violation: Parent's permission on resource is wrapped in the boolean "370 + parentToResource.m_bool371 + ", child permission must also be wrapped by the same boolean",372 ErrorHandler.ERROR_MISSING_BOOLEAN, toString ());373 return false;374 }375 }376 377 return true;378 }379 380 293 public boolean equals(Object arg0) { 381 294 if(!(arg0 instanceof AccessResource)) branches/dictionary_changes/src/com/tresys/framework/compiler/policy/BaseDomain.java
r1878 r1947 19 19 import java.util.Vector; 20 20 21 import com.tresys.framework.compiler.IPolicyVisitor;22 21 import com.tresys.framework.compiler.AbstractToken; 23 22 import com.tresys.framework.compiler.dictionary.INameValue; 24 23 import com.tresys.framework.compiler.dictionary.NameValuePair; 25 import com.tresys.framework.compiler.linkage.Linkage;26 24 import com.tresys.framework.compiler.linkage.flnkage.ILinkageItem; 27 25 … … 123 121 } 124 122 125 public boolean IsEnterPresent(IDomain src, Domain dest, EntrypointResource ep)123 public boolean IsEnterPresent(IDomain src, IDomain dest, EntrypointResource ep) 126 124 { 127 125 /*for (Enter enter: entries)*/ … … 161 159 } 162 160 163 public boolean Validate(Linkage linkage)164 {165 return super.Validate(linkage);166 }167 168 161 public boolean ValidateSystemResources() 169 162 { branches/dictionary_changes/src/com/tresys/framework/compiler/policy/BaseResource.java
r1878 r1947 12 12 13 13 import java.util.HashMap; 14 import java.util.Iterator;15 14 import java.util.Map; 16 15 import java.util.Set; 17 16 import java.util.TreeMap; 18 17 19 import com.tresys.framework.compiler.IPolicyVisitor;20 18 import com.tresys.framework.compiler.AbstractToken; 21 19 import com.tresys.framework.compiler.dictionary.AccessDefn; … … 160 158 } 161 159 162 public boolean Validate(Policy pol)163 {164 if(pol.getValidInterfaces() == null)165 return true;166 Iterator itr = interfaces.values().iterator();167 while(itr.hasNext())168 {169 Interface iFace = (Interface) itr.next();170 if(!pol.getValidInterfaces().containsKey(iFace.getName()))171 {172 m_token.Error("The baseResource \"" + getName() + "\" calls the "173 + iFace.getClass().getName() + " " + iFace.getName()174 + " which is not defined in the base policy");175 return false;176 }177 if(iFace.GetParameters().size() != ((Interface) pol178 .getValidInterfaces().get(iFace.getName())).GetParameters()179 .size())180 {181 m_token.Error("The baseResource \""182 + getName()183 + "\" calls the "184 + iFace.getClass().getName()185 + " "186 + iFace.getName()187 + " with "188 + iFace.GetParameters().size()189 + " parameters, the correct number of parameters is "190 + ((Interface) pol.getValidInterfaces()191 .get(iFace.getName())).GetParameters().size());192 return false;193 }194 195 }196 return true;197 }198 199 160 public void Accept(IPolicyVisitor i_visitor) 200 161 { branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Comment.java
r1939 r1947 11 11 12 12 import com.tresys.framework.compiler.AbstractToken; 13 import com.tresys.framework.compiler.IPolicyVisitable;14 import com.tresys.framework.compiler.IPolicyVisitor;15 13 16 14 public class Comment branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Component.java
r1878 r1947 21 21 22 22 import com.tresys.framework.compiler.ErrorHandler; 23 import com.tresys.framework.compiler.IPolicyVisitable;24 import com.tresys.framework.compiler.IPolicyVisitor;25 23 import com.tresys.framework.compiler.AbstractToken; 26 import com.tresys.framework.compiler.linkage.Linkage;27 24 28 25 /** … … 192 189 } 193 190 194 public boolean Validate(Linkage linkage)195 {196 boolean valid = true;197 198 return valid;199 }200 201 191 /** 202 192 * Get the token with location information branches/dictionary_changes/src/com/tresys/framework/compiler/policy/ComponentWithDictObjects.java
r1938 r1947 327 327 } 328 328 329 public boolean Validate(Linkage linkage)330 {331 boolean valid = true;332 333 valid &= super.Validate(linkage);334 335 return valid;336 }337 338 329 /** 339 330 * Reset the system resource associations defined branches/dictionary_changes/src/com/tresys/framework/compiler/policy/Conditional.java
r1878 r1947 9 9 package com.tresys.framework.compiler.policy; 10 10 11 import com.tresys.framework.compiler.IPolicyVisitor;12 11 import com.tresys.framework.compiler.AbstractToken; 13 12 branches/dictionary_changes/src/com/tresys/framework/compiler/policy/ControlResource.java
r1878 r1947 13 13 14 14 import com.tresys.framework.compiler.ErrorHandler; 15 import com.tresys.framework.compiler.IPolicyVisitor;16 15 import com.tresys.framework.compiler.AbstractToken; 17 16 import com.tresys.framework.compiler.dictionary.Rdef; 18 import com.tresys.framework.compiler.linkage.Linkage;19 17 20 18 /** … … 160 158 } 161 159 162
