Changeset 1941
- Timestamp:
- 02/19/08 08:34:10
(9 months ago)
- Author:
- dsugar
- Message:
add missing optional block
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1940 |
r1941 |
|
| 299 | 299 | m_bufferPolicy.println("\t')"); |
|---|
| 300 | 300 | } |
|---|
| 301 | | |
|---|
| | 301 | |
|---|
| 302 | 302 | for (Iterator itr = i_enter.GetEntryAccessDefns().iterator(); itr.hasNext(); ) |
|---|
| 303 | 303 | { |
|---|
| … | … | |
| 326 | 326 | } |
|---|
| 327 | 327 | } |
|---|
| 328 | | |
|---|
| | 328 | |
|---|
| 329 | 329 | if (i_enter.getStartDomain() instanceof BaseDomain) |
|---|
| 330 | 330 | { |
|---|
| 331 | 331 | m_bufferPolicy.println("\n')"); |
|---|
| 332 | 332 | } |
|---|
| 333 | | |
|---|
| | 333 | |
|---|
| 334 | 334 | if(isBoolean) |
|---|
| 335 | 335 | { |
|---|
| … | … | |
| 435 | 435 | m_bufferPolicy.println("# CDSFramework access (domain resource verb): " + i_access.toString().replace(Utility.DELIM, ' ')); |
|---|
| 436 | 436 | |
|---|
| | 437 | IDomain domain = i_access.getDomain (); |
|---|
| | 438 | if (domain instanceof BaseDomain) |
|---|
| | 439 | { |
|---|
| | 440 | m_bufferPolicy.println ("optional_policy(`"); |
|---|
| | 441 | m_bufferPolicy.println ("\tgen_require(`"); |
|---|
| | 442 | m_bufferPolicy.println ("\t\ttype " + domain.getType() + ";"); |
|---|
| | 443 | m_bufferPolicy.println ("\t\trole " + ((BaseDomain) domain).GetRole() + ";"); |
|---|
| | 444 | m_bufferPolicy.println ("\t')"); |
|---|
| | 445 | } |
|---|
| | 446 | |
|---|
| 437 | 447 | // for each AccessTarget associated with this AccessDefn |
|---|
| 438 | 448 | Collection accessDefns = i_access.GetAccessDefns(); |
|---|
| … | … | |
| 446 | 456 | m_bufferPolicy.print(templateName + "(" + i_access.getDomain().getType() + ","); |
|---|
| 447 | 457 | |
|---|
| 448 | | if(i_access.getResource() instanceof ControlResource) |
|---|
| | 458 | if (i_access.getResource() instanceof ControlResource) |
|---|
| 449 | 459 | { |
|---|
| 450 | 460 | m_bufferPolicy.println (((ControlResource)i_access.getResource()).getType() + ")"); |
|---|
| … | … | |
| 531 | 541 | m_bufferPolicy.println("\t\ttype " + sTarget + ";"); |
|---|
| 532 | 542 | m_bufferPolicy.println("\t')"); |
|---|
| | 543 | |
|---|
| 533 | 544 | m_bufferPolicy.println("\tfiletrans_pattern(" + sProcessType + ", " + sTarget |
|---|
| 534 | 545 | + ", " + sResType + ", " + sObjClass + ");"); |
|---|
| | 546 | |
|---|
| 535 | 547 | m_bufferPolicy.println("')"); |
|---|
| 536 | 548 | } |
|---|
| 537 | 549 | } |
|---|
| 538 | 550 | } |
|---|
| 539 | | |
|---|
| 540 | | if(isBoolean) |
|---|
| | 551 | |
|---|
| | 552 | if (domain instanceof BaseDomain) |
|---|
| | 553 | m_bufferPolicy.println ("\n')"); |
|---|
| | 554 | |
|---|
| | 555 | if (isBoolean) |
|---|
| 541 | 556 | { |
|---|
| 542 | 557 | m_bufferPolicy.println ("}"); |
|---|
| … | … | |
| 546 | 561 | public void Visit (BaseDomain domain) |
|---|
| 547 | 562 | { |
|---|
| 548 | | /* |
|---|
| 549 | | m_bufferPolicy.print("optional_policy(`\n" + |
|---|
| 550 | | "\tgen_require(`\n" + |
|---|
| 551 | | "\t\ttype " + domain.getType() + ";\n" + |
|---|
| 552 | | "\t\trole " + domain.GetRole() + ";\n" + |
|---|
| 553 | | "\t')\n" + "\n')\n"); |
|---|
| 554 | | */ |
|---|
| | 563 | m_bufferPolicy.println("optional_policy(`"); |
|---|
| | 564 | m_bufferPolicy.println("\tgen_require(`"); |
|---|
| | 565 | m_bufferPolicy.println("\t\ttype " + domain.getType() + ";"); |
|---|
| | 566 | m_bufferPolicy.println("\t\trole " + domain.GetRole() + ";"); |
|---|
| | 567 | m_bufferPolicy.println("\t')"); |
|---|
| | 568 | |
|---|
| | 569 | // anything here? |
|---|
| | 570 | |
|---|
| | 571 | m_bufferPolicy.println("\n')"); |
|---|
| 555 | 572 | } |
|---|
| 556 | 573 | |
|---|
Download in other formats:
* Generating other formats may take time.