[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[stp-commits] r2933 - in org.eclipse.stp.policy/tags/3.6M2: . build build/policy build/policy/org.eclipse.stp.policy.build features features/org.eclipse.stp.policy.feature org.eclipse.stp.common.validator org.eclipse.stp.common.validator/META-INF org.eclipse.stp.common.validator/conf org.eclipse.stp.common.validator/src org.eclipse.stp.common.validator/src/java org.eclipse.stp.common.validator/src/java/org org.eclipse.stp.common.validator/src/java/org/eclipse org.eclipse.stp.common.validator/src/java/org/eclipse/stp org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception org.eclipse.stp.common.validator.test org.eclipse.stp.common.validator.test/META-INF org.eclipse.stp.common.validator.test/conf org.eclipse.stp.common.validator.test/conf/testcases org.eclipse.stp.common.validator.test/conf/testcases/consistency org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl org.eclipse.stp.common.validator.test/conf/testcases/msv org.eclipse.stp.common.validator.test/conf/testcases/msv/sr org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard org.eclipse.stp.common.validator.test/src org.eclipse.stp.common.validator.test/src/java org.eclipse.stp.common.validator.test/src/java/org org.eclipse.stp.common.validator.test/src/java/org/eclipse org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test org.eclipse.stp.dosgi.editors org.eclipse.stp.dosgi.editors/META-INF org.eclipse.stp.dosgi.editors/schemas org.eclipse.stp.dosgi.editors/src org.eclipse.stp.dosgi.editors/src/org org.eclipse.stp.dosgi.editors/src/org/eclipse org.eclipse.stp.dosgi.editors/src/org/eclipse/stp org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors org.eclipse.stp.dosgi.editors.test org.eclipse.stp.dosgi.editors.test/META-INF org.eclipse.stp.dosgi.editors.test/src org.eclipse.stp.dosgi.editors.test/src/org org.eclipse.stp.dosgi.editors.test/src/org/eclipse org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors org.eclipse.stp.policy.common org.eclipse.stp.policy.common/META-INF org.eclipse.stp.policy.common/src org.eclipse.stp.policy.common/src/org org.eclipse.stp.policy.common/src/org/eclipse org.eclipse.stp.policy.common/src/org/eclipse/stp org.eclipse.stp.policy.common/src/org/eclipse/stp/policy org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors org.eclipse.stp.policy.common/src/org/eclipse/stp/xef org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/util org.eclipse.stp.policy.wtp.common org.eclipse.stp.policy.wtp.common/META-INF org.eclipse.stp.policy.wtp.common/src org.eclipse.stp.policy.wtp.common/src/java org.eclipse.stp.policy.wtp.common/src/java/org org.eclipse.stp.policy.wtp.common/src/java/org/eclipse org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/ui org.eclipse.stp.policy.wtp.common.test org.eclipse.stp.policy.wtp.common.test/META-INF org.eclipse.stp.policy.wtp.common.test/conf org.eclipse.stp.policy.wtp.common.test/conf/testcases org.eclipse.stp.policy.wtp.common.test/conf/testcases/sdx org.eclipse.stp.policy.wtp.common.test/conf/testcases/sdx/normalization org.eclipse.stp.policy.wtp.common.test/src org.eclipse.stp.policy.wtp.common.test/src/java org.eclipse.stp.policy.wtp.common.test/src/java/org org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common/test org.eclipse.stp.policy.wtp.editor org.eclipse.stp.policy.wtp.editor/META-INF org.eclipse.stp.policy.wtp.editor/conf org.eclipse.stp.policy.wtp.editor/conf/schemas org.eclipse.stp.policy.wtp.editor/icons org.eclipse.stp.policy.wtp.editor/src org.eclipse.stp.policy.wtp.editor/src/java org.eclipse.stp.policy.wtp.editor/src/java/org org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/figures org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/integration org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/preferences org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/wizards org.eclipse.stp.policy.wtp.generator org.eclipse.stp.policy.wtp.generator/META-INF org.eclipse.stp.policy.wtp.generator/src org.eclipse.stp.policy.wtp.generator/src/java org.eclipse.stp.policy.wtp.generator/src/java/org org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/templates org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/wizards org.eclipse.stp.policy.wtp.validation org.eclipse.stp.policy.wtp.validation/META-INF org.eclipse.stp.policy.wtp.validation/conf org.eclipse.stp.policy.wtp.validation/src org.eclipse.stp.policy.wtp.validation/src/java org.eclipse.stp.policy.wtp.validation/src/java/org org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/impl org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/ui org.eclipse.stp.xef org.eclipse.stp.xef/META-INF org.eclipse.stp.xef/icons org.eclipse.stp.xef/schema org.eclipse.stp.xef/src org.eclipse.stp.xef/src/org org.eclipse.stp.xef/src/org/eclipse org.eclipse.stp.xef/src/org/eclipse/stp org.eclipse.stp.xef/src/org/eclipse/stp/ui org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/help org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/policy org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/policy/editor org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema org.eclipse.stp.xef/src/org/eclipse/stp/xef org.eclipse.stp.xef/src/org/eclipse/stp/xef/util org.eclipse.stp.xef.test org.eclipse.stp.xef.test/META-INF org.eclipse.stp.xef.test/src org.eclipse.stp.xef.test/src/org org.eclipse.stp.xef.test/src/org/eclipse org.eclipse.stp.xef.test/src/org/eclipse/stp org.eclipse.stp.xef.test/src/org/eclipse/stp/ui org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/policy org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/policy/editor org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/schema org.eclipse.stp.xef.test/src/org/eclipse/stp/xef org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/tests org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/util project
|
- From: genie@xxxxxxxxxxx
- Date: Wed, 23 Sep 2009 13:35:46 -0400 (EDT)
- Delivered-to: stp-commits@eclipse.org
Author: ashakirin
Date: 2009-09-23 13:35:38 -0400 (Wed, 23 Sep 2009)
New Revision: 2933
Added:
org.eclipse.stp.policy/tags/3.6M2/babel/
org.eclipse.stp.policy/tags/3.6M2/build/
org.eclipse.stp.policy/tags/3.6M2/build/buckminster/
org.eclipse.stp.policy/tags/3.6M2/build/platform/
org.eclipse.stp.policy/tags/3.6M2/build/policy/
org.eclipse.stp.policy/tags/3.6M2/build/policy/build.xml
org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/
org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/.project
org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/build.properties
org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/feature.xml
org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.cquery
org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.rmap
org.eclipse.stp.policy/tags/3.6M2/build/policy/project.properties
org.eclipse.stp.policy/tags/3.6M2/build/scripts/
org.eclipse.stp.policy/tags/3.6M2/build/shared/
org.eclipse.stp.policy/tags/3.6M2/features/
org.eclipse.stp.policy/tags/3.6M2/features/.project
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/.project
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/build.properties
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/eclipse_update_120.jpg
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/epl-v10.html
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.properties
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.xml
org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/license.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRental.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRentalProvider.spdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/Library.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.spdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail1.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail2.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail3.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail4.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail5.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail6.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail7.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal1.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal2.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_1.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental2.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRentalProvider.spdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/Library.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/AllAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer__default.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer_default.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumer.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumerOperation.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureTspConsumerOperation.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/standardTspConsumer.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthenticationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthorizationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CompressionAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ConversationalBindingAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CorrelationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CustomValidationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/EncryptionAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ExtensionAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/MaxResponseTimeAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/PriorityAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SDXValidationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SignatureAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SubscriptionAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TrackingLevelAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransformationAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransportAssertions.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticatedSyncOperation.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizedSyncOperation.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_1.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_1.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_1.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_2.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/SyncOperation.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_1.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider.ppdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider_0.opdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/AllTests.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/ConsistencyValidatorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/GenericWSDLValidatorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/MultiSchemaValidatorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/SchemaTypeValidatorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/target/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ParticipantPolicy_21.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/SOPAssertions_21.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/XMLSchema.dtd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/datatypes.dtd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/documentation.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/emptyschema.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/log4j.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-secext-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-utility-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/partner-link.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/sop.validation.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ws-policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-jms.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-sdx.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-spdx.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/messages.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContext.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContextFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/MemoryReporter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/SimpleFileReporter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/ValidationMessage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/ValidatorCLI.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/BaseValidationObject.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IMessage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IReporter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationContext.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObject.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObjectFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/MessageTypeEnum.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectID.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectTypeEnum.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorTypeEnum.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ISchemaDocumentFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/IXMLSchemaCatalog.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaDocumentFactoryImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaTypeValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ValidatorFactoryDefImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/XMLCatalogImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/CompatibilityValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/ConsistencyValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/DOMHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/GenericValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaPrefixResolver.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MessageHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MultiSchemaValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SOPExtensibilityValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SopwareParticularityValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/URIConstants.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/XPathHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ConfigurationException.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ContextInitializationException.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/SOPValidationException.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformerTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1-result.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-xef1.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/service-descriptions.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/ws-policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/xmldsig-core-schema.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformer.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentSelectionDialog.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentsEditorForRI.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/RemoteServicesEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/ServiceDescriptionSchemaProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/plugin.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailCallback.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailEditorInput.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/ISchemaProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/ISchemaProviderExt.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/URLSchemaProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/XMLSnippet.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/util/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/xef/util/InputStreamHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/TransformationResult1.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/addAttributeResult.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/addElementResult.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/addElementSequence.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/insert_element.xsl
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/sdx/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/sdx/normalization/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/sdx/normalization/Library01.sdx
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/conf/testcases/testSource.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common/test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common/test/DOMProviderTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/src/java/org/eclipse/stp/policy/wtp/common/test/XSLProviderTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common.test/target/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/BaseException.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/DOMHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/DOMProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/DOMProviderBase.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/FileTemplate.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/FileUtils.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/Messages.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/NamespaceResolver.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/StringUtils.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/XPathHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/XSLProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/messages.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/ui/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/ui/EclipseUI.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.common/src/java/org/eclipse/stp/policy/wtp/common/utils/ui/ParameterValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/SOPAssertions_21.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/ws-policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/xml.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/schemas/xmldsig-core-schema.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/conf/transport.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/assertion.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/assertionchoice.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/assertionunion.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/cont-assertion.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/cont-operation.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/delete.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/opdx.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/polopt.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/icons/polreq.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/plugin.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/plugin.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/All.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/Assertion.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/Constants.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/ExactlyOne.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/Policy.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/PolicyComponent.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/PolicyComposite.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/PolicyContainer.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/PolicyReference.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/AllImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/AssertionImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/EditorDOMHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/ExactlyOneImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/PolicyCompositeImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/PolicyContainerImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/PolicyImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/PolicyProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/PolicyReferenceImpl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/model/impl/SOPConstants.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/Activator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/Logger.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/Messages.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/OperationPolicyMultiPageEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/PolicyMultiPageEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/AssertionEditPart.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/EditPartNavigationHandlerUtil.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/OperationPolicyEditPartFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/PolicyCompositeEditPart.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/PolicyContainerEditPart.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/editparts/PolicyEditPart.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/figures/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/figures/CollapsibleFigure.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/figures/ExpandFigure.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/figures/TopLineAbstractBackground.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/integration/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/integration/EditPolicyAssertionDetailCallback.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/integration/PolicyDetailEditorInput.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/integration/XefOpenExternalEditorHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/messages.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/AllModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/AssertionModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/ExactlyOneModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/NestedPolicyModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/PolicyCompositeModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/PolicyContainerModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/PolicyModel.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/AddAllAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/AddAssertionAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/AddExactlyOneAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/AddNestedPolicyAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/actions/OperationPolicyDeleteAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/AddAllCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/AddAssertionCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/AddExactlyOneCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/AddNestedPolicyCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/DeleteAssertionCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/model/commands/DeletePolicyCompositeCommand.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/preferences/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/preferences/GeneralPreferences.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/preferences/ProjectPropertiesPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/preferences/ProjectSettings.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections/AssertionSection.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections/PolicyCompositeSection.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections/PolicySection.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/properties/sections/SectionHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/DragOperations.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/EditorDropTarget.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/ExistingWindowProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/IWorkbenchWindowProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/util/WorkbenchWindowDropTarget.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/wizards/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/wizards/OperationPolicyNewWizard.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.editor/src/java/org/eclipse/stp/policy/wtp/editor/wizards/OperationPolicyWizardPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/OpdxGenerator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/templates/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/templates/OperationPolicyTemplate.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/wizards/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/wizards/Messages.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/wizards/OperationPolicyGenerationRunnable.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/java/org/eclipse/stp/policy/wtp/generator/wizards/messages.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.generator/src/test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/conf/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/conf/logging.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/plugin.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/plugin.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/Activator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/Logger.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/impl/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/impl/IDEProblemsReporter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/impl/IDEValidationContext.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/impl/IDEValidationContextFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/CommonValidationAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/CompatibilityCheckAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/ConsistencyCheckAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/FileActionDelegate.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/IValidationAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/ImportCheckAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/ValidationAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/ValidationActionDelegate.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/popup/actions/ValidationWithConsistencyActionDelegate.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/ui/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/ui/SchemaEntityDecl.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.wtp.validation/src/java/org/eclipse/stp/policy/wtp/validation/ui/UIControlValidator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_i18n_policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_any.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_any2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_any_lax.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_any_readonly.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_audit.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_audit_modified.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_category.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_compression.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_contributions.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_corba.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_depa.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_depb.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_depends.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_basic.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_default.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_extended.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_fixed.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_numeric.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_el_readonly.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_http.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_https.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_importee.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_importee_2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_importer.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_importer_2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_logging.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_logging2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_multi_policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_not_unique.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_recursion.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_reliable.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_routing.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_secure.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_secure2.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_secure3.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_soap.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_unique.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/example_test_ws_policy.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/fragment.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/XEFEditorURIResolverExtensionTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/CombinedEditorAndSchemaDialogTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/EditorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/QNameFieldEditorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/ReverseTextFilter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/SchemaDialogTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/SettingsDialog.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/SettingsTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/TestSchemaSelector.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/TestXMLTransformer.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XEFEditMasterDetailsBlockTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XMLEditDialogTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XMLProviderEditorInputSettingsTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XMLProviderEditorInputTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XMLXPathView.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/editor/XefDetailsPageTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/policy/editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/policy/editor/PolicyDetailEditorWrapperTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/schema/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/schema/SchemaElementTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/ui/xef/schema/SchemaRegistryTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/ExtSchemaProviderDelegateTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/FilterSchemaProviderTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/MultiXMLProviderTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/QNameComparatorTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/SchemaProviderFilterWrapperTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/XMLUtilTest.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/tests/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/tests/AllTests.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/util/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/util/FileTreeList.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/util/TestProject.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/src/org/eclipse/stp/xef/util/TestUtils.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/test.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/test_choice_in_seq.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/test_nested_choice_seq.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef.test/test_seq_in_choice.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/.classpath
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/.project
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/META-INF/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/META-INF/MANIFEST.MF
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/about.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/build.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/MDhorizontal.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/MDvertical.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/default.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/default_off.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/help.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/refresh.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/th_automatic.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/th_horizontal.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/th_single.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/th_vertical.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_edit.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_group.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_instance.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_instance_grey.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_instance_plus.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_snippet.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_snippet_grey.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_subelement.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/icons/xef_subelement_plus.gif
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/plugin.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/plugin.xml
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/schema/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/schema/xef.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/schema/xef_extensions.exsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/schema/xefgui.xsd
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/AbstractResources.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/PluginResources.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/PluginResources.properties
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/XEFEditorURIResolverExtension.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/XefPlugin.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/AbstractFieldEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/AddElementAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/BooleanCheckControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/BooleanControlAcccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/CachedXefExtensionRegistry.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/ChangePrefixAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/ComboControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/ControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/DeleteElementAction.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/FieldEditorRegistry.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/ISchemaSelector.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/IXefDetailsPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/MasterContentProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/MasterLabelProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/PasswordControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/PlainTextFilter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/QNameControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/QNameFieldEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SchemaSelectionDialog.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SelectionCategory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/Setting.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/ShadowEntry.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SimpleHashFilter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SnippetDetailsPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SnippetRepresentingXMLInstanceElements.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/SpinnerControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/TextControlAccessor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/TextFieldEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/TextFieldVerifyListener.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/TextFilter.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XMLEditDialog.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XMLEditPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XMLProviderEditorInput.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefDetailsPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefEditMasterDetailsBlock.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefEditPage.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefEditor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefEditorContributor.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/XefExtensionRegistry.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/editor/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/help/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/help/XefHelpView.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/help/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/policy/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/policy/editor/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/policy/editor/PolicyDetailEditorInputWrapper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/AbstractAnnotatedElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/AnnotatedElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/AnyElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/IContextProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/SchemaAttribute.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/SchemaElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/SchemaRegistry.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/SchemaValueComponent.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/SchemaValueType.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/ValueType.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/WidgetStyle.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/ui/xef/schema/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/DocumentNamespaceContext.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/ExtSchemaProviderDelegate.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/FilterSchemaProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/IShadowProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/ITextProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/IXMLProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/IXMLTransformer.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/MultiXMLProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/QNameComparator.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/ReadOnlyXMLInstanceElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/SchemaProviderFilterWrapper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/SimpleSchemaProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/ValidationProblem.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/XMLInstanceElement.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/XMLModelFactory.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/XMLUtil.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/XPathXMLProvider.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/XefConstants.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/util/
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/util/QNameHelper.java
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/org/eclipse/stp/xef/util/package.html
org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.xef/src/overview.html
org.eclipse.stp.policy/tags/3.6M2/project/
org.eclipse.stp.policy/tags/3.6M2/project/policy-proposal.html
Log:
3.6M2 build
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/build.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/build.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/build.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="Policy Project Build" basedir="." default="help">
+ <import file="../shared/build.xml" />
+</project>
+
Property changes on: org.eclipse.stp.policy/tags/3.6M2/build/policy/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.policy.build</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,2 @@
+bin.includes = feature.xml
+category
\ No newline at end of file
Property changes on: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/feature.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/feature.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/feature.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.stp.policy.build"
+ label="Policy Project Build Feature"
+ version="1.0.1.qualifier"
+ provider-name="Eclipse.org">
+
+ <description url="http://www.example.com/description">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright url="http://www.example.com/copyright">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license url="http://www.example.com/license">
+ [Enter License Description here.]
+ </license>
+
+ <includes
+ id="org.eclipse.stp.policy.feature"
+ version="0.0.0"/>
+
+</feature>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/build/policy/org.eclipse.stp.policy.build/feature.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.cquery
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.cquery (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.cquery 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="policy.rmap">
+ <cq:rootRequest name="org.eclipse.stp.policy.build"/>
+ <cq:advisorNode namePattern="org\.eclipse\.stp\.policy(\..*)?" useTargetPlatform="false"/>
+</cq:componentQuery>
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.rmap
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.rmap (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/policy.rmap 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<rmap
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
+ xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
+
+ <!-- Where to find the build system. Look for artifacts in the local
+ directory specified by the Java property "project.build" and
+ if not found there, then check it out from the SVN trunk.
+
+ Required Properties:
+ project.build = Local directory where the build system
+ has been checked out. Defined in the
+ build.properties file
+ buckminster.component = Name of actual build component, defined
+ as an 'internal' property by Buckminster
+ -->
+
+ <searchPath name="project.build">
+ <provider readerType="local" componentTypes="eclipse.feature" mutable="true" source="false">
+ <uri format="{0}/{1}">
+ <bc:propertyRef key="project.build" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ <provider readerType="svn" componentTypes="eclipse.feature" mutable="true" source="false">
+ <uri format="http://dev.eclipse.org/svnroot/stp/{0}/{1}/{2}/build/{3}">
+ <bc:propertyRef key="project.repo" />
+ <bc:propertyRef key="project.component" />
+ <bc:propertyRef key="project.tag" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ </searchPath>
+
+ <!-- Where to find the project features. Look for artifacts in the local
+ directory specified by the Java property "project.source" and
+ if not found there, then check it out from the SVN trunk.
+
+ Required Properties:
+ project.source = Local directory where the source
+ has been checked out. Defined in the
+ build.properties file
+ buckminster.component = Name of actual build component, defined
+ as an 'internal' property by Buckminster
+ -->
+
+ <searchPath name="policy.features">
+ <provider readerType="local" componentTypes="osgi.bundle,eclipse.feature" mutable="true" source="false">
+ <uri format="{0}/features/{1}">
+ <bc:propertyRef key="project.source" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ <provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature" mutable="true" source="true">
+ <uri format="http://dev.eclipse.org/svnroot/stp/{0}/{1}/{2}/features/{3}">
+ <bc:propertyRef key="project.repo" />
+ <bc:propertyRef key="project.component" />
+ <bc:propertyRef key="project.tag" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ </searchPath>
+
+ <!-- Where to find the project plugins. Look for artifacts in the local
+ directory specified by the Java property "project.source" and
+ if not found there, then check it out from the SVN trunk.
+
+ Required Properties:
+ project.source = Local directory where the source
+ has been checked out. Defined in the
+ build.properties file
+ buckminster.component = Name of actual build component, defined
+ as an 'internal' property by Buckminster
+ -->
+
+ <searchPath name="policy.plugins">
+ <provider readerType="local" componentTypes="osgi.bundle" mutable="true" source="false">
+ <uri format="{0}/{1}">
+ <bc:propertyRef key="project.source" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ <provider readerType="svn" componentTypes="osgi.bundle" mutable="true" source="true">
+ <uri format="http://dev.eclipse.org/svnroot/stp/{0}/{1}/{2}/{3}">
+ <bc:propertyRef key="project.repo" />
+ <bc:propertyRef key="project.component" />
+ <bc:propertyRef key="project.tag" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ </searchPath>
+
+ <!-- Where to find the project samples. Look for artifacts in the local
+ directory specified by the Java property "project.source" and
+ if not found there, then check it out from the SVN trunk.
+
+ Required Properties:
+ project.source = Local directory where the source
+ has been checked out. Defined in the
+ build.properties file
+ buckminster.component = Name of actual build component, defined
+ as an 'internal' property by Buckminster
+ -->
+
+ <searchPath name="policy.samples">
+ <provider readerType="local" componentTypes="osgi.bundle" mutable="true" source="false">
+ <uri format="{0}/samples/{1}">
+ <bc:propertyRef key="project.source" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ <provider readerType="svn" componentTypes="osgi.bundle" mutable="true" source="true">
+ <uri format="http://dev.eclipse.org/svnroot/stp/{0}/{1}/{2}/samples/{3}">
+ <bc:propertyRef key="project.repo" />
+ <bc:propertyRef key="project.component" />
+ <bc:propertyRef key="project.tag" />
+ <bc:propertyRef key="buckminster.component" />
+ </uri>
+ </provider>
+ </searchPath>
+
+ <searchPath name="orbit">
+ <provider readerType="eclipse.import" componentTypes="osgi.bundle" mutable="false" source="false">
+ <uri format="http://download.eclipse.org/tools/orbit/downloads/drops/R20090529135407/orbitBundles-R20090529135407.map" />
+ </provider>
+ </searchPath>
+
+ <!-- Project specific search paths -->
+ <!-- ordering is important here -->
+ <locator searchPathRef="project.build" pattern="^.*\.build" />
+
+ <locator searchPathRef="policy.features" pattern="^org\.eclipse\.stp\.policy(\..*)?feature" />
+
+ <!-- Samples match rules must come before the Plugins match rule as they are less general -->
+ <locator searchPathRef="policy.samples" pattern="^org\.eclipse\.stp\.policy\.examples\.jdt(\..*)?" />
+ <locator searchPathRef="policy.samples" pattern="^org\.eclipse\.stp\.policy\.examples(\..*)?" />
+ <locator searchPathRef="policy.samples" pattern="^org\.eclipse\.stp\.policy\.samples(\..*)?" />
+
+ <locator searchPathRef="policy.plugins" pattern="^org\.eclipse\.stp\.policy(\..*)?" />
+ <locator searchPathRef="policy.plugins" pattern="^org\.eclipse\.stp\.xef(\..*)?" />
+ <locator searchPathRef="policy.plugins" pattern="^org\.eclipse\.stp\.common\.validator" />
+
+ <locator searchPathRef="orbit" pattern=".*" />
+
+</rmap>
Added: org.eclipse.stp.policy/tags/3.6M2/build/policy/project.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/build/policy/project.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/build/policy/project.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,18 @@
+## Project Specific Properties
+#
+# project.root is where the project has been checked out.
+# It defaults to ../.. because the assumption is you have
+# checked everything out, cd'ed into the build/buckminster
+# directory, and called ant build from there :)
+project.name=policy
+project.cquery.file=${basedir}/${project.name}.cquery
+project.root=../../
+project.repo=org.eclipse.stp.policy-editor
+project.component=org.eclipse.stp.policy
+project.tag=trunk
+project.source=${project.root}
+project.build=${project.source}/build/${project.name}
+
+project.site.archive=${base.directory}
+project.toplevel.feature=org.eclipse.stp.policy.build
+project.committer.site=/shared/stp/committers/policy
Property changes on: org.eclipse.stp.policy/tags/3.6M2/build/policy/project.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>features</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.policy.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,5 @@
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties,\
+ epl-v10.html,\
+ eclipse_update_120.jpg
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/eclipse_update_120.jpg
===================================================================
(Binary files differ)
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/eclipse_update_120.jpg
___________________________________________________________________
Name: svn:mime-type
+ image/jpeg
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/epl-v10.html
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/epl-v10.html (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/epl-v10.html 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,328 @@
+<html xmlns:o="urn:schemas-microsoft-com:office:office"
+xmlns:w="urn:schemas-microsoft-com:office:word"
+xmlns="http://www.w3.org/TR/REC-html40">
+
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
+<meta name=ProgId content=Word.Document>
+<meta name=Generator content="Microsoft Word 9">
+<meta name=Originator content="Microsoft Word 9">
+<link rel=File-List
+href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
+<title>Eclipse Public License - Version 1.0</title>
+<!--[if gte mso 9]><xml>
+ <o:DocumentProperties>
+ <o:Revision>2</o:Revision>
+ <o:TotalTime>3</o:TotalTime>
+ <o:Created>2004-03-05T23:03:00Z</o:Created>
+ <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
+ <o:Pages>4</o:Pages>
+ <o:Words>1626</o:Words>
+ <o:Characters>9270</o:Characters>
+ <o:Lines>77</o:Lines>
+ <o:Paragraphs>18</o:Paragraphs>
+ <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
+ <o:Version>9.4402</o:Version>
+ </o:DocumentProperties>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:WordDocument>
+ <w:TrackRevisions/>
+ </w:WordDocument>
+</xml><![endif]-->
+<style>
+<!--
+ /* Font Definitions */
+@font-face
+ {font-family:Tahoma;
+ panose-1:2 11 6 4 3 5 4 4 2 4;
+ mso-font-charset:0;
+ mso-generic-font-family:swiss;
+ mso-font-pitch:variable;
+ mso-font-signature:553679495 -2147483648 8 0 66047 0;}
+ /* Style Definitions */
+p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {mso-style-parent:"";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p
+ {margin-right:0in;
+ mso-margin-top-alt:auto;
+ mso-margin-bottom-alt:auto;
+ margin-left:0in;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p.BalloonText, li.BalloonText, div.BalloonText
+ {mso-style-name:"Balloon Text";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:8.0pt;
+ font-family:Tahoma;
+ mso-fareast-font-family:"Times New Roman";}
+@page Section1
+ {size:8.5in 11.0in;
+ margin:1.0in 1.25in 1.0in 1.25in;
+ mso-header-margin:.5in;
+ mso-footer-margin:.5in;
+ mso-paper-source:0;}
+div.Section1
+ {page:Section1;}
+-->
+</style>
+</head>
+
+<body lang=EN-US style='tab-interval:.5in'>
+
+<div class=Section1>
+
+<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
+</p>
+
+<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
+THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE,
+REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
+OF THIS AGREEMENT.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
+
+<p><span style='font-size:10.0pt'>"Contribution" means:</span> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+in the case of the initial Contributor, the initial code and documentation
+distributed under this Agreement, and<br clear=left>
+b) in the case of each subsequent Contributor:</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
+changes to the Program, and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
+additions to the Program;</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
+such changes and/or additions to the Program originate from and are distributed
+by that particular Contributor. A Contribution 'originates' from a Contributor
+if it was added to the Program by such Contributor itself or anyone acting on
+such Contributor's behalf. Contributions do not include additions to the
+Program which: (i) are separate modules of software distributed in conjunction
+with the Program under their own license agreement, and (ii) are not derivative
+works of the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>"Contributor" means any person or
+entity that distributes the Program.</span> </p>
+
+<p><span style='font-size:10.0pt'>"Licensed Patents " mean patent
+claims licensable by a Contributor which are necessarily infringed by the use
+or sale of its Contribution alone or when combined with the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>"Program" means the Contributions
+distributed in accordance with this Agreement.</span> </p>
+
+<p><span style='font-size:10.0pt'>"Recipient" means anyone who
+receives the Program under this Agreement, including all Contributors.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+Subject to the terms of this Agreement, each Contributor hereby grants Recipient
+a non-exclusive, worldwide, royalty-free copyright license to<span
+style='color:red'> </span>reproduce, prepare derivative works of, publicly
+display, publicly perform, distribute and sublicense the Contribution of such
+Contributor, if any, and such derivative works, in source code and object code
+form.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
+Subject to the terms of this Agreement, each Contributor hereby grants
+Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
+patent license under Licensed Patents to make, use, sell, offer to sell, import
+and otherwise transfer the Contribution of such Contributor, if any, in source
+code and object code form. This patent license shall apply to the combination
+of the Contribution and the Program if, at the time the Contribution is added
+by the Contributor, such addition of the Contribution causes such combination
+to be covered by the Licensed Patents. The patent license shall not apply to
+any other combinations which include the Contribution. No hardware per se is
+licensed hereunder. </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
+Recipient understands that although each Contributor grants the licenses to its
+Contributions set forth herein, no assurances are provided by any Contributor
+that the Program does not infringe the patent or other intellectual property
+rights of any other entity. Each Contributor disclaims any liability to Recipient
+for claims brought by any other entity based on infringement of intellectual
+property rights or otherwise. As a condition to exercising the rights and
+licenses granted hereunder, each Recipient hereby assumes sole responsibility
+to secure any other intellectual property rights needed, if any. For example,
+if a third party patent license is required to allow Recipient to distribute
+the Program, it is Recipient's responsibility to acquire that license before
+distributing the Program.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
+Each Contributor represents that to its knowledge it has sufficient copyright
+rights in its Contribution, if any, to grant the copyright license set forth in
+this Agreement. </span></p>
+
+<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
+
+<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
+Program in object code form under its own license agreement, provided that:</span>
+</p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+it complies with the terms and conditions of this Agreement; and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
+its license agreement:</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
+effectively disclaims on behalf of all Contributors all warranties and
+conditions, express and implied, including warranties or conditions of title
+and non-infringement, and implied warranties or conditions of merchantability
+and fitness for a particular purpose; </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
+effectively excludes on behalf of all Contributors all liability for damages,
+including direct, indirect, special, incidental and consequential damages, such
+as lost profits; </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
+states that any provisions which differ from this Agreement are offered by that
+Contributor alone and not by any other party; and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
+states that source code for the Program is available from such Contributor, and
+informs licensees how to obtain it in a reasonable manner on or through a
+medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
+
+<p><span style='font-size:10.0pt'>When the Program is made available in source
+code form:</span> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+it must be made available under this Agreement; and </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
+copy of this Agreement must be included with each copy of the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
+copyright notices contained within the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
+originator of its Contribution, if any, in a manner that reasonably allows
+subsequent Recipients to identify the originator of the Contribution. </span></p>
+
+<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
+
+<p><span style='font-size:10.0pt'>Commercial distributors of software may
+accept certain responsibilities with respect to end users, business partners
+and the like. While this license is intended to facilitate the commercial use
+of the Program, the Contributor who includes the Program in a commercial
+product offering should do so in a manner which does not create potential
+liability for other Contributors. Therefore, if a Contributor includes the
+Program in a commercial product offering, such Contributor ("Commercial
+Contributor") hereby agrees to defend and indemnify every other
+Contributor ("Indemnified Contributor") against any losses, damages and
+costs (collectively "Losses") arising from claims, lawsuits and other
+legal actions brought by a third party against the Indemnified Contributor to
+the extent caused by the acts or omissions of such Commercial Contributor in
+connection with its distribution of the Program in a commercial product
+offering. The obligations in this section do not apply to any claims or Losses
+relating to any actual or alleged intellectual property infringement. In order
+to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+Contributor in writing of such claim, and b) allow the Commercial Contributor
+to control, and cooperate with the Commercial Contributor in, the defense and
+any related settlement negotiations. The Indemnified Contributor may participate
+in any such claim at its own expense.</span> </p>
+
+<p><span style='font-size:10.0pt'>For example, a Contributor might include the
+Program in a commercial product offering, Product X. That Contributor is then a
+Commercial Contributor. If that Commercial Contributor then makes performance
+claims, or offers warranties related to Product X, those performance claims and
+warranties are such Commercial Contributor's responsibility alone. Under this
+section, the Commercial Contributor would have to defend claims against the
+other Contributors related to those performance claims and warranties, and if a
+court requires any other Contributor to pay any damages as a result, the
+Commercial Contributor must pay those damages.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
+
+<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
+WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
+responsible for determining the appropriateness of using and distributing the
+Program and assumes all risks associated with its exercise of rights under this
+Agreement , including but not limited to the risks and costs of program errors,
+compliance with applicable laws, damage to or loss of data, programs or
+equipment, and unavailability or interruption of operations. </span></p>
+
+<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
+
+<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
+THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
+
+<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
+or unenforceable under applicable law, it shall not affect the validity or
+enforceability of the remainder of the terms of this Agreement, and without
+further action by the parties hereto, such provision shall be reformed to the
+minimum extent necessary to make such provision valid and enforceable.</span> </p>
+
+<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
+against any entity (including a cross-claim or counterclaim in a lawsuit)
+alleging that the Program itself (excluding combinations of the Program with
+other software or hardware) infringes such Recipient's patent(s), then such
+Recipient's rights granted under Section 2(b) shall terminate as of the date
+such litigation is filed. </span></p>
+
+<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
+shall terminate if it fails to comply with any of the material terms or
+conditions of this Agreement and does not cure such failure in a reasonable
+period of time after becoming aware of such noncompliance. If all Recipient's
+rights under this Agreement terminate, Recipient agrees to cease use and
+distribution of the Program as soon as reasonably practicable. However,
+Recipient's obligations under this Agreement and any licenses granted by
+Recipient relating to the Program shall continue and survive. </span></p>
+
+<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
+copies of this Agreement, but in order to avoid inconsistency the Agreement is
+copyrighted and may only be modified in the following manner. The Agreement
+Steward reserves the right to publish new versions (including revisions) of
+this Agreement from time to time. No one other than the Agreement Steward has
+the right to modify this Agreement. The Eclipse Foundation is the initial
+Agreement Steward. The Eclipse Foundation may assign the responsibility to
+serve as the Agreement Steward to a suitable separate entity. Each new version
+of the Agreement will be given a distinguishing version number. The Program
+(including Contributions) may always be distributed subject to the version of
+the Agreement under which it was received. In addition, after a new version of
+the Agreement is published, Contributor may elect to distribute the Program
+(including its Contributions) under the new version. Except as expressly stated
+in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
+the intellectual property of any Contributor under this Agreement, whether
+expressly, by implication, estoppel or otherwise. All rights in the Program not
+expressly granted under this Agreement are reserved.</span> </p>
+
+<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
+State of New York and the intellectual property laws of the United States of
+America. No party to this Agreement will bring a legal action under this
+Agreement more than one year after the cause of action arose. Each party waives
+its rights to a jury trial in any resulting litigation.</span> </p>
+
+<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
+
+</div>
+
+</body>
+
+</html>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/epl-v10.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,143 @@
+###############################################################################
+# Copyright (c) 2007 SOPERA GmbH
+# 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:
+# SOPERA GmbH - initial API and implementation
+###############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+
+# "providerName" property - name of the company that provides the feature
+providerName=Eclipse.org
+
+# "updateSiteName" property - label for the update site
+updateSiteName=The Eclipse SOA Tools Platform (STP) Project update site
+
+# "description" property - description of the feature
+description=Policy Editor
+
+# "copyright" property - text of the "Feature Update Copyright"
+copyright=\
+ Copyright (c) 2007 SOPERA GmbH\n\
+ All rights reserved. This program and the accompanying materials\n\
+ are made available under the terms of the Eclipse Public License v1.0\n\
+ which accompanies this distribution, and is available at\n\
+ http://www.eclipse.org/legal/epl-v10.html\n\
+ \n\
+ Contributors:\n\
+ SOPERA GmbH - initial API and implementation\n\
+
+################ end of copyright property ####################################
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=\
+ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
+March 17, 2005\n\
+\n\
+Usage Of Content\n\
+\n\
+THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
+OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
+USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
+AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
+NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
+AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
+AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
+OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
+TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
+OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
+BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
+\n\
+Applicable Licenses\n\
+\n\
+Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
+is provided to you under the terms and conditions of the Eclipse Public\n\
+License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
+Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
+For purposes of the EPL, "Program" will mean the Content.\n\
+\n\
+Content includes, but is not limited to, source code, object code,\n\
+documentation and other files maintained in the Eclipse.org CVS\n\
+repository ("Repository") in CVS modules ("Modules") and made available\n\
+as downloadable archives ("Downloads").\n\
+\n\
+ - Content may be structured and packaged into modules to facilitate delivering,\n\
+ extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
+ plug-in fragments ("Fragments"), and features ("Features").\n\
+ - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
+ in a directory named "plugins".\n\
+ - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
+ Each Feature may be packaged as a sub-directory in a directory named "features".\n\
+ Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
+ numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
+ - Features may also include other Features ("Included Features"). Within a Feature, files\n\
+ named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
+\n\
+Features may also include other Features ("Included Features"). Files named\n\
+"feature.xml" may contain a list of the names and version numbers of\n\
+Included Features.\n\
+\n\
+The terms and conditions governing Plug-ins and Fragments should be\n\
+contained in files named "about.html" ("Abouts"). The terms and\n\
+conditions governing Features and Included Features should be contained\n\
+in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
+Licenses may be located in any directory of a Download or Module\n\
+including, but not limited to the following locations:\n\
+\n\
+ - The top-level (root) directory\n\
+ - Plug-in and Fragment directories\n\
+ - Inside Plug-ins and Fragments packaged as JARs\n\
+ - Sub-directories of the directory named "src" of certain Plug-ins\n\
+ - Feature directories\n\
+\n\
+Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
+Eclipse Update Manager, you must agree to a license ("Feature Update\n\
+License") during the installation process. If the Feature contains\n\
+Included Features, the Feature Update License should either provide you\n\
+with the terms and conditions governing the Included Features or inform\n\
+you where you can locate them. Feature Update Licenses may be found in\n\
+the "license" property of files named "feature.properties". Such Abouts,\n\
+Feature Licenses and Feature Update Licenses contain the terms and\n\
+conditions (or references to such terms and conditions) that govern your\n\
+use of the associated Content in that directory.\n\
+\n\
+THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
+TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
+SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
+\n\
+ - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
+ - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
+ - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
+ - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
+ - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
+ - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
+\n\
+IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
+TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
+is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
+govern that particular Content.\n\
+\n\
+Cryptography\n\
+\n\
+Content may contain encryption software. The country in which you are\n\
+currently may have restrictions on the import, possession, and use,\n\
+and/or re-export to another country, of encryption software. BEFORE\n\
+using any encryption software, please check the country's laws,\n\
+regulations and policies concerning the import, possession, or use,\n\
+and re-export of encryption software, to see if this is permitted.\n\
+\n\
+Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
+########### end of license property ##########################################
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.stp.policy.feature"
+ label="SOA Policy Editor Feature"
+ version="1.1.0.qualifier"
+ provider-name="%providerName">
+
+ <description url="http://www.eclipse.org/stp/policy/">
+ %description
+ </description>
+
+ <copyright url="http://www.eclipse.org/stp/policy/">
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <url>
+ <update label="%updateSiteName" url="http://download.eclipse.org/stp/updates/"/>
+ </url>
+
+ <requires>
+ <import plugin="org.apache.xerces"/>
+ <import plugin="org.apache.log4j"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.wst.xml.core"/>
+ <import plugin="javax.wsdl"/>
+ <import plugin="org.eclipse.ui.ide"/>
+ <import plugin="org.eclipse.jdt.core"/>
+ <import plugin="org.eclipse.jface.text"/>
+ <import plugin="org.eclipse.ui.editors"/>
+ <import plugin="org.eclipse.ui.workbench.texteditor"/>
+ <import plugin="org.eclipse.wst.sse.core"/>
+ <import plugin="org.eclipse.wst.wsdl"/>
+ <import plugin="org.eclipse.wst.wsdl.ui"/>
+ <import plugin="org.eclipse.wst.xsd.ui"/>
+ <import plugin="org.eclipse.ui.views.properties.tabbed"/>
+ <import plugin="org.eclipse.gef"/>
+ <import plugin="org.eclipse.xsd"/>
+ <import plugin="org.eclipse.wst.sse.ui"/>
+ <import plugin="org.eclipse.wst.common.ui"/>
+ <import plugin="org.eclipse.wst.xml.ui"/>
+ </requires>
+
+ <plugin
+ id="org.eclipse.stp.common.validator"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.policy.common"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.policy.wtp.common"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.policy.wtp.editor"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.policy.wtp.generator"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.policy.wtp.validation"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.stp.xef"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jdom"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/feature.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/license.html
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/license.html (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/license.html 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,93 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
+<!-- saved from url=(0044)http://www.eclipse.org/legal/epl/notice.html -->
+<HTML><HEAD><TITLE>Eclipse.org Software User Agreement</TITLE>
+<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
+<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
+<BODY lang=EN-US vLink=purple link=blue>
+<H2>Eclipse Foundation Software User Agreement</H2>
+<P>January 28, 2005</P>
+<H3>Usage Of Content</H3>
+<P>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION
+AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT"). USE OF
+THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE
+TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED
+BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED
+BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE
+AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE
+TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS OF ANY
+APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU
+MAY NOT USE THE CONTENT.</P>
+<H3>Applicable Licenses</H3>
+<P>Unless otherwise indicated, all Content made available by the Eclipse
+Foundation is provided to you under the terms and conditions of the Eclipse
+Public License Version 1.0 ("EPL"). A copy of the EPL is provided with this
+Content and is also available at <A
+href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+<P>Content includes, but is not limited to, source code, object code,
+documentation and other files maintained in the Eclipse.org CVS repository
+("Repository") in CVS modules ("Modules") and made available as downloadable
+archives ("Downloads").</P>
+<P>Content may be apportioned into plug-ins ("Plug-ins"), plug-in fragments
+("Fragments"), and features ("Features"). A Feature is a bundle of one or more
+Plug-ins and/or Fragments and associated material. Files named "feature.xml" may
+contain a list of the names and version numbers of the Plug-ins and/or Fragments
+associated with a Feature. Plug-ins and Fragments are located in directories
+named "plugins" and Features are located in directories named "features".</P>
+<P>Features may also include other Features ("Included Features"). Files named
+"feature.xml" may contain a list of the names and version numbers of Included
+Features.</P>
+<P>The terms and conditions governing Plug-ins and Fragments should be contained
+in files named "about.html" ("Abouts"). The terms and conditions governing
+Features and Included Features should be contained in files named "license.html"
+("Feature Licenses"). Abouts and Feature Licenses may be located in any
+directory of a Download or Module including, but not limited to the following
+locations:</P>
+<UL>
+ <LI>The top-level (root) directory
+ <LI>Plug-in and Fragment directories
+ <LI>Subdirectories of the directory named "src" of certain Plug-ins
+ <LI>Feature directories </LI></UL>
+<P>Note: if a Feature made available by the Eclipse Foundation is installed
+using the Eclipse Update Manager, you must agree to a license ("Feature Update
+License") during the installation process. If the Feature contains Included
+Features, the Feature Update License should either provide you with the terms
+and conditions governing the Included Features or inform you where you can
+locate them. Feature Update Licenses may be found in the "license" property of
+files named "feature.properties". Such Abouts, Feature Licenses and Feature
+Update Licenses contain the terms and conditions (or references to such terms
+and conditions) that govern your use of the associated Content in that
+directory.</P>
+<P>THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL
+OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</P>
+<UL>
+ <LI>Common Public License Version 1.0 (available at <A
+ href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</A>)
+
+ <LI>Apache Software License 1.1 (available at <A
+ href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</A>)
+
+ <LI>Apache Software License 2.0 (available at <A
+ href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</A>)
+
+ <LI>IBM Public License 1.0 (available at <A
+ href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</A>)
+
+ <LI>Metro Link Public License 1.00 (available at <A
+ href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</A>)
+
+ <LI>Mozilla Public License Version 1.1 (available at <A
+ href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</A>)
+ </LI></UL>
+<P>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR
+TO USE OF THE CONTENT. If no About, Feature License or Feature Update License is
+provided, please contact the Eclipse Foundation to determine what terms and
+conditions govern that particular Content.</P>
+<H3>Cryptography</H3>
+<P>Content may contain encryption software. The country in which you are
+currently may have restrictions on the import, possession, and use, and/or
+re-export to another country, of encryption software. BEFORE using any
+encryption software, please check the country's laws, regulations and policies
+concerning the import, possession, or use, and re-export of encryption software,
+to see if this is permitted.</P></BODY></HTML>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/features/org.eclipse.stp.policy.feature/license.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.classpath
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.classpath (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.classpath 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="src" path="src/java"/>
+ <classpathentry including="conf/*" kind="src" path=""/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.common.validator</name>
+ <comment>Service Validation Module</comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand> </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/META-INF/MANIFEST.MF
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/META-INF/MANIFEST.MF (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/META-INF/MANIFEST.MF 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Policy Validation Framework
+Bundle-SymbolicName: org.eclipse.stp.common.validator
+Bundle-Version: 1.0.0.qualifier
+Require-Bundle: org.apache.xerces,
+ org.apache.log4j,
+ javax.wsdl;bundle-version="[1.5.0,1.6.0)"
+Export-Package: org.eclipse.stp.common.validator.base,
+ org.eclipse.stp.common.validator.core,
+ org.eclipse.stp.common.validator.core.impl,
+ org.eclipse.stp.common.validator.core.impl.service,
+ org.eclipse.stp.common.validator.exception
+Bundle-Vendor: Eclipse
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/about.html
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/about.html (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/about.html 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2009</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/about.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,12 @@
+bin.includes = META-INF/,\
+ .,\
+ conf/,\
+ about.html
+
+src.includes = src/java/,\
+ META-INF/,\
+ about.html
+
+source.. = src/java/
+
+output.. = target/classes/
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ParticipantPolicy_21.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ParticipantPolicy_21.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ParticipantPolicy_21.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ targetNamespace="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified">
+
+ <xs:import namespace="http://www.w3.org/2006/07/ws-policy"
+ schemaLocation="./ws-policy.xsd" />
+
+ <xs:element name="ParticipantPolicy" type="ParticipantPolicyType">
+ <xs:annotation>
+ <xs:documentation>Root element</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="ParticipantPolicyType">
+ <xs:sequence>
+ <xs:element name="DefaultOperation" type="DefaultOperationType" minOccurs="0"/>
+ <xs:element name="Operation" type="NamedOperationType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="service" type="ServiceIdType"/>
+ <xs:attribute name="id" type="xs:anyURI"/>
+ <xs:attribute name="version" type="xs:string" use="optional"/>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
+ <xs:attribute name="serviceLocation" type="xs:string" use="optional"/>
+ <xs:attribute name="role" type="RoleType" use="optional"></xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="DefaultOperationType">
+ <xs:sequence>
+ <xs:element ref="wsp:PolicyReference"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="NamedOperationType">
+ <xs:choice>
+ <xs:element ref="wsp:PolicyReference"/>
+ <xs:element name="unused"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:NCName"></xs:attribute>
+ </xs:complexType>
+
+ <xs:simpleType name="ServiceIdType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="\{\i[\c/]*\}\i[\c/]*">
+ <xs:annotation>
+ <xs:documentation>The form should be "{ServiceUri}PorttypeName"</xs:documentation>
+ </xs:annotation>
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="RoleType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="consumer"/>
+ <xs:enumeration value="provider"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/SOPAssertions_21.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/SOPAssertions_21.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/SOPAssertions_21.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,285 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ targetNamespace="http://types.sopware.org/qos/SOPAssertions/1.1"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified">
+
+ <xs:import namespace="http://www.w3.org/2006/07/ws-policy"
+ schemaLocation="./ws-policy.xsd" />
+
+ <xs:element name="SOPAssertion"/>
+
+ <xs:element name="TransportAssertion" substitutionGroup="SOPAssertion" type="TransportAssertionType"/>
+
+ <xs:complexType name="TransportAssertionType">
+ <xs:sequence/>
+ </xs:complexType>
+
+ <xs:element name="HttpTransport" substitutionGroup="TransportAssertion"/>
+
+ <xs:element name="HttpsTransport" substitutionGroup="TransportAssertion"/>
+
+ <xs:element name="JmsTransport" substitutionGroup="TransportAssertion"/>
+
+ <xs:element name="Sbb2Transport" substitutionGroup="TransportAssertion"/>
+
+ <xs:element name="Transformation" substitutionGroup="SOPAssertion" type="TransformationType"/>
+
+ <xs:complexType name="TransformationType">
+ <xs:sequence/>
+ <xs:attribute name="ruleSourcePath" type="xs:string" use="required"/>
+ <xs:attribute name="ruleId" type="xs:string" use="required"/>
+ <xs:attribute name="message" type="MessageDefType" use="required"/>
+ <xs:attribute name="location" type="LocationType" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="DestinationType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="local"/>
+ <xs:enumeration value="consumer"/>
+ <xs:enumeration value="provider"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="MessageDefType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="request"/>
+ <xs:enumeration value="response"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="CompoundMessageDefType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="request"/>
+ <xs:enumeration value="response"/>
+ <xs:enumeration value="all"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="SDXValidation" substitutionGroup="SOPAssertion" type="SDXValidationType"/>
+
+ <xs:complexType name="SDXValidationType">
+ <xs:sequence/>
+ <xs:attribute name="location" type="LocationType" use="optional"/>
+ <xs:attribute name="message" type="CompoundMessageDefType" use="optional" default="all"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:element name="CustomValidation" substitutionGroup="SOPAssertion" type="CustomValidationType"/>
+
+ <xs:complexType name="CustomValidationType">
+ <xs:sequence/>
+ <xs:attribute name="schemaSourcePath" type="xs:string" use="required"/>
+ <xs:attribute name="schemaId" type="xs:string" use="required"/>
+ <xs:attribute name="message" type="MessageDefType" use="required"/>
+ <xs:attribute name="location" type="LocationType" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="LocationType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="consumer"/>
+ <xs:enumeration value="provider"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="TrackingLevel" substitutionGroup="SOPAssertion" type="TrackingLevelType"/>
+
+ <xs:complexType name="TrackingLevelType">
+ <xs:sequence/>
+ <xs:attribute name="min" type="TrackingDetailType" use="optional"/>
+ <xs:attribute name="max" type="TrackingDetailType" use="optional"/>
+ <xs:attribute name="value" type="TrackingDetailType" use="optional"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="TrackingDetailType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="none"/>
+ <xs:enumeration value="summary"/>
+ <xs:enumeration value="operation"/>
+ <xs:enumeration value="trace"/>
+ <xs:enumeration value="detail"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="MaxResponseTime" substitutionGroup="SOPAssertion" type="MaxResponseTimeType"/>
+
+ <xs:complexType name="MaxResponseTimeType">
+ <xs:sequence/>
+ <xs:attribute name="value" type="xs:positiveInteger" use="required"/>
+ <xs:attribute name="location" type="LocationType" use="required"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:element name="Extension" substitutionGroup="SOPAssertion" type="ExtensionType"/>
+
+ <xs:complexType name="ExtensionType">
+ <xs:sequence/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="optional"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:element name="Authentication" substitutionGroup="SOPAssertion" type="AuthenticationType"/>
+
+ <xs:complexType name="AuthenticationType">
+ <xs:sequence/>
+ <xs:attribute name="type" type="AuthenticationTypesEnumeration" use="required"/>
+ <xs:attribute name="message" type="CompoundMessageDefType" use="optional" default="all"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="AuthenticationTypesEnumeration">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="UsernameToken"/>
+ <xs:enumeration value="SAMLToken"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="Authorization" substitutionGroup="SOPAssertion" type="AuthorizationType"/>
+
+ <xs:complexType name="AuthorizationType">
+ <xs:sequence/>
+ <xs:attribute name="location" type="AuthorizationLocationType" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="AuthorizationLocationType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="provider"/>
+ <xs:enumeration value="both"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="Priority" substitutionGroup="SOPAssertion" type="PriorityType"/>
+
+ <xs:complexType name="PriorityType">
+ <xs:sequence/>
+ <xs:attribute name="min" type="PriorityValueType" use="optional"/>
+ <xs:attribute name="max" type="PriorityValueType" use="optional"/>
+ <xs:attribute name="value" type="PriorityValueType" use="optional"/>
+ <xs:attribute name="support" type="xs:boolean" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="PriorityValueType">
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="0"/>
+ <xs:maxInclusive value="9"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="Encryption" substitutionGroup="SOPAssertion" type="EncryptionType"/>
+
+ <xs:complexType name="EncryptionType">
+ <xs:sequence/>
+ <xs:attribute name="message" type="CompoundMessageDefType" use="optional" default="all"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:element name="Compression" substitutionGroup="SOPAssertion" type="CompressionType"/>
+
+ <xs:complexType name="CompressionType">
+ <xs:sequence/>
+ <xs:attribute name="size" type="xs:nonNegativeInteger" use="optional"/>
+ <xs:attribute name="message" type="CompressionMessageType" use="optional" default="all"/>
+ <xs:attribute ref="wsp:Optional" use="optional"/>
+ </xs:complexType>
+
+ <xs:simpleType name="CompressionMessageType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="request"/>
+ <xs:enumeration value="response"/>
+ <xs:enumeration value="all"/>
+ <xs:enumeration value="none"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="ConversationalBinding" substitutionGroup="SOPAssertion" type="ConversationalBindingType"/>
+
+ <xs:complexType name="ConversationalBindingType">
+ <xs:sequence/>
+ <xs:attribute name="scope" type="BindingScopeType" use="optional" default="provider"/>
+ </xs:complexType>
+
+ <xs:simpleType name="BindingScopeType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="provider"/>
+ <xs:enumeration value="agreed"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="Correlation" substitutionGroup="SOPAssertion" type="CorrelationType"/>
+
+ <xs:complexType name="CorrelationType">
+ <xs:sequence>
+ <xs:element name="Namespace" type="CorrelationNamespaceType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Part" type="CorrelationPartType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Header" type="CorrelationHeaderType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
+ <xs:attribute name="message" type="MessageDefType" use="required"/>
+ <xs:attribute name="location" type="SenderReceiverType" use="optional" default="sender"/>
+ <xs:attribute name="expose" type="xs:boolean" use="optional" default="false"/>
+ </xs:complexType>
+
+ <xs:simpleType name="SenderReceiverType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="sender"/>
+ <xs:enumeration value="receiver"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:complexType name="CorrelationNamespaceType">
+ <xs:sequence/>
+ <xs:attribute name="prefix" type="xs:NMTOKEN"/>
+ <xs:attribute name="uri" type="xs:anyURI"/>
+ </xs:complexType>
+
+ <xs:complexType name="CorrelationPartType">
+ <xs:sequence/>
+ <xs:attribute name="name" type="xs:NMTOKEN"/>
+ <xs:attribute name="xpath" type="xs:string"/>
+ </xs:complexType>
+
+ <xs:complexType name="CorrelationHeaderType">
+ <xs:sequence/>
+ <xs:attribute name="name" type="xs:NMTOKEN"/>
+ <xs:attribute name="uri" type="xs:anyURI"/>
+ </xs:complexType>
+
+ <xs:element name="Signature" substitutionGroup="SOPAssertion" type="SignatureType"/>
+
+ <xs:complexType name="SignatureType">
+ <xs:sequence/>
+ <xs:attribute name="message" type="CompoundMessageDefType" use="optional" default="all"/>
+ <xs:attribute name="verify" type="xs:boolean" use="optional"/>
+ <xs:attribute ref="wsp:Optional" use="optional" default="false"/>
+ </xs:complexType>
+
+ <xs:element name="Subscription" substitutionGroup="SOPAssertion" type="SubscriptionType"/>
+
+ <xs:complexType name="SubscriptionType">
+ <xs:sequence/>
+ <xs:attribute name="type" type="SubscriptionTypeEnumeration"/>
+ </xs:complexType>
+
+ <xs:simpleType name="SubscriptionTypeEnumeration">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="durable"/>
+ <xs:enumeration value="non-durable"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/XMLSchema.dtd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/XMLSchema.dtd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/XMLSchema.dtd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,402 @@
+<!-- DTD for XML Schemas: Part 1: Structures
+ Public Identifier: "-//W3C//DTD XMLSCHEMA 200102//EN"
+ Official Location: http://www.w3.org/2001/XMLSchema.dtd -->
+<!-- $Id: XMLSchema.dtd,v 1.1 2007/10/04 16:35:05 amarkevich Exp $ -->
+<!-- Note this DTD is NOT normative, or even definitive. --> <!--d-->
+<!-- prose copy in the structures REC is the definitive version --> <!--d-->
+<!-- (which shouldn't differ from this one except for this --> <!--d-->
+<!-- comment and entity expansions, but just in case) --> <!--d-->
+<!-- With the exception of cases with multiple namespace
+ prefixes for the XML Schema namespace, any XML document which is
+ not valid per this DTD given redefinitions in its internal subset of the
+ 'p' and 's' parameter entities below appropriate to its namespace
+ declaration of the XML Schema namespace is almost certainly not
+ a valid schema. -->
+
+<!-- The simpleType element and its constituent parts
+ are defined in XML Schema: Part 2: Datatypes -->
+<!ENTITY % xs-datatypes PUBLIC 'datatypes' 'datatypes.dtd' >
+
+<!ENTITY % p 'xs:'> <!-- can be overriden in the internal subset of a
+ schema document to establish a different
+ namespace prefix -->
+<!ENTITY % s ':xs'> <!-- if %p is defined (e.g. as foo:) then you must
+ also define %s as the suffix for the appropriate
+ namespace declaration (e.g. :foo) -->
+<!ENTITY % nds 'xmlns%s;'>
+
+<!-- Define all the element names, with optional prefix -->
+<!ENTITY % schema "%p;schema">
+<!ENTITY % complexType "%p;complexType">
+<!ENTITY % complexContent "%p;complexContent">
+<!ENTITY % simpleContent "%p;simpleContent">
+<!ENTITY % extension "%p;extension">
+<!ENTITY % element "%p;element">
+<!ENTITY % unique "%p;unique">
+<!ENTITY % key "%p;key">
+<!ENTITY % keyref "%p;keyref">
+<!ENTITY % selector "%p;selector">
+<!ENTITY % field "%p;field">
+<!ENTITY % group "%p;group">
+<!ENTITY % all "%p;all">
+<!ENTITY % choice "%p;choice">
+<!ENTITY % sequence "%p;sequence">
+<!ENTITY % any "%p;any">
+<!ENTITY % anyAttribute "%p;anyAttribute">
+<!ENTITY % attribute "%p;attribute">
+<!ENTITY % attributeGroup "%p;attributeGroup">
+<!ENTITY % include "%p;include">
+<!ENTITY % import "%p;import">
+<!ENTITY % redefine "%p;redefine">
+<!ENTITY % notation "%p;notation">
+
+<!-- annotation elements -->
+<!ENTITY % annotation "%p;annotation">
+<!ENTITY % appinfo "%p;appinfo">
+<!ENTITY % documentation "%p;documentation">
+
+<!-- Customisation entities for the ATTLIST of each element type.
+ Define one of these if your schema takes advantage of the
+ anyAttribute='##other' in the schema for schemas -->
+
+<!ENTITY % schemaAttrs ''>
+<!ENTITY % complexTypeAttrs ''>
+<!ENTITY % complexContentAttrs ''>
+<!ENTITY % simpleContentAttrs ''>
+<!ENTITY % extensionAttrs ''>
+<!ENTITY % elementAttrs ''>
+<!ENTITY % groupAttrs ''>
+<!ENTITY % allAttrs ''>
+<!ENTITY % choiceAttrs ''>
+<!ENTITY % sequenceAttrs ''>
+<!ENTITY % anyAttrs ''>
+<!ENTITY % anyAttributeAttrs ''>
+<!ENTITY % attributeAttrs ''>
+<!ENTITY % attributeGroupAttrs ''>
+<!ENTITY % uniqueAttrs ''>
+<!ENTITY % keyAttrs ''>
+<!ENTITY % keyrefAttrs ''>
+<!ENTITY % selectorAttrs ''>
+<!ENTITY % fieldAttrs ''>
+<!ENTITY % includeAttrs ''>
+<!ENTITY % importAttrs ''>
+<!ENTITY % redefineAttrs ''>
+<!ENTITY % notationAttrs ''>
+<!ENTITY % annotationAttrs ''>
+<!ENTITY % appinfoAttrs ''>
+<!ENTITY % documentationAttrs ''>
+
+<!ENTITY % complexDerivationSet "CDATA">
+ <!-- #all or space-separated list drawn from derivationChoice -->
+<!ENTITY % blockSet "CDATA">
+ <!-- #all or space-separated list drawn from
+ derivationChoice + 'substitution' -->
+
+<!ENTITY % mgs '%all; | %choice; | %sequence;'>
+<!ENTITY % cs '%choice; | %sequence;'>
+<!ENTITY % formValues '(qualified|unqualified)'>
+
+
+<!ENTITY % attrDecls '((%attribute;| %attributeGroup;)*,(%anyAttribute;)?)'>
+
+<!ENTITY % particleAndAttrs '((%mgs; | %group;)?, %attrDecls;)'>
+
+<!-- This is used in part2 -->
+<!ENTITY % restriction1 '((%mgs; | %group;)?)'>
+
+%xs-datatypes;
+
+<!-- the duplication below is to produce an unambiguous content model
+ which allows annotation everywhere -->
+<!ELEMENT %schema; ((%include; | %import; | %redefine; | %annotation;)*,
+ ((%simpleType; | %complexType;
+ | %element; | %attribute;
+ | %attributeGroup; | %group;
+ | %notation; ),
+ (%annotation;)*)* )>
+<!ATTLIST %schema;
+ targetNamespace %URIref; #IMPLIED
+ version CDATA #IMPLIED
+ %nds; %URIref; #FIXED 'http://www.w3.org/2001/XMLSchema'
+ xmlns CDATA #IMPLIED
+ finalDefault %complexDerivationSet; ''
+ blockDefault %blockSet; ''
+ id ID #IMPLIED
+ elementFormDefault %formValues; 'unqualified'
+ attributeFormDefault %formValues; 'unqualified'
+ xml:lang CDATA #IMPLIED
+ %schemaAttrs;>
+<!-- Note the xmlns declaration is NOT in the Schema for Schemas,
+ because at the Infoset level where schemas operate,
+ xmlns(:prefix) is NOT an attribute! -->
+<!-- The declaration of xmlns is a convenience for schema authors -->
+
+<!-- The id attribute here and below is for use in external references
+ from non-schemas using simple fragment identifiers.
+ It is NOT used for schema-to-schema reference, internal or
+ external. -->
+
+<!-- a type is a named content type specification which allows attribute
+ declarations-->
+<!-- -->
+
+<!ELEMENT %complexType; ((%annotation;)?,
+ (%simpleContent;|%complexContent;|
+ %particleAndAttrs;))>
+
+<!ATTLIST %complexType;
+ name %NCName; #IMPLIED
+ id ID #IMPLIED
+ abstract %boolean; #IMPLIED
+ final %complexDerivationSet; #IMPLIED
+ block %complexDerivationSet; #IMPLIED
+ mixed (true|false) 'false'
+ %complexTypeAttrs;>
+
+<!-- particleAndAttrs is shorthand for a root type -->
+<!-- mixed is disallowed if simpleContent, overriden if complexContent
+ has one too. -->
+
+<!-- If anyAttribute appears in one or more referenced attributeGroups
+ and/or explicitly, the intersection of the permissions is used -->
+
+<!ELEMENT %complexContent; ((%annotation;)?, (%restriction;|%extension;))>
+<!ATTLIST %complexContent;
+ mixed (true|false) #IMPLIED
+ id ID #IMPLIED
+ %complexContentAttrs;>
+
+<!-- restriction should use the branch defined above, not the simple
+ one from part2; extension should use the full model -->
+
+<!ELEMENT %simpleContent; ((%annotation;)?, (%restriction;|%extension;))>
+<!ATTLIST %simpleContent;
+ id ID #IMPLIED
+ %simpleContentAttrs;>
+
+<!-- restriction should use the simple branch from part2, not the
+ one defined above; extension should have no particle -->
+
+<!ELEMENT %extension; ((%annotation;)?, (%particleAndAttrs;))>
+<!ATTLIST %extension;
+ base %QName; #REQUIRED
+ id ID #IMPLIED
+ %extensionAttrs;>
+
+<!-- an element is declared by either:
+ a name and a type (either nested or referenced via the type attribute)
+ or a ref to an existing element declaration -->
+
+<!ELEMENT %element; ((%annotation;)?, (%complexType;| %simpleType;)?,
+ (%unique; | %key; | %keyref;)*)>
+<!-- simpleType or complexType only if no type|ref attribute -->
+<!-- ref not allowed at top level -->
+<!ATTLIST %element;
+ name %NCName; #IMPLIED
+ id ID #IMPLIED
+ ref %QName; #IMPLIED
+ type %QName; #IMPLIED
+ minOccurs %nonNegativeInteger; #IMPLIED
+ maxOccurs CDATA #IMPLIED
+ nillable %boolean; #IMPLIED
+ substitutionGroup %QName; #IMPLIED
+ abstract %boolean; #IMPLIED
+ final %complexDerivationSet; #IMPLIED
+ block %blockSet; #IMPLIED
+ default CDATA #IMPLIED
+ fixed CDATA #IMPLIED
+ form %formValues; #IMPLIED
+ %elementAttrs;>
+<!-- type and ref are mutually exclusive.
+ name and ref are mutually exclusive, one is required -->
+<!-- In the absence of type AND ref, type defaults to type of
+ substitutionGroup, if any, else the ur-type, i.e. unconstrained -->
+<!-- default and fixed are mutually exclusive -->
+
+<!ELEMENT %group; ((%annotation;)?,(%mgs;)?)>
+<!ATTLIST %group;
+ name %NCName; #IMPLIED
+ ref %QName; #IMPLIED
+ minOccurs %nonNegativeInteger; #IMPLIED
+ maxOccurs CDATA #IMPLIED
+ id ID #IMPLIED
+ %groupAttrs;>
+
+<!ELEMENT %all; ((%annotation;)?, (%element;)*)>
+<!ATTLIST %all;
+ minOccurs (1) #IMPLIED
+ maxOccurs (1) #IMPLIED
+ id ID #IMPLIED
+ %allAttrs;>
+
+<!ELEMENT %choice; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
+<!ATTLIST %choice;
+ minOccurs %nonNegativeInteger; #IMPLIED
+ maxOccurs CDATA #IMPLIED
+ id ID #IMPLIED
+ %choiceAttrs;>
+
+<!ELEMENT %sequence; ((%annotation;)?, (%element;| %group;| %cs; | %any;)*)>
+<!ATTLIST %sequence;
+ minOccurs %nonNegativeInteger; #IMPLIED
+ maxOccurs CDATA #IMPLIED
+ id ID #IMPLIED
+ %sequenceAttrs;>
+
+<!-- an anonymous grouping in a model, or
+ a top-level named group definition, or a reference to same -->
+
+<!-- Note that if order is 'all', group is not allowed inside.
+ If order is 'all' THIS group must be alone (or referenced alone) at
+ the top level of a content model -->
+<!-- If order is 'all', minOccurs==maxOccurs==1 on element/any inside -->
+<!-- Should allow minOccurs=0 inside order='all' . . . -->
+
+<!ELEMENT %any; (%annotation;)?>
+<!ATTLIST %any;
+ namespace CDATA '##any'
+ processContents (skip|lax|strict) 'strict'
+ minOccurs %nonNegativeInteger; '1'
+ maxOccurs CDATA '1'
+ id ID #IMPLIED
+ %anyAttrs;>
+
+<!-- namespace is interpreted as follows:
+ ##any - - any non-conflicting WFXML at all
+
+ ##other - - any non-conflicting WFXML from namespace other
+ than targetNamespace
+
+ ##local - - any unqualified non-conflicting WFXML/attribute
+ one or - - any non-conflicting WFXML from
+ more URI the listed namespaces
+ references
+
+ ##targetNamespace ##local may appear in the above list,
+ with the obvious meaning -->
+
+<!ELEMENT %anyAttribute; (%annotation;)?>
+<!ATTLIST %anyAttribute;
+ namespace CDATA '##any'
+ processContents (skip|lax|strict) 'strict'
+ id ID #IMPLIED
+ %anyAttributeAttrs;>
+<!-- namespace is interpreted as for 'any' above -->
+
+<!-- simpleType only if no type|ref attribute -->
+<!-- ref not allowed at top level, name iff at top level -->
+<!ELEMENT %attribute; ((%annotation;)?, (%simpleType;)?)>
+<!ATTLIST %attribute;
+ name %NCName; #IMPLIED
+ id ID #IMPLIED
+ ref %QName; #IMPLIED
+ type %QName; #IMPLIED
+ use (prohibited|optional|required) #IMPLIED
+ default CDATA #IMPLIED
+ fixed CDATA #IMPLIED
+ form %formValues; #IMPLIED
+ %attributeAttrs;>
+<!-- type and ref are mutually exclusive.
+ name and ref are mutually exclusive, one is required -->
+<!-- default for use is optional when nested, none otherwise -->
+<!-- default and fixed are mutually exclusive -->
+<!-- type attr and simpleType content are mutually exclusive -->
+
+<!-- an attributeGroup is a named collection of attribute decls, or a
+ reference thereto -->
+<!ELEMENT %attributeGroup; ((%annotation;)?,
+ (%attribute; | %attributeGroup;)*,
+ (%anyAttribute;)?) >
+<!ATTLIST %attributeGroup;
+ name %NCName; #IMPLIED
+ id ID #IMPLIED
+ ref %QName; #IMPLIED
+ %attributeGroupAttrs;>
+
+<!-- ref iff no content, no name. ref iff not top level -->
+
+<!-- better reference mechanisms -->
+<!ELEMENT %unique; ((%annotation;)?, %selector;, (%field;)+)>
+<!ATTLIST %unique;
+ name %NCName; #REQUIRED
+ id ID #IMPLIED
+ %uniqueAttrs;>
+
+<!ELEMENT %key; ((%annotation;)?, %selector;, (%field;)+)>
+<!ATTLIST %key;
+ name %NCName; #REQUIRED
+ id ID #IMPLIED
+ %keyAttrs;>
+
+<!ELEMENT %keyref; ((%annotation;)?, %selector;, (%field;)+)>
+<!ATTLIST %keyref;
+ name %NCName; #REQUIRED
+ refer %QName; #REQUIRED
+ id ID #IMPLIED
+ %keyrefAttrs;>
+
+<!ELEMENT %selector; ((%annotation;)?)>
+<!ATTLIST %selector;
+ xpath %XPathExpr; #REQUIRED
+ id ID #IMPLIED
+ %selectorAttrs;>
+<!ELEMENT %field; ((%annotation;)?)>
+<!ATTLIST %field;
+ xpath %XPathExpr; #REQUIRED
+ id ID #IMPLIED
+ %fieldAttrs;>
+
+<!-- Schema combination mechanisms -->
+<!ELEMENT %include; (%annotation;)?>
+<!ATTLIST %include;
+ schemaLocation %URIref; #REQUIRED
+ id ID #IMPLIED
+ %includeAttrs;>
+
+<!ELEMENT %import; (%annotation;)?>
+<!ATTLIST %import;
+ namespace %URIref; #IMPLIED
+ schemaLocation %URIref; #IMPLIED
+ id ID #IMPLIED
+ %importAttrs;>
+
+<!ELEMENT %redefine; (%annotation; | %simpleType; | %complexType; |
+ %attributeGroup; | %group;)*>
+<!ATTLIST %redefine;
+ schemaLocation %URIref; #REQUIRED
+ id ID #IMPLIED
+ %redefineAttrs;>
+
+<!ELEMENT %notation; (%annotation;)?>
+<!ATTLIST %notation;
+ name %NCName; #REQUIRED
+ id ID #IMPLIED
+ public CDATA #REQUIRED
+ system %URIref; #IMPLIED
+ %notationAttrs;>
+
+<!-- Annotation is either application information or documentation -->
+<!-- By having these here they are available for datatypes as well
+ as all the structures elements -->
+
+<!ELEMENT %annotation; (%appinfo; | %documentation;)*>
+<!ATTLIST %annotation; %annotationAttrs;>
+
+<!-- User must define annotation elements in internal subset for this
+ to work -->
+<!ELEMENT %appinfo; ANY> <!-- too restrictive -->
+<!ATTLIST %appinfo;
+ source %URIref; #IMPLIED
+ id ID #IMPLIED
+ %appinfoAttrs;>
+<!ELEMENT %documentation; ANY> <!-- too restrictive -->
+<!ATTLIST %documentation;
+ source %URIref; #IMPLIED
+ id ID #IMPLIED
+ xml:lang CDATA #IMPLIED
+ %documentationAttrs;>
+
+<!NOTATION XMLSchemaStructures PUBLIC
+ 'structures' 'http://www.w3.org/2001/XMLSchema.xsd' >
+<!NOTATION XML PUBLIC
+ 'REC-xml-1998-0210' 'http://www.w3.org/TR/1998/REC-xml-19980210' >
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/datatypes.dtd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/datatypes.dtd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/datatypes.dtd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,203 @@
+<!--
+ DTD for XML Schemas: Part 2: Datatypes
+ $Id: datatypes.dtd,v 1.1 2007/10/04 16:35:05 amarkevich Exp $
+ Note this DTD is NOT normative, or even definitive. - - the
+ prose copy in the datatypes REC is the definitive version
+ (which shouldn't differ from this one except for this comment
+ and entity expansions, but just in case)
+ -->
+
+<!--
+ This DTD cannot be used on its own, it is intended
+ only for incorporation in XMLSchema.dtd, q.v.
+ -->
+
+<!-- Define all the element names, with optional prefix -->
+<!ENTITY % simpleType "%p;simpleType">
+<!ENTITY % restriction "%p;restriction">
+<!ENTITY % list "%p;list">
+<!ENTITY % union "%p;union">
+<!ENTITY % maxExclusive "%p;maxExclusive">
+<!ENTITY % minExclusive "%p;minExclusive">
+<!ENTITY % maxInclusive "%p;maxInclusive">
+<!ENTITY % minInclusive "%p;minInclusive">
+<!ENTITY % totalDigits "%p;totalDigits">
+<!ENTITY % fractionDigits "%p;fractionDigits">
+<!ENTITY % length "%p;length">
+<!ENTITY % minLength "%p;minLength">
+<!ENTITY % maxLength "%p;maxLength">
+<!ENTITY % enumeration "%p;enumeration">
+<!ENTITY % whiteSpace "%p;whiteSpace">
+<!ENTITY % pattern "%p;pattern">
+
+<!--
+ Customisation entities for the ATTLIST of each element
+ type. Define one of these if your schema takes advantage
+ of the anyAttribute='##other' in the schema for schemas
+ -->
+
+<!ENTITY % simpleTypeAttrs "">
+<!ENTITY % restrictionAttrs "">
+<!ENTITY % listAttrs "">
+<!ENTITY % unionAttrs "">
+<!ENTITY % maxExclusiveAttrs "">
+<!ENTITY % minExclusiveAttrs "">
+<!ENTITY % maxInclusiveAttrs "">
+<!ENTITY % minInclusiveAttrs "">
+<!ENTITY % totalDigitsAttrs "">
+<!ENTITY % fractionDigitsAttrs "">
+<!ENTITY % lengthAttrs "">
+<!ENTITY % minLengthAttrs "">
+<!ENTITY % maxLengthAttrs "">
+<!ENTITY % enumerationAttrs "">
+<!ENTITY % whiteSpaceAttrs "">
+<!ENTITY % patternAttrs "">
+
+<!-- Define some entities for informative use as attribute
+ types -->
+<!ENTITY % URIref "CDATA">
+<!ENTITY % XPathExpr "CDATA">
+<!ENTITY % QName "NMTOKEN">
+<!ENTITY % QNames "NMTOKENS">
+<!ENTITY % NCName "NMTOKEN">
+<!ENTITY % nonNegativeInteger "NMTOKEN">
+<!ENTITY % boolean "(true|false)">
+<!ENTITY % simpleDerivationSet "CDATA">
+<!--
+ #all or space-separated list drawn from derivationChoice
+ -->
+
+<!--
+ Note that the use of 'facet' below is less restrictive
+ than is really intended: There should in fact be no
+ more than one of each of minInclusive, minExclusive,
+ maxInclusive, maxExclusive, totalDigits, fractionDigits,
+ length, maxLength, minLength within datatype,
+ and the min- and max- variants of Inclusive and Exclusive
+ are mutually exclusive. On the other hand, pattern and
+ enumeration may repeat.
+ -->
+<!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
+<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
+<!ENTITY % bounds "%minBound; | %maxBound;">
+<!ENTITY % numeric "%totalDigits; | %fractionDigits;">
+<!ENTITY % ordered "%bounds; | %numeric;">
+<!ENTITY % unordered
+ "%pattern; | %enumeration; | %whiteSpace; | %length; |
+ %maxLength; | %minLength;">
+<!ENTITY % facet "%ordered; | %unordered;">
+<!ENTITY % facetAttr
+ "value CDATA #REQUIRED
+ id ID #IMPLIED">
+<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
+<!ENTITY % facetModel "(%annotation;)?">
+<!ELEMENT %simpleType;
+ ((%annotation;)?, (%restriction; | %list; | %union;))>
+<!ATTLIST %simpleType;
+ name %NCName; #IMPLIED
+ final %simpleDerivationSet; #IMPLIED
+ id ID #IMPLIED
+ %simpleTypeAttrs;>
+<!-- name is required at top level -->
+<!ELEMENT %restriction; ((%annotation;)?,
+ (%restriction1; |
+ ((%simpleType;)?,(%facet;)*)),
+ (%attrDecls;))>
+<!ATTLIST %restriction;
+ base %QName; #IMPLIED
+ id ID #IMPLIED
+ %restrictionAttrs;>
+<!--
+ base and simpleType child are mutually exclusive,
+ one is required.
+
+ restriction is shared between simpleType and
+ simpleContent and complexContent (in XMLSchema.xsd).
+ restriction1 is for the latter cases, when this
+ is restricting a complex type, as is attrDecls.
+ -->
+<!ELEMENT %list; ((%annotation;)?,(%simpleType;)?)>
+<!ATTLIST %list;
+ itemType %QName; #IMPLIED
+ id ID #IMPLIED
+ %listAttrs;>
+<!--
+ itemType and simpleType child are mutually exclusive,
+ one is required
+ -->
+<!ELEMENT %union; ((%annotation;)?,(%simpleType;)*)>
+<!ATTLIST %union;
+ id ID #IMPLIED
+ memberTypes %QNames; #IMPLIED
+ %unionAttrs;>
+<!--
+ At least one item in memberTypes or one simpleType
+ child is required
+ -->
+
+<!ELEMENT %maxExclusive; %facetModel;>
+<!ATTLIST %maxExclusive;
+ %facetAttr;
+ %fixedAttr;
+ %maxExclusiveAttrs;>
+<!ELEMENT %minExclusive; %facetModel;>
+<!ATTLIST %minExclusive;
+ %facetAttr;
+ %fixedAttr;
+ %minExclusiveAttrs;>
+
+<!ELEMENT %maxInclusive; %facetModel;>
+<!ATTLIST %maxInclusive;
+ %facetAttr;
+ %fixedAttr;
+ %maxInclusiveAttrs;>
+<!ELEMENT %minInclusive; %facetModel;>
+<!ATTLIST %minInclusive;
+ %facetAttr;
+ %fixedAttr;
+ %minInclusiveAttrs;>
+
+<!ELEMENT %totalDigits; %facetModel;>
+<!ATTLIST %totalDigits;
+ %facetAttr;
+ %fixedAttr;
+ %totalDigitsAttrs;>
+<!ELEMENT %fractionDigits; %facetModel;>
+<!ATTLIST %fractionDigits;
+ %facetAttr;
+ %fixedAttr;
+ %fractionDigitsAttrs;>
+
+<!ELEMENT %length; %facetModel;>
+<!ATTLIST %length;
+ %facetAttr;
+ %fixedAttr;
+ %lengthAttrs;>
+<!ELEMENT %minLength; %facetModel;>
+<!ATTLIST %minLength;
+ %facetAttr;
+ %fixedAttr;
+ %minLengthAttrs;>
+<!ELEMENT %maxLength; %facetModel;>
+<!ATTLIST %maxLength;
+ %facetAttr;
+ %fixedAttr;
+ %maxLengthAttrs;>
+
+<!-- This one can be repeated -->
+<!ELEMENT %enumeration; %facetModel;>
+<!ATTLIST %enumeration;
+ %facetAttr;
+ %enumerationAttrs;>
+
+<!ELEMENT %whiteSpace; %facetModel;>
+<!ATTLIST %whiteSpace;
+ %facetAttr;
+ %fixedAttr;
+ %whiteSpaceAttrs;>
+
+<!-- This one can be repeated -->
+<!ELEMENT %pattern; %facetModel;>
+<!ATTLIST %pattern;
+ %facetAttr;
+ %patternAttrs;>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/documentation.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/documentation.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/documentation.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://types.sopware.org/service/Documentation/1.0" targetNamespace="http://types.sopware.org/service/Documentation/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:annotation>
+ <xs:documentation>
+ Documentation elements used in the various description formats ( service description, service provider description, policy description).
+ </xs:documentation>
+ </xs:annotation>
+ <!-- Extensions common to Service Description and Service Provider Description-->
+ <xs:simpleType name="shortString">
+ <xs:restriction base="xs:string">
+ <xs:maxLength value="8000"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="documentation" mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="revisionHistory" type="tns:revisionHistory">
+ <!-- provides a history of the revision blocks for the whole service
+ the actual changes to different elements should be noted at their location
+ and reference the entries in this history log
+ -->
+ </xs:element>
+ <xs:complexType name="revisionHistory">
+ <xs:sequence>
+ <xs:element name="revision" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="tns:shortString">
+ <xs:attribute name="id" type="xs:ID" use="required">
+ <!-- internal designator for the revision
+ NOTE: contents should follow pattern "rev_##"
+ -->
+ </xs:attribute>
+ <xs:attribute name="revisionNumber" type="xs:string">
+ <!-- human-readable designator to be used for display purposes
+ TODO: restrict format?
+ -->
+ </xs:attribute>
+ <xs:attribute name="status" type="xs:string">
+ <!-- status of the description.
+ TODO: Define enumeration of allowed values?
+ -->
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="current" type="xs:IDREF">
+ <!-- Id of current revision -->
+ </xs:attribute>
+ </xs:complexType>
+ <!-- Elements for the documentation -->
+ <xs:element name="shortDescription" type="tns:shortString">
+ <xs:annotation>
+ <xs:documentation>short (max 1 line) description of the service.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="purpose" type="tns:documentation">
+ <xs:annotation>
+ <xs:documentation>text describing this operation from a domain-related point of view </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="prerequisites" type="tns:documentation">
+ <xs:annotation>
+ <xs:documentation>text describing features of this operation noteworthy from a technical point of view</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="success" type="tns:documentation">
+ <xs:annotation>
+ <xs:documentation>text describing the outcome in case the operation was successfull</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="error" type="tns:documentation">
+ <xs:annotation>
+ <xs:documentation>text describing the outcome in case the operation was successfull</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="executionFlow" type="tns:documentation">
+ <xs:annotation>
+ <xs:documentation>description of the technical execution flow of this operation</xs:documentation>
+ </xs:annotation>
+ </xs:element>
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/emptyschema.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/emptyschema.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/emptyschema.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,12 @@
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="EMPTY_SCHEMA'ede">
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/log4j.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/log4j.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/log4j.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,16 @@
+#################################################
+# Validation Module Logging Settings
+#################################################
+# For advanced loggin system Log4j API is used
+# Available logging levels are INFO, WARN, ERROR, FATAL
+
+log4j.rootLogger=DEBUG, A1
+
+# A1 is set to be a ConsoleAppender.
+#log4j.appender.A1=org.apache.log4j.ConsoleAppender
+log4j.appender.A1=org.apache.log4j.RollingFileAppender
+log4j.appender.A1.File=validation.log
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
\ No newline at end of file
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/log4j.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-secext-1.0.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-secext-1.0.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-secext-1.0.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+Copyright  OASIS Open 2002-2004. All Rights Reserved.
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+This document and the information contained herein is provided on an âAS ISâ basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+-->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" version="0.2">
+ <xsd:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="oasis-200401-wss-wssecurity-utility-1.0.xsd"/>
+ <!--xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/-->
+ <!--xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/-->
+ <xsd:complexType name="AttributedString">
+ <xsd:annotation>
+ <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="PasswordString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="Type" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="EncodedString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="EncodingType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="Username" type="wsse:AttributedString"/>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>A security token that is encoded in binary</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>A security token key identifier</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:simpleType name="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
+ </xsd:annotation>
+ <xsd:list itemType="xsd:anyURI"/>
+ </xsd:simpleType>
+ <xsd:attribute name="Usage" type="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:complexType name="ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="URI" type="xsd:anyURI"/>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type is used reference a security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:attribute ref="wsse:Usage"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Reference" type="wsse:ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Embedded" type="wsse:EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a key identifier reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Security" type="wsse:SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Password" type="wsse:PasswordString"/>
+ <xsd:element name="Nonce" type="wsse:EncodedString"/>
+ <xsd:simpleType name="FaultcodeEnum">
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
+ <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
+ <xsd:enumeration value="wsse:InvalidSecurity"/>
+ <xsd:enumeration value="wsse:InvalidSecurityToken"/>
+ <xsd:enumeration value="wsse:FailedAuthentication"/>
+ <xsd:enumeration value="wsse:FailedCheck"/>
+ <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-utility-1.0.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-utility-1.0.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/oasis-200401-wss-wssecurity-utility-1.0.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,108 @@
+ï<?xml version="1.0" encoding="UTF-8"?>
+<!--
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+Copyright  OASIS Open 2002-2004. All Rights Reserved.
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+This document and the information contained herein is provided on an âAS ISâ basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+-->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
+
+
+xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
+ <!-- // Fault Codes /////////////////////////////////////////// -->
+ <xsd:simpleType name="tTimestampFault">
+ <xsd:annotation>
+ <xsd:documentation>
+This type defines the fault code value for Timestamp message expiration.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsu:MessageExpired"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <!-- // Global attributes //////////////////////////////////// -->
+ <xsd:attribute name="Id" type="xsd:ID">
+ <xsd:annotation>
+ <xsd:documentation>
+This global attribute supports annotating arbitrary elements with an ID.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attributeGroup name="commonAtts">
+ <xsd:annotation>
+ <xsd:documentation>
+Convenience attribute group used to simplify this schema.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute ref="wsu:Id" use="optional"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:attributeGroup>
+ <!-- // Utility types //////////////////////////////////////// -->
+ <xsd:complexType name="AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="AttributedURI">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:anyURI">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <!-- // Timestamp header components /////////////////////////// -->
+ <xsd:complexType name="TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This complex type ties together the timestamp related elements into a composite type.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element ref="wsu:Created" minOccurs="0"/>
+ <xsd:element ref="wsu:Expires" minOccurs="0"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any namespace="##other" processContents="lax"/>
+ </xsd:choice>
+ </xsd:sequence>
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:complexType>
+ <xsd:element name="Timestamp" type="wsu:TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows Timestamps to be applied anywhere element wildcards are present,
+including as a SOAP header.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <!-- global element decls to allow individual elements to appear anywhere -->
+ <xsd:element name="Expires" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows an expiration time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Created" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows a creation time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+</xsd:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/partner-link.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/partner-link.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/partner-link.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+ targetNamespace="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+ elementFormDefault="qualified">
+
+ <element name="partnerLinkType" type="plnk:tPartnerLinkType"/>
+
+ <complexType name="tPartnerLinkType">
+ <sequence>
+ <element name="role" type="plnk:tRole" minOccurs="1" maxOccurs="2"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ </complexType>
+
+ <complexType name="tRole">
+ <sequence>
+ <element name="portType" minOccurs="1" maxOccurs="1">
+ <complexType>
+ <attribute name="name" type="QName" use="required"/>
+ </complexType>
+ </element>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ </complexType>
+
+</schema>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/sop.validation.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/sop.validation.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/sop.validation.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,13 @@
+################################################################################
+# Copyright (c) 2008 SOPERA GmbH
+# 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
+################################################################################
+#################################################
+# Validation Module Settings
+#################################################
+
+org.eclipse.stp.common.validator.core.impl.service.GenericValidator.InlineSchema=true
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/sop.validation.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ws-policy.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ws-policy.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/ws-policy.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<!--
+
+ W3C XML Schema defined in the Web Services Policy 1.5
+ Framework specification
+
+ http://www.w3.org/TR/ws-policy-framework
+
+ Copyright  2006 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3CÂ Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: ws-policy.xsd,v 1.2 2006/12/15 11:28:38 akalach Exp $
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2006/07/ws-policy" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" targetNamespace="http://www.w3.org/2006/07/ws-policy" blockDefault="#all" elementFormDefault="qualified" finalDefault="" attributeFormDefault="unqualified">
+
+ <xs:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+
+ <xs:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/>
+
+ <!-- Constructs from the Web Services Policy 1.5 Framework -->
+
+ <xs:element name="Policy">
+ <xs:complexType mixed="false">
+
+ <xs:complexContent>
+ <xs:extension base="tns:OperatorContentType">
+ <xs:attribute name="Name" type="xs:anyURI"/>
+ <xs:attribute ref="wsu:Id"/>
+ <xs:anyAttribute namespace="##any" processContents="lax"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="All" type="tns:OperatorContentType"/>
+ <xs:element name="ExactlyOne" type="tns:OperatorContentType"/>
+
+ <xs:complexType name="OperatorContentType" mixed="false">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="tns:Policy"/>
+ <xs:element ref="tns:All"/>
+ <xs:element ref="tns:ExactlyOne"/>
+
+ <xs:element ref="tns:PolicyReference"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="1" maxOccurs="1"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="PolicyReference">
+ <xs:complexType mixed="false">
+ <xs:attribute name="URI" type="xs:anyURI" use="required"/>
+
+ <xs:attribute name="Digest" type="xs:base64Binary"/>
+ <xs:attribute name="DigestAlgorithm" type="xs:anyURI" default="http://www.w3.org/2006/07/policy/Sha1Exc"/>
+ <xs:anyAttribute namespace="##any" processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attribute name="Optional" type="xs:boolean" default="false"/>
+
+ <!-- Constructs from the Web Services Policy 1.5 Attachment -->
+
+ <xs:attribute name="PolicyURIs">
+ <xs:simpleType>
+ <xs:list itemType="xs:anyURI"/>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:element name="PolicyAttachment">
+ <xs:complexType mixed="false">
+ <xs:sequence>
+
+ <xs:element ref="tns:AppliesTo"/>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="tns:Policy"/>
+ <xs:element ref="tns:PolicyReference"/>
+ </xs:choice>
+ <!-- omitted only because it causes the content model to be non-determistic
+ <xs:element ref="wsse:Security" minOccurs="0" />
+-->
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax"/>
+
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="AppliesTo">
+ <xs:complexType mixed="false">
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax" maxOccurs="unbounded" minOccurs="1"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax"/>
+
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-jms.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-jms.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-jms.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://schemas.xmlsoap.org/wsdl/jms/"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified">
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
+
+ <xs:element name="address" type="jms:addressType"/>
+ <xs:complexType name="addressType">
+ <xs:annotation>
+ <xs:documentation>JMS configuration properties.
+ Used for configuring an JMS port.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="wsdl:tExtensibilityElement">
+ <xs:attribute name="destinationStyle" type="jms:destinationStyleType"/>
+ <xs:attribute name="jndiProviderURL" type="xs:anyURI"/>
+ <xs:attribute name="initialContextFactory" type="xs:string"/>
+ <xs:attribute name="jndiConnectionFactoryName" type="xs:string" />
+ <xs:attribute name="jndiDestinationName" type="xs:string"/>
+ <xs:attribute name="useMessageIDAsCorrelationID" type="xs:boolean" />
+ <xs:attribute name="isSharedDestination" type="xs:boolean"/>
+ <xs:attribute name="UserID" type="xs:string"/>
+ <xs:attribute name="Password" type="xs:string"/>
+
+ <xs:attribute name="java.naming.factory.initial" type="xs:string" />
+ <xs:attribute name="java.naming.provider.url" type="xs:string" />
+ <xs:attribute name="java.naming.factory.object" type="xs:string" />
+ <xs:attribute name="java.naming.factory.state" type="xs:string" />
+ <xs:attribute name="java.naming.factory.url.pkgs" type="xs:string" />
+ <xs:attribute name="java.naming.dns.url" type="xs:string" />
+ <xs:attribute name="java.naming.authoritative" type="xs:string" />
+ <xs:attribute name="java.naming.batchsize" type="xs:string" />
+ <xs:attribute name="java.naming.referral" type="xs:string" />
+ <xs:attribute name="java.naming.security.protocol" type="xs:string" />
+ <xs:attribute name="java.naming.security.authentication" type="xs:string" />
+ <xs:attribute name="java.naming.security.principal" type="xs:string" />
+ <xs:attribute name="java.naming.security.credentials" type="xs:string" />
+ <xs:attribute name="java.naming.language" type="xs:string" />
+ <xs:attribute name="java.naming.applet" type="xs:string" />
+<!-- <xs:attribute name="messageType" type="jms:messageType_Type" use="required"/> -->
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="destinationStyleType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="queue"/>
+ <xs:enumeration value="topic"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="messageType_Type">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="text"/>
+ <xs:enumeration value="binary"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-sdx.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-sdx.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-sdx.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns:tns="http://types.sopware.org/service/ServiceDescription/2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://types.sopware.org/service/ServiceDescription/2.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:annotation>
+ <xs:documentation>
+ SOP specific schema extensions of the WSDL 1.1 schema used in the Service Description.
+ Constraints that cannot expressed within XML Schema are specified in a separate document that uses Schematron.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
+ <!-- define that partner links are valis part of the sdx schema -->
+ <xs:import namespace="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"/>
+ <!-- <xs:import namespace="http://types.sopware.org/service/Documentation/1.0"/> -->
+ <xs:attribute name="domain" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Groups services of a specific business domain.
+ May only be added to a portType element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <!-- -->
+ <xs:attribute name="version" type="tns:VersionType">
+ <xs:annotation>
+ <xs:documentation>Describes the specification version of a service interface and consists
+ of a major and minor version number. May only be added to a portType element.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:simpleType name="VersionType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="\d+\.\d+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <!-- -->
+ <xs:attribute name="status" type="tns:StatusType">
+ <xs:annotation>
+ <xs:documentation>Describes in which phase of its life-cycle a service interface stands.
+ May only be added to a portType element.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="partnerOperation" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>Reference to the partner operation.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <!-- -->
+ <xs:simpleType name="StatusType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="design"/>
+ <xs:enumeration value="test"/>
+ <xs:enumeration value="production"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-spdx.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-spdx.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/conf/wsdl-spdx.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://types.sopware.org/service/ServiceProviderDescription/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
+
+ <xs:annotation>
+ <xs:documentation>
+ SOP specific schema extensions of the WSDL 1.1 schema used in the Service Provider Description.
+ Constraints tha cannot expressed within XML Schema are checked by Sopware Particularity validator.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/jms/"/>
+ <xs:import namespace="http://schemas.xmlsoap.org/wsdl/soap/"/>
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/messages.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/messages.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/messages.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,64 @@
+################################################################################
+# Copyright (c) 2008 SOPERA GmbH
+# 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
+################################################################################
+OTHER_ERROR = Error during loading the document: {0}
+
+INLINE_SCHEMA_ERROR = {0}
+
+WSDL_ERROR = {0}
+WSDL_GENERIC_WRONG_MESSAGE_REFERENCE = The {0} of operation ''{1}'' references undefined message ''{2}''
+WSDL_GENERIC_FAULT_WRONG_MESSAGE_REFERENCE = The fault ''{0}'' of operation ''{1}'' references undefined message ''{2}''
+WSDL_GENERIC_MESSAGE_PART_NO_REFERENCES = The message part ''{0}'' of message ''{1}'' has no element or type reference.
+WSDL_GENERIC_MESSAGE_PART_BOTH_ELEMENT_AND_TYPE = The message part ''{0}'' of message ''{1}'' has both element and type references. Only one of them is allowed.
+WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE = The port {0} references an undefined binding {1}:{2}
+WSDL_GENERIC_MESSAGE_PART_WRONG_ELEM_REFERENCE = The message {0} references an unresolved element {1}
+
+PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE = In the Partner Link ''{0}'' role is referencing undefined {1} port type
+PARTNER_LINK_GENERIC_SAME_PORT_TYPE_REFERENCE = The same Port Type {0} cannot be used in both 'service' and 'callback' roles
+PARTNER_LINK_GENERIC_PARTNER_OP_NOT_SPECIFIED = The [{0}] operation in callback portType [{1}] has no partner operation attribute
+PARTNER_LINK_GENERIC_PARTNER_OP_NON_EXISTING = The [{0}] ''callback'' portType references [{1}] partner operation in ''service'' [{2}] portType. But this operation is not defined in the [{2}] portType.
+PARTNER_LINK_GENERIC_PARTNER_OP_NOT_ONEWAY = The [{0}] ''callback'' portType references [{1}] partner operation in ''service'' [{2}] portType. But [{1}] is not declared as ''oneway''.
+PARTNER_LINK_GENERIC_DUP_FAULTS = The [{0}] ''callback'' portType declares duplicate ''default fault operation'' for [{1}] partner operation
+
+PARTS_REFERENCING_TYPES_NOT_ALLOWED = Invalid referencing in part ''{0}'' of a message ''{1}''. A message part can only reference an Element of XML Schema, not an XML Schema Type
+TYPE_UNDEFINED_FOR_MESSAGE_PART = The part ''{0}'' of the ''{1}'' message has no reference to an element
+XML_SCHEMA_CONSTRAINT = XSD Validation: [''{0}'']
+XML_WELLFORMNESS_PROBLEM = Malformed XML Document: {0}
+
+ONLY_ONE_MESSAGE_PART_ALLOWED = Message {0} has {1} message parts. Only one message part is allowed.
+
+SOP_INVALID_WSDL_DOCUMENT = Unable to reload the WSDL document, WSDL4J reported: [ {0} ]
+SOP_NON_LITERAL_MESSAGES_PRESENT = Message {0} is not a document-literal message. A message part can reference an element and not a type.
+SOP_MULTIPLE_MESSAGE_PARTS_PRESENT = Message {0} has {1} message parts. SOPERA supports only messages with a single part.
+SOP_MULTIPLE_FAULTS_PRESENT = Operation {0} in PortType {1} has {2} faults. Only one fault is supported by SOPERA.
+
+SOP_PARTICULARITY_CONSTRAINT = SOPERA Particularity constraint violated: {0}
+
+CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE = The Binding {0} references an undefined Port Type {1}:{2}
+CONSISTENCY_BINDING_WRONG_OPERATION_REFERENCE = The Binding {0} references an undefined Operation {1}
+CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA = The Binding Operation {0}:{1} declares {2}, but the Operation in PortType has no {2}
+CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING = The {2} is missing in the Binding {0} for the Operation {1}
+CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_EXTRA = The Binding Operation {0}:{1} declares {2} fault, but the Operation in PortType has no {2} fault
+CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_MISSING = The fault {2} is missing in the Binding {0} for the Operation {1}
+CONSISTENCY_SPDX_WRONG_PORTTYPE_REFERENCE = The Service Provider Description contains reference to an undefined Port Type {0}:{1}
+
+CONSISTENCY_PPDX_WRONG_PORTTYPE_REFERENCE = The Participant Policy contains reference to an undefined Port Type {0}:{1}
+CONSISTENCY_PPDX_MISSING_OPERATION = There was no explicit declaration or default operation element found for {0}
+CONSISTENCY_PPDX_GHOST_OPERATION = The operation {0} declared in Participant Policy does not exist in Port Type
+CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE = The Service Description Document cannot be resolved and loaded for consistency check
+CONSISTENCY_PPDX_WRONG_SERVICE_DEFINITION = The Participant Policy contains a wrong Service Description reference {0}
+CONSISTENCY_PPDX_DUPLICATE_OPERATION = The operation {0} declared in Participant Policy more than one time
+CONSISTENCY_PPDX_UNRESOLVABLE_OPDX_REFERENCE = Unable to load the OPDX document [URI: {0}, location: {1}] for Participant Policy consistency check
+CONSISTENCY_PPDX_NOT_JMS_OR_SBB2_NOTIFICATION_OPERATION = The notification operation {0} must be assigned to the JMS or SBB2 based transport binding
+CONSISTENCY_PPDX_INVALID_OPDX_REFERENCE = Reference in operation {0} [URI: {1}] doesn''t match OPDX document [URI: {2}, location: {3}]
+
+COMPATIBILITY_MESSAGE_WSDL_CONTAINS_MULTIPLE_FAULTS=WSDL document conatins multiple faults. It is not supported by SOPERA Code Generator. Result Service Description document can be used with untyped PAPI only.
+COMPATIBILITY_ERROR_IMPORT_WITHOUT_LOCATION=Input file contains imports without specified location
+COMPATIBILITY_ERROR_WSDL_CONTAINS_IMPORTS=Input file contains WSDL imports
+COMPATIBILITY_ERROR_NO_PORTTYPES=The input WSDL Document must contain at least one Port Type for import
+COMPATIBILITY_ERROR_NO_SELECTED_PORTTYPES=The output Document must contain at least one Port Type
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContext.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContext.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContext.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,160 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.base;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.BaseValidationObject;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.ValidationObjectID;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+
+/**
+ * The Class FSValidationContext.
+ */
+public class FSValidationContext implements IValidationContext {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(FSValidationContext.class);
+
+ /** The _context URI. */
+ private URI contextURI = null;
+
+ /** The _object relative URI. */
+ private URI objectRelativeURI = null;
+
+ /** The _object. */
+ private BaseValidationObject object = null;
+
+ /**
+ * Instantiates a new FS validation context.
+ *
+ * @param contextUri the context uri
+ * @param relativeObjectUri the relative object uri
+ */
+ protected FSValidationContext(final URI contextUri,
+ final URI relativeObjectUri) {
+ contextURI = contextUri;
+ objectRelativeURI = relativeObjectUri;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IValidationContext#getAllNestedValidationContexts()
+ */
+ public IValidationContext[] getAllNestedValidationContexts() {
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IValidationContext getNestedValidationContext(
+ ValidationObjectID pObjectID) {
+ IValidationContext nestedContext = null;
+ FSValidationContextFactory factory = FSValidationContextFactory
+ .getInstance();
+ URI nestedURI = pObjectID.getURI();
+ if (null != nestedURI) {
+ URI fullObjectURI = contextURI.resolve(nestedURI);
+ if (null != fullObjectURI) {
+ try {
+ nestedContext = factory.createContext(fullObjectURI
+ .getPath());
+ } catch (ContextInitializationException e) {
+ // unable to create the nested context
+ e.printStackTrace();
+ }
+ }
+ }
+
+ return nestedContext;
+ }
+
+ /**
+ * Gets the string from stream.
+ *
+ * @param is the is
+ *
+ * @return the string from stream
+ */
+ public static String getStringFromStream(InputStream is) {
+ if (is != null) {
+ InputStreamReader reader = null;
+ try {
+ reader = new InputStreamReader(is);
+ } catch (Exception e1) {
+ LOG.error("Unexpected exception in getStreamFromString", e1);
+ return null;
+ }
+ StringBuffer sb = new StringBuffer();
+ char[] b = new char[1024];
+ int n;
+ try {
+ while ((n = reader.read(b)) > 0) {
+ sb.append(b, 0, n);
+ }
+ } catch (IOException e) {
+ LOG.error("Can't read String from " + is, e);
+ }
+ return sb.toString();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IValidationObject getObject() {
+ if (null == object) {
+ URI fullObjectURI = contextURI.resolve(objectRelativeURI);
+
+ // get file object
+ File objectFile = new File(fullObjectURI);
+
+ // deternime the file type
+ ValidationObjectTypeEnum objectType = null;
+ objectType = BaseValidationObject
+ .resolveObjectTypeFromFileName(objectFile.getName());
+
+ // construct object id
+ QName fileQName = new QName("", objectFile.getName());
+ ValidationObjectID objectID = new ValidationObjectID(objectFile
+ .getName(), fileQName, fullObjectURI, objectType);
+ LOG.debug("Object URI = [" + fullObjectURI + "], object type = ["
+ + objectID.getType().getName() + "]");
+ object = new BaseValidationObject(objectID, objectFile);
+ }
+ return object;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setProperty(final String propName, Object propObj) {
+ // TODO::
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object getProperty(final String propName) {
+ // TODO::
+ return null;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContext.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContextFactory.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContextFactory.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContextFactory.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,82 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.base;
+
+import java.io.File;
+import java.net.URI;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+
+/**
+ * A factory for creating FSValidationContext objects.
+ */
+public class FSValidationContextFactory {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(FSValidationContextFactory.class);
+
+ /** The _instance. */
+ private static FSValidationContextFactory instance = null;
+
+ /**
+ * Instantiates a new FS validation context factory.
+ */
+ private FSValidationContextFactory() { };
+
+ /**
+ * Gets the single instance of FSValidationContextFactory.
+ *
+ * @return single instance of FSValidationContextFactory
+ */
+ public static FSValidationContextFactory getInstance() {
+ if (null == instance) {
+ instance = new FSValidationContextFactory();
+ }
+ return instance;
+ }
+
+ /**
+ * Creates a new FSValidationContext object.
+ *
+ * @param filePath the file path
+ *
+ * @return the i validation context
+ *
+ * @throws ContextInitializationException TODO.
+ */
+ public IValidationContext createContext(String filePath)
+ throws ContextInitializationException {
+
+ IValidationContext context = null;
+
+ File objFile = new File(filePath);
+ if (objFile.exists()) {
+
+ URI contextURI = objFile.getParentFile().toURI();
+ LOG.debug("The context URI for object is: [" + contextURI + "]");
+
+ URI relativeURI = null;
+ relativeURI = contextURI.relativize(objFile.toURI());
+ LOG.debug("The relative URI for object is: [" + relativeURI + "]");
+
+ context = new FSValidationContext(contextURI, relativeURI);
+
+ LOG.debug("The object type is: ["
+ + context.getObject().getID().getType().getName() + "]");
+
+ } else {
+ throw new ContextInitializationException("The [" + filePath
+ + "] does not exists on the file system");
+ }
+ return context;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/FSValidationContextFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/MemoryReporter.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/MemoryReporter.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/MemoryReporter.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,115 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.base;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.IReporter;
+
+/**
+ * The Class MemoryReporter.
+ */
+public class MemoryReporter implements IReporter {
+
+ /** The _messages. */
+ private List messages = new ArrayList();
+
+ /** The _error count. */
+ private int errorCount = 0;
+
+ /** The _warn count. */
+ private int warnCount = 0;
+
+ /**
+ * {@inheritDoc}
+ */
+ public void addMessage(IMessage message) {
+ if (IMessage.ERROR_SEVERITY == message.getSeverity()) {
+ errorCount++;
+ } else if (IMessage.WARNING_SEVERITY == message.getSeverity()) {
+ warnCount++;
+ }
+ messages.add(message);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void cancel() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List getErrorList() {
+ List out = new ArrayList();
+ Iterator it = messages.iterator();
+ while (it.hasNext()) {
+ IMessage message = (IMessage) it.next();
+ if (IMessage.ERROR_SEVERITY == message.getSeverity()) {
+ out.add(message);
+ }
+ }
+ return out;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List getWarningList() {
+ List out = new ArrayList();
+ Iterator it = messages.iterator();
+ while (it.hasNext()) {
+ IMessage message = (IMessage) it.next();
+ if (IMessage.WARNING_SEVERITY == message.getSeverity()) {
+ out.add(message);
+ }
+ }
+ return out;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#getErrorsCount()
+ */
+ public int getErrorsCount() {
+ return errorCount;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#getMessages()
+ */
+ public List getMessages() {
+ return messages;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#getWarningsCount()
+ */
+ public int getWarningsCount() {
+ return warnCount;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#isCanceled()
+ */
+ public boolean isCanceled() {
+ return false;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void removeAllMessages() {
+ messages.clear();
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/MemoryReporter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/SimpleFileReporter.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/SimpleFileReporter.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/SimpleFileReporter.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,148 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.base;
+
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.text.MessageFormat;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.IReporter;
+
+/**
+ * The Class SimpleFileReporter.
+ */
+public class SimpleFileReporter implements IReporter {
+
+ /** The _index. */
+ private int index = 0;
+
+ /** The _error count. */
+ private int errorCount = 0;
+
+ /** The _warn count. */
+ private int warnCount = 0;
+
+ /** The _output file. */
+ private FileOutputStream outputFile = null;
+
+ /**
+ * Instantiates a new simple file reporter.
+ *
+ * @param reportFile the report file
+ *
+ * @throws FileNotFoundException TODO.
+ */
+ public SimpleFileReporter(final String reportFile)
+ throws FileNotFoundException {
+
+ outputFile = new FileOutputStream(reportFile);
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#getErrorsCount()
+ */
+ public int getErrorsCount() {
+ return errorCount;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IReporter#getWarningsCount()
+ */
+ public int getWarningsCount() {
+ return warnCount;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void addMessage(IMessage message) {
+ try {
+ MessageFormat msgFmt = new MessageFormat(
+ "#{0} {4} {1} at line {2}: {3}\n");
+ String msgType = "Unknown";
+ if (IMessage.ERROR_SEVERITY == message.getSeverity()) {
+ errorCount++;
+ msgType = "ERROR";
+ } else if (IMessage.WARNING_SEVERITY == message.getSeverity()) {
+ warnCount++;
+ msgType = "WARNING";
+ }
+ index++;
+
+ String sourceIDName = "";
+ QName sourceID = (QName) (message
+ .getAttribute(IMessage.SOURCE_ATTRIB));
+ if (null != sourceID) {
+ sourceIDName = sourceID.toString();
+ }
+ String formattedMsg = msgFmt.format(new Object[] {
+ Integer.valueOf(index), msgType,
+ Integer.valueOf(message.getLineNumber()),
+ message.getMessageText(), sourceIDName });
+ outputFile.write(formattedMsg.getBytes());
+ } catch (IOException e) {
+ // unexpected problem while generating report
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void cancel() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List getWarningList() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List getErrorList() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public List getMessages() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isCanceled() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void removeAllMessages() {
+ errorCount = 0;
+ warnCount = 0;
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/SimpleFileReporter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/ValidationMessage.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/ValidationMessage.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/ValidationMessage.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,245 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.base;
+
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+
+/**
+ * The default implementation for Validation Message.
+ */
+public class ValidationMessage implements IMessage {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger.getLogger(ValidationMessage.class);
+
+ /** internal variables for storing. */
+
+ private int nSeverity = ERROR_SEVERITY;
+
+ /** The _offset. */
+ private int nOffset = OFFSET_UNDEFINED;
+
+ /** The _length. */
+ private int nLength = OFFSET_UNDEFINED;
+
+ /** The _line no. */
+ private int nLineNo = LINENO_UNDEFINED;
+
+ /** The _bundle name. */
+ private String nBundleName = null;
+
+ /** The _attributes. */
+ private HashMap nAttributes = new HashMap();
+
+ /** The _type. */
+ private MessageTypeEnum hType = null;
+
+ /** The _fmt params. */
+ private String[] sFmtParams = null;
+
+ /**
+ * Instantiates a new validation message.
+ *
+ * @param bundleName the bundle name
+ * @param severity the severity
+ * @param msgID the msg ID
+ * @param params the params
+ */
+ public ValidationMessage(final String bundleName, final int severity,
+ final MessageTypeEnum msgID, final String[] params) {
+ nBundleName = bundleName;
+ nSeverity = severity;
+ hType = msgID;
+ sFmtParams = params;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getBundleName()
+ */
+ public String getBundleName() {
+ return nBundleName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object getAttribute(String attributeName) {
+ return (null != attributeName) ? nAttributes.get(attributeName)
+ : attributeName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setAttribute(String attributeName, Object object) {
+ if (null != attributeName) {
+ nAttributes.put(attributeName, object);
+ }
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getAttributes()
+ */
+ public Map getAttributes() {
+ return nAttributes;
+ }
+
+ /**
+ * Gets the params.
+ *
+ * @return the params
+ */
+ public Object[] getParams() {
+ return sFmtParams;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getLength()
+ */
+ public int getLength() {
+ return nLength;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getLineNumber()
+ */
+ public int getLineNumber() {
+ return nLineNo;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getMessageText()
+ */
+ public String getMessageText() {
+ return getMessageText(null, Locale.getDefault());
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMessageText(Locale locale) {
+ return getMessageText(null, locale);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMessageText(ClassLoader classLoader) {
+ return getMessageText(classLoader, Locale.getDefault());
+ }
+
+ /**
+ * Gets the bundle.
+ *
+ * @param locale the locale
+ * @param classLoader the class loader
+ *
+ * @return the bundle
+ */
+ public ResourceBundle getBundle(Locale locale, ClassLoader classLoader) {
+ ResourceBundle bundle = null;
+ try {
+ if (null == classLoader) {
+ bundle = ResourceBundle.getBundle(getBundleName(), locale);
+ } else {
+ bundle = ResourceBundle.getBundle(getBundleName(), locale,
+ classLoader);
+ }
+ } catch (MissingResourceException e) {
+ try {
+ // try to load the bundle from the caller's context
+ bundle = ResourceBundle.getBundle(getBundleName(), locale, this
+ .getClass().getClassLoader());
+ } catch (MissingResourceException e2) {
+ // we definitly are not able to load the resource
+ LOG.error("The resource bundle [" + getBundleName()
+ + "] is missing: " + e2.getMessage(), e);
+ }
+ }
+ return bundle;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getMessageText(ClassLoader classLoader, Locale locale) {
+ String message = "";
+
+ ResourceBundle bundle = null;
+ if (locale != null) {
+ bundle = getBundle(locale, classLoader);
+ }
+
+ if (null != bundle) {
+ try {
+ String msgID = getMessageType().getID();
+ if (null != msgID) {
+ message = bundle.getString(getMessageType().getID());
+ if (getParams() != null) {
+ message = java.text.MessageFormat.format(message,
+ getParams());
+ }
+ } else {
+ LOG.error("Lookup failed. The message has no identifier!");
+ }
+ } catch (MissingResourceException e) {
+ LOG.error("The resource [" + getMessageType().getID()
+ + "] is missing in bundle [" + getBundleName() + "] : "
+ + e.getMessage(), e);
+ }
+ }
+
+ return message;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getMessageType()
+ */
+ public MessageTypeEnum getMessageType() {
+ return hType;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getOffset()
+ */
+ public int getOffset() {
+ return nOffset;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IMessage#getSeverity()
+ */
+ public int getSeverity() {
+ return nSeverity;
+ }
+
+ /**
+ * Sets the line no.
+ *
+ * @param lineNo the new line no
+ */
+ public void setLineNo(final int lineNo) {
+ nLineNo = lineNo;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String toString() {
+ return getMessageText();
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/base/ValidationMessage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/ValidatorCLI.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/ValidatorCLI.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/ValidatorCLI.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,89 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.cli;
+
+import java.io.FileNotFoundException;
+
+import org.eclipse.stp.common.validator.base.FSValidationContextFactory;
+import org.eclipse.stp.common.validator.base.SimpleFileReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.ValidatorTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.ValidatorFactoryDefImpl;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+/**
+ * The Class ValidatorCLI.
+ */
+public class ValidatorCLI {
+
+ /**
+ * The main method.
+ *
+ * @param args the arguments
+ */
+ public static void main(String[] args) {
+ if (args.length != 0) {
+
+ System.out.println("Processing [" + args[0] + "]");
+
+ // create context factory
+ FSValidationContextFactory contextFactory = FSValidationContextFactory
+ .getInstance();
+
+ IValidationContext context = null;
+ try {
+ // create generic Validator
+ IValidator genericValidator = ValidatorFactoryDefImpl.getInstance()
+ .getValidator(ValidatorTypeEnum.GENERIC_VALIDATOR);
+ // create Multi-Schema Validator
+ IValidator msvValidator = ValidatorFactoryDefImpl.getInstance()
+ .getValidator(ValidatorTypeEnum.MULTISCHEMA_VALIDATOR);
+
+ String filePath = args[0];
+ context = contextFactory.createContext(filePath);
+ // System.out.println("The context instance: " + context);
+
+ SimpleFileReporter reporterObj = null;
+ try {
+ reporterObj = new SimpleFileReporter("report.txt");
+ } catch (FileNotFoundException e) {
+ System.out.println("Unable to open the Reporter object: "
+ + e.toString());
+ }
+
+ System.out.println("Validating using MSV validator");
+
+ msvValidator.validate(context, reporterObj);
+
+ if (0 == reporterObj.getErrorsCount()) {
+ System.out.println("Validating using generic validator");
+ genericValidator.validate(context, reporterObj);
+ System.out.println("Done");
+ }
+ System.out.println("Done, [" + reporterObj.getErrorsCount()
+ + "] errors, [" + reporterObj.getWarningsCount()
+ + "] warning detected");
+ } catch (ContextInitializationException e) {
+ System.out.println("Context Initialization Problem");
+ e.printStackTrace();
+ } catch (SOPValidationException e) {
+ System.out.println("SOPERA Validation Problem");
+ e.printStackTrace();
+ } catch (ConfigurationException e) {
+ System.out.println("Validator Configuration Problem");
+ e.printStackTrace();
+ }
+ } else {
+ System.out.println("Usage: validator <fileName>");
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/cli/ValidatorCLI.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/BaseValidationObject.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/BaseValidationObject.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/BaseValidationObject.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,233 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+
+package org.eclipse.stp.common.validator.core;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.w3c.dom.Document;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * The Class BaseValidationObject.
+ */
+public class BaseValidationObject implements IValidationObject {
+
+ /** The _document builder. */
+ private static DocumentBuilder documentBuilder = null;
+
+ /** The _props. */
+ private Map props = new HashMap();
+
+ /** The _input stream. */
+ private InputStream inputStream = null;
+
+ /** The _file. */
+ private File fFile = null;
+
+ /** The _document. */
+ private Document document = null;
+
+ /** The _id. */
+ private ValidationObjectID id = null;
+
+ /** The _string. */
+ private String sString = null;
+
+
+ /**
+ * Instantiates a new base validation object.
+ *
+ * @param objID the obj ID
+ * @param is the is
+ */
+ public BaseValidationObject(ValidationObjectID objID, InputStream is) {
+ inputStream = is;
+ id = objID;
+ }
+
+ /**
+ * Instantiates a new base validation object.
+ *
+ * @param objID the obj ID
+ * @param string the string
+ */
+ public BaseValidationObject(ValidationObjectID objID, String string) {
+ id = objID;
+ sString = string;
+ }
+
+ /**
+ * Instantiates a new base validation object.
+ *
+ * @param objID the obj ID
+ * @param file the file
+ */
+ public BaseValidationObject(ValidationObjectID objID, File file) {
+ fFile = file;
+ id = objID;
+ }
+
+ /**
+ * Instantiates a new base validation object.
+ *
+ * @param objID the obj ID
+ * @param doc the doc
+ */
+ public BaseValidationObject(ValidationObjectID objID, Document doc) {
+ document = doc;
+ id = objID;
+ }
+
+ /** {@inheritDoc}
+ * @see org.eclipse.stp.common.validator.core.IValidationObject#getID()
+ */
+ public ValidationObjectID getID() {
+ return id;
+ }
+
+ /**
+ * Resolve object type from file name.
+ *
+ * @param fileName the file name
+ *
+ * @return the validation object type enum
+ */
+ public static ValidationObjectTypeEnum resolveObjectTypeFromFileName(
+ final String fileName) {
+ return ValidationObjectTypeEnum.lookup(
+ fileName.substring(fileName.lastIndexOf('.') + 1));
+ }
+
+ // private ByteArrayInputStream serializeDocument () throws
+ // ContextInitializationException {
+ // ByteArrayInputStream btInputStream = null;
+ // ByteArrayOutputStream btOutStream = new ByteArrayOutputStream ();
+ // try {
+ // Writer out = new BufferedWriter(new OutputStreamWriter(btOutStream,
+ // "UTF-8"));
+ //
+ // OutputFormat format = new OutputFormat(_document);
+ // format.setLineSeparator(LineSeparator.Windows);
+ // format.setLineWidth(65);
+ // format.setIndenting(true);
+ // format.setIndent(2);
+ // format.setPreserveSpace(false);
+ // XMLSerializer serializer = new XMLSerializer(out, format);
+ // try {
+ // serializer.asDOMSerializer();
+ // serializer.serialize(_document);
+ // out.close();
+ // } catch (IOException e) {
+ // throw new ContextInitializationException ("Problem while serializing the
+ // DOM Document to stream", e);
+ // }
+ // btInputStream = new ByteArrayInputStream (btOutStream.toByteArray());
+ // } catch (UnsupportedEncodingException e) {
+ // throw new ContextInitializationException ("Problem while serializing the
+ // DOM Document to stream", e);
+ // }
+ // return btInputStream;
+ // }
+
+ // public InputStream getInputStream() throws ContextInitializationException
+ // {
+ // InputStream inputStream = null;
+ // if (null != _file) {
+ // try {
+ // inputStream = new FileInputStream (_file);
+ // } catch (FileNotFoundException e) {
+ // throw new ContextInitializationException ("Unable to open stream on the
+ // source file", e);
+ // }
+ // } else if (null != _document) {
+ // ByteArrayInputStream btInputStream = serializeDocument ();
+ // inputStream = btInputStream;
+ // } else if (null != _string) {
+ // getInput ();
+ // ByteArrayInputStream btInputStream = serializeDocument ();
+ // inputStream = btInputStream;
+ // } else if (null != _inputStream) {
+ // inputStream = _inputStream;
+ // }
+ // return inputStream;
+ // }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Document getInput() throws ContextInitializationException {
+ // log.debug("Document requested for object [" +
+ // this._id.getSymbolicName() + "]"); //
+ if (null == document) {
+ // we need to instantiate the DOM Document from InputStream
+ if (null == documentBuilder) {
+ DocumentBuilderFactory factory = DocumentBuilderFactory
+ .newInstance();
+ factory.setValidating(false);
+ factory.setNamespaceAware(true);
+
+ try {
+ documentBuilder = factory.newDocumentBuilder();
+ } catch (ParserConfigurationException e) {
+ throw new ContextInitializationException(
+ "Could not instantiate DOM Document Builder: "
+ + e.getMessage(), e);
+ }
+ }
+
+ try {
+ if (null != fFile) {
+ document = documentBuilder.parse(new FileInputStream(fFile));
+ } else if (null != inputStream) {
+ document = documentBuilder.parse(inputStream);
+ } else if (null != sString) {
+ document = documentBuilder.parse(new InputSource(
+ new StringReader(sString)));
+ }
+ } catch (SAXException e) {
+ throw new ContextInitializationException(
+ "XML Parser is not able to reparse the document content: "
+ + e.getMessage(), e);
+ } catch (IOException e) {
+ throw new ContextInitializationException(
+ "The document content cannot be loaded: "
+ + e.getMessage(), e);
+ }
+ }
+ return document;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Object getProperty(String propName) {
+ return props.get(propName);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setProperty(String propName, Object propObj) {
+ props.put(propName, propObj);
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/BaseValidationObject.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IMessage.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IMessage.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IMessage.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,147 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import java.util.Locale;
+import java.util.Map;
+
+/**
+ * The interface declares the Validation Message Object.
+ * The implementations of this interface will allow:
+ * -
+ */
+public interface IMessage {
+
+ /** The _ CAUS e_ ATTRIB. */
+ String CAUSE_ATTRIB = "cause";
+
+ /** The _ SOURC e_ ATTRIB. */
+ String SOURCE_ATTRIB = "source";
+
+ /** The OFFSE t_ UNDEFINED. */
+ int OFFSET_UNDEFINED = -1;
+
+ /** The LINEN o_ UNDEFINED. */
+ int LINENO_UNDEFINED = -1;
+
+ /** Message Severity constants. */
+ int ERROR_SEVERITY = 0x0001;
+
+ /** The WARNIN g_ SEVERITY. */
+ int WARNING_SEVERITY = 0x0002;
+
+ /** The INF o_ SEVERITY. */
+ int INFO_SEVERITY = 0x0004;
+
+ /**
+ * Gets the message type.
+ *
+ * @return the message type.
+ */
+ MessageTypeEnum getMessageType();
+
+ /**
+ * Returns the length of the problem area.
+ *
+ * @return the length of the problem area, starting from the offset. If unset, value =
+ * IMessage.OFFSET_UNDEFINED.
+ */
+ int getLength();
+
+ /**
+ * Returns the line number where the error occurred.
+ *
+ * @return line number of the location of the problem,
+ * or LINENO_UNDEFINED if the line information is not provided
+ */
+ int getLineNumber();
+
+ /**
+ * The offset (number of characters) where the error block starts on the concrete line.
+ *
+ * @return offset of the message
+ */
+ int getOffset();
+
+ /**
+ * Provides the severety of the message (error, warning or info).
+ *
+ * @return the severity level of the message
+ */
+ int getSeverity();
+
+ /**
+ * Get the textual representation of the message for actual locale and classloader.
+ *
+ * @return Text representation of this message
+ */
+ String getMessageText();
+
+ /**
+ * Get the textual representation of the message for actual classloader
+ * and for specific locale.
+ *
+ * @param locale The locale to be used as preferred during lookup in properties bundle
+ *
+ * @return text representation of this message
+ */
+ String getMessageText(Locale locale);
+
+ /**
+ * Gets the message text.
+ *
+ * @param classLoader the class loader
+ *
+ * @return text representation of this message
+ */
+ String getMessageText(ClassLoader classLoader);
+
+ /**
+ * Get the textual representation of the message for a specific classloader and locale.
+ *
+ * @param classLoader The classloader object to be used for loading the properties bundle
+ * @param locale The locale to be used as preferred during lookup in properties bundle
+ *
+ * @return text representation of this message
+ */
+ String getMessageText(ClassLoader classLoader, Locale locale);
+
+ /**
+ * There is a possbility to associate/transfer custom object using this Message class.
+ * Custom Attributes are identified by key. The object may be queried using this method.
+ *
+ * @param attributeName The key for object's look up
+ *
+ * @return The associated object or null if no object found by the key
+ */
+ Object getAttribute(String attributeName);
+
+ /**
+ * There is a possbility to associate/transfer custom object using this Message class.
+ * Custom Attributes are identified by key. The object may be set using this setter method.
+ *
+ * @param attributeName The key for the attribute
+ * @param object The object to be associated with this message instance
+ */
+ void setAttribute(String attributeName, Object object);
+
+ /**
+ * May be used for direct access to the hash map containing the associated objects.
+ *
+ * @return The hash map containing the pairs 'key'-'object'
+ */
+ Map getAttributes();
+
+ /**
+ * Returns the name of the bundle used for getting localized message text.
+ *
+ * @return Name of the bundle
+ */
+ String getBundleName();
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IMessage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IReporter.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IReporter.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IReporter.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,76 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import java.util.List;
+
+/**
+ * The Interface IReporter.
+ */
+public interface IReporter {
+
+ /**
+ * Adds the message.
+ *
+ * @param message the message
+ */
+ void addMessage(IMessage message);
+
+ /**
+ * Gets the messages.
+ *
+ * @return the messages
+ */
+ List getMessages();
+
+ /**
+ * Removes the all messages.
+ */
+ void removeAllMessages();
+
+ /**
+ * Cancel.
+ */
+ void cancel();
+
+ /**
+ * Checks if is canceled.
+ *
+ * @return true, if is canceled
+ */
+ boolean isCanceled();
+
+ /**
+ * Gets the errors count.
+ *
+ * @return the errors count
+ */
+ int getErrorsCount();
+
+ /**
+ * Gets the warnings count.
+ *
+ * @return the warnings count
+ */
+ int getWarningsCount();
+
+ /**
+ * Gets the error list.
+ *
+ * @return the error list
+ */
+ List getErrorList();
+
+ /**
+ * Gets the warning list.
+ *
+ * @return the warning list
+ */
+ List getWarningList();
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IReporter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationContext.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationContext.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationContext.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+/**
+ * The Interface IValidationContext.
+ */
+public interface IValidationContext {
+
+ /** The PRO p_ SERVIC e_ QNAME. */
+ String PROP_SERVICE_QNAME = "serviceQName";
+
+ /**
+ * Gets the object.
+ *
+ * @return the object
+ */
+ IValidationObject getObject();
+
+ /**
+ * Gets the nested validation context.
+ *
+ * @param pObjectID the object ID
+ *
+ * @return the nested validation context
+ */
+ IValidationContext getNestedValidationContext(final ValidationObjectID pObjectID);
+
+ /**
+ * Gets the all nested validation contexts.
+ *
+ * @return the all nested validation contexts
+ */
+ IValidationContext[] getAllNestedValidationContexts();
+
+ /**
+ * Sets the property.
+ *
+ * @param propName the prop name
+ * @param propObj the prop obj
+ */
+ void setProperty(final String propName, Object propObj);
+
+ /**
+ * Gets the property.
+ *
+ * @param propName the prop name
+ *
+ * @return the property
+ */
+ Object getProperty(final String propName);
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationContext.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObject.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObject.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObject.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.w3c.dom.Document;
+
+/**
+ * The Interface IValidationObject.
+ */
+public interface IValidationObject {
+
+ /**
+ * Gets the input.
+ *
+ * @return the input
+ *
+ * @throws ContextInitializationException TODO.
+ */
+ Document getInput() throws ContextInitializationException;
+ // InputStream getInputStream() throws ContextInitializationException; //
+
+ /**
+ * Gets the ID.
+ *
+ * @return the ID
+ */
+ ValidationObjectID getID();
+
+ /**
+ * Sets the property.
+ *
+ * @param propName the prop name
+ * @param propObj the prop obj
+ */
+ void setProperty(final String propName, Object propObj);
+
+ /**
+ * Gets the property.
+ *
+ * @param propName the prop name
+ *
+ * @return the property
+ */
+ Object getProperty(final String propName);
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObject.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObjectFactory.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObjectFactory.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObjectFactory.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+
+/**
+ * A factory for creating IValidationObject objects.
+ */
+public interface IValidationObjectFactory {
+
+ /**
+ * Creates a new IValidationObject object.
+ *
+ * @param objID the obj ID
+ *
+ * @return the i validation object
+ *
+ * @throws ContextInitializationException TODO.
+ */
+ IValidationObject createObject(ValidationObjectID objID)
+ throws ContextInitializationException;
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidationObjectFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+
+/**
+ * The Interface IValidator.
+ */
+public interface IValidator {
+
+ /**
+ * Validate.
+ *
+ * @param pValidationContext the validation context
+ * @param pReporter the reporter
+ *
+ * @throws SOPValidationException TODO.
+ */
+ void validate(final IValidationContext pValidationContext, final IReporter pReporter) throws SOPValidationException;
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/IValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/MessageTypeEnum.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/MessageTypeEnum.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/MessageTypeEnum.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,194 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+
+package org.eclipse.stp.common.validator.core;
+
+/**
+ * The Class MessageTypeEnum.
+ */
+public final class MessageTypeEnum {
+
+ /** The Constant OTHER_ERROR. */
+ public static final MessageTypeEnum OTHER_ERROR = new MessageTypeEnum("OTHER_ERROR");
+
+ /** The Constant WSDL_ERROR. */
+ public static final MessageTypeEnum WSDL_ERROR = new MessageTypeEnum("WSDL_ERROR");
+
+ /** The Constant WSDL_GENERIC_WRONG_MESSAGE_REFERENCE. */
+ public static final MessageTypeEnum WSDL_GENERIC_WRONG_MESSAGE_REFERENCE = new MessageTypeEnum("WSDL_GENERIC_WRONG_MESSAGE_REFERENCE");
+
+ /** The Constant WSDL_GENERIC_FAULT_WRONG_MESSAGE_REFERENCE. */
+ public static final MessageTypeEnum WSDL_GENERIC_FAULT_WRONG_MESSAGE_REFERENCE = new MessageTypeEnum("WSDL_GENERIC_FAULT_WRONG_MESSAGE_REFERENCE");
+
+ /** The Constant WSDL_GENERIC_MESSAGE_PART_NO_REFERENCES. */
+ public static final MessageTypeEnum WSDL_GENERIC_MESSAGE_PART_NO_REFERENCES = new MessageTypeEnum("WSDL_GENERIC_MESSAGE_PART_NO_REFERENCES");
+
+ /** The Constant WSDL_GENERIC_MESSAGE_PART_WRONG_ELEM_REFERENCE. */
+ public static final MessageTypeEnum WSDL_GENERIC_MESSAGE_PART_WRONG_ELEM_REFERENCE = new MessageTypeEnum("WSDL_GENERIC_MESSAGE_PART_WRONG_ELEM_REFERENCE");
+
+ /** The Constant WSDL_GENERIC_MESSAGE_PART_BOTH_ELEMENT_AND_TYPE. */
+ public static final MessageTypeEnum WSDL_GENERIC_MESSAGE_PART_BOTH_ELEMENT_AND_TYPE = new MessageTypeEnum("WSDL_GENERIC_MESSAGE_PART_BOTH_ELEMENT_AND_TYPE");
+
+ /** The Constant WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE. */
+ public static final MessageTypeEnum WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE = new MessageTypeEnum("WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE");
+
+ /** The Constant INLINE_SCHEMA_ERROR. */
+ public static final MessageTypeEnum INLINE_SCHEMA_ERROR = new MessageTypeEnum("INLINE_SCHEMA_ERROR");
+
+ /** The Constant PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE = new MessageTypeEnum("PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE");
+
+ /** The Constant PARTNER_LINK_GENERIC_SAME_PORT_TYPE_REFERENCE. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_SAME_PORT_TYPE_REFERENCE = new MessageTypeEnum("PARTNER_LINK_GENERIC_SAME_PORT_TYPE_REFERENCE");
+
+ /** The Constant PARTNER_LINK_GENERIC_PARTNER_OP_NOT_SPECIFIED. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_PARTNER_OP_NOT_SPECIFIED = new MessageTypeEnum("PARTNER_LINK_GENERIC_PARTNER_OP_NOT_SPECIFIED");
+
+ /** The Constant PARTNER_LINK_GENERIC_PARTNER_OP_NON_EXISTING. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_PARTNER_OP_NON_EXISTING = new MessageTypeEnum("PARTNER_LINK_GENERIC_PARTNER_OP_NON_EXISTING");
+
+ /** The Constant PARTNER_LINK_GENERIC_PARTNER_OP_NOT_ONEWAY. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_PARTNER_OP_NOT_ONEWAY = new MessageTypeEnum("PARTNER_LINK_GENERIC_PARTNER_OP_NOT_ONEWAY");
+
+ /** The Constant PARTNER_LINK_GENERIC_DUP_FAULTS. */
+ public static final MessageTypeEnum PARTNER_LINK_GENERIC_DUP_FAULTS = new MessageTypeEnum("PARTNER_LINK_GENERIC_DUP_FAULTS");
+
+ /** The Constant PARTS_REFERENCING_TYPES_NOT_ALLOWED. */
+ public static final MessageTypeEnum PARTS_REFERENCING_TYPES_NOT_ALLOWED = new MessageTypeEnum("PARTS_REFERENCING_TYPES_NOT_ALLOWED");
+
+ /** The Constant TYPE_UNDEFINED_FOR_MESSAGE_PART. */
+ public static final MessageTypeEnum TYPE_UNDEFINED_FOR_MESSAGE_PART = new MessageTypeEnum("TYPE_UNDEFINED_FOR_MESSAGE_PART");
+
+ /** The Constant ONLY_ONE_MESSAGE_PART_ALLOWED. */
+ public static final MessageTypeEnum ONLY_ONE_MESSAGE_PART_ALLOWED = new MessageTypeEnum("ONLY_ONE_MESSAGE_PART_ALLOWED");
+
+ /** The Constant NO_BINDING_FOR_PORT. */
+ public static final MessageTypeEnum NO_BINDING_FOR_PORT = new MessageTypeEnum("NO_BINDING_FOR_PORT");
+
+ /** The Constant OPERATION_UNDEFINED_FOR_PORTTYPE. */
+ public static final MessageTypeEnum OPERATION_UNDEFINED_FOR_PORTTYPE = new MessageTypeEnum("OPERATION_UNDEFINED_FOR_PORTTYPE");
+
+ /** The Constant MESSAGE_UNDEFINED_FOR_INPUT. */
+ public static final MessageTypeEnum MESSAGE_UNDEFINED_FOR_INPUT = new MessageTypeEnum("MESSAGE_UNDEFINED_FOR_INPUT");
+
+ /** The Constant XML_SCHEMA_CONSTRAINT. */
+ public static final MessageTypeEnum XML_SCHEMA_CONSTRAINT = new MessageTypeEnum("XML_SCHEMA_CONSTRAINT");
+
+ /** The Constant XML_WELLFORMNESS_PROBLEM. */
+ public static final MessageTypeEnum XML_WELLFORMNESS_PROBLEM = new MessageTypeEnum("XML_WELLFORMNESS_PROBLEM");
+
+ /** The Constant SOP_INVALID_WSDL_DOCUMENT. */
+ public static final MessageTypeEnum SOP_INVALID_WSDL_DOCUMENT = new MessageTypeEnum("SOP_INVALID_WSDL_DOCUMENT");
+
+ /** The Constant SOP_NON_LITERAL_MESSAGES_PRESENT. */
+ public static final MessageTypeEnum SOP_NON_LITERAL_MESSAGES_PRESENT = new MessageTypeEnum("SOP_NON_LITERAL_MESSAGES_PRESENT");
+
+ /** The Constant SOP_MULTIPLE_MESSAGE_PARTS_PRESENT. */
+ public static final MessageTypeEnum SOP_MULTIPLE_MESSAGE_PARTS_PRESENT = new MessageTypeEnum("SOP_MULTIPLE_MESSAGE_PARTS_PRESENT");
+
+ /** The Constant SOP_MULTIPLE_FAULTS_PRESENT. */
+ public static final MessageTypeEnum SOP_MULTIPLE_FAULTS_PRESENT = new MessageTypeEnum("SOP_MULTIPLE_FAULTS_PRESENT");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_OPERATION_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_OPERATION_REFERENCE = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_OPERATION_REFERENCE");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_EXTRA. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_EXTRA = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_EXTRA");
+
+ /** The Constant CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_MISSING. */
+ public static final MessageTypeEnum CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_MISSING = new MessageTypeEnum("CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_MISSING");
+
+ /** The Constant CONSISTENCY_SPDX_WRONG_PORTTYPE_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_SPDX_WRONG_PORTTYPE_REFERENCE = new MessageTypeEnum("CONSISTENCY_SPDX_WRONG_PORTTYPE_REFERENCE");
+
+ /** The Constant CONSISTENCY_PPDX_WRONG_PORTTYPE_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_WRONG_PORTTYPE_REFERENCE = new MessageTypeEnum("CONSISTENCY_PPDX_WRONG_PORTTYPE_REFERENCE");
+
+ /** The Constant CONSISTENCY_PPDX_MISSING_OPERATION. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_MISSING_OPERATION = new MessageTypeEnum("CONSISTENCY_PPDX_MISSING_OPERATION");
+
+ /** The Constant CONSISTENCY_PPDX_GHOST_OPERATION. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_GHOST_OPERATION = new MessageTypeEnum("CONSISTENCY_PPDX_GHOST_OPERATION");
+
+ /** The Constant CONSISTENCY_PPDX_WRONG_SERVICE_DEFINITION. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_WRONG_SERVICE_DEFINITION = new MessageTypeEnum("CONSISTENCY_PPDX_WRONG_SERVICE_DEFINITION");
+
+ /** The Constant CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE = new MessageTypeEnum("CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE");
+
+ /** The Constant CONSISTENCY_PPDX_DUPLICATE_OPERATION. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_DUPLICATE_OPERATION = new MessageTypeEnum("CONSISTENCY_PPDX_DUPLICATE_OPERATION");
+
+ /** The Constant CONSISTENCY_PPDX_NOT_JMS_OR_SBB2_NOTIFICATION_OPERATION. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_NOT_JMS_OR_SBB2_NOTIFICATION_OPERATION = new MessageTypeEnum("CONSISTENCY_PPDX_NOT_JMS_OR_SBB2_NOTIFICATION_OPERATION");
+
+ /** The Constant CONSISTENCY_PPDX_UNRESOLVABLE_OPDX_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_UNRESOLVABLE_OPDX_REFERENCE = new MessageTypeEnum("CONSISTENCY_PPDX_UNRESOLVABLE_OPDX_REFERENCE");
+
+ /** The Constant CONSISTENCY_PPDX_INVALID_OPDX_REFERENCE. */
+ public static final MessageTypeEnum CONSISTENCY_PPDX_INVALID_OPDX_REFERENCE = new MessageTypeEnum("CONSISTENCY_PPDX_INVALID_OPDX_REFERENCE");
+
+ /** The Constant COMPATIBILITY_MESSAGE_WSDL_CONTAINS_MULTIPLE_FAULTS. */
+ public static final MessageTypeEnum COMPATIBILITY_MESSAGE_WSDL_CONTAINS_MULTIPLE_FAULTS = new MessageTypeEnum("COMPATIBILITY_MESSAGE_WSDL_CONTAINS_MULTIPLE_FAULTS");
+
+ /** The Constant COMPATIBILITY_ERROR_IMPORT_WITHOUT_LOCATION. */
+ public static final MessageTypeEnum COMPATIBILITY_ERROR_IMPORT_WITHOUT_LOCATION = new MessageTypeEnum("COMPATIBILITY_ERROR_IMPORT_WITHOUT_LOCATION");
+
+ /** The Constant COMPATIBILITY_ERROR_WSDL_CONTAINS_IMPORTS. */
+ public static final MessageTypeEnum COMPATIBILITY_ERROR_WSDL_CONTAINS_IMPORTS = new MessageTypeEnum("COMPATIBILITY_ERROR_WSDL_CONTAINS_IMPORTS");
+
+ /** The Constant COMPATIBILITY_ERROR_NO_PORTTYPES. */
+ public static final MessageTypeEnum COMPATIBILITY_ERROR_NO_PORTTYPES = new MessageTypeEnum("COMPATIBILITY_ERROR_NO_PORTTYPES");
+
+ /** The Constant COMPATIBILITY_ERROR_NO_SELECTED_PORTTYPES. */
+ public static final MessageTypeEnum COMPATIBILITY_ERROR_NO_SELECTED_PORTTYPES = new MessageTypeEnum("COMPATIBILITY_ERROR_NO_SELECTED_PORTTYPES");
+
+
+ /** The Constant SOP_PARTICULARITY_CONSTRAINT. */
+ public static final MessageTypeEnum SOP_PARTICULARITY_CONSTRAINT = new MessageTypeEnum("SOP_PARTICULARITY_CONSTRAINT");
+
+ /** The m ID. */
+ private final String mID;
+
+ /**
+ * Instantiates a new message type enum.
+ *
+ * @param pID the ID
+ */
+ public MessageTypeEnum(final String pID) {
+ mID = pID;
+ }
+
+ /**
+ * Gets the group.
+ *
+ * @return the group
+ */
+ public String getGroup() {
+ return "";
+ }
+
+ /**
+ * Gets the ID.
+ *
+ * @return the ID
+ */
+ public String getID() {
+ return mID;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/MessageTypeEnum.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectID.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectID.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectID.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,108 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+
+package org.eclipse.stp.common.validator.core;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The Class ValidationObjectID.
+ */
+public class ValidationObjectID {
+
+ /** The symbolic (non-unique) name of the object. */
+ private String mSymbolicName;
+
+ /** The QName of the object. */
+ private QName mQName;
+
+ /** The URI identifying the location of object. This is optional and is designed only for providing a hint for look up and resolving of object */
+ private URI mURI;
+
+ /** The type of the object. */
+ private ValidationObjectTypeEnum mObjectType;
+
+ /**
+ * Instantiates a new validation object ID.
+ *
+ * @param symbolicName the symbolic name
+ * @param qname the qname
+ * @param uri the uri
+ * @param objectType the object type
+ */
+ public ValidationObjectID(final String symbolicName,
+ final QName qname,
+ final URI uri,
+ final ValidationObjectTypeEnum objectType) {
+ mSymbolicName = symbolicName;
+ mURI = uri;
+ mObjectType = objectType;
+ mQName = qname;
+ }
+
+ /**
+ * Gets the symbolic name.
+ *
+ * @return the symbolic name
+ */
+ public String getSymbolicName() {
+ return mSymbolicName;
+ }
+
+ /**
+ * Gets the URI.
+ *
+ * @return the URI
+ */
+ public URI getURI() {
+ return mURI;
+ }
+
+ /**
+ * Gets the type.
+ *
+ * @return the type
+ */
+ public ValidationObjectTypeEnum getType() {
+ return mObjectType;
+ }
+
+ /**
+ * Gets the q name.
+ *
+ * @return the q name
+ */
+ public QName getQName() {
+ return mQName;
+ }
+
+ /**
+ * Sets the q name.
+ *
+ * @param name the new q name
+ */
+ public void setQName(QName name) {
+ mQName = name;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String toString() {
+ return "ValidationObjectID {objectType: " + mObjectType
+ + "; symbolicName: " + mSymbolicName
+ + "; qName: " + mQName
+ + "; uri: " + mURI
+ + "}";
+ }
+
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectID.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectTypeEnum.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectTypeEnum.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectTypeEnum.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,146 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * The enumeration of supported validation object types.
+ *
+ * @author Andrew Kalach
+ */
+public class ValidationObjectTypeEnum {
+
+ /** The Constant SDX_NAME. */
+ public static final String SDX_NAME = "SDX";
+
+ /** The Constant SPDX_NAME. */
+ public static final String SPDX_NAME = "SPDX";
+
+ /** The Constant WSDL_NAME. */
+ public static final String WSDL_NAME = "WSDL";
+
+ /** The Constant PPDX_NAME. */
+ public static final String PPDX_NAME = "PPDX";
+
+ /** The Constant OPX_NAME. */
+ public static final String OPX_NAME = "OPDX";
+
+ /** The Constant XSD_NAME. */
+ public static final String XSD_NAME = "XSD";
+
+ /** The Constant UNKNOWN_NAME. */
+ public static final String UNKNOWN_NAME = "UNKNOWN";
+
+ /** The Constant SDX_TYPE. */
+ public static final ValidationObjectTypeEnum SDX_TYPE = new ValidationObjectTypeEnum(SDX_NAME);
+
+ /** The Constant SPDX_TYPE. */
+ public static final ValidationObjectTypeEnum SPDX_TYPE = new ValidationObjectTypeEnum(SPDX_NAME);
+
+ /** The Constant WSDL_TYPE. */
+ public static final ValidationObjectTypeEnum WSDL_TYPE = new ValidationObjectTypeEnum(WSDL_NAME);
+
+ /** The Constant PPDX_TYPE. */
+ public static final ValidationObjectTypeEnum PPDX_TYPE = new ValidationObjectTypeEnum(PPDX_NAME);
+
+ /** The Constant OPX_TYPE. */
+ public static final ValidationObjectTypeEnum OPX_TYPE = new ValidationObjectTypeEnum(OPX_NAME);
+
+ /** The Constant XSD_TYPE. */
+ public static final ValidationObjectTypeEnum XSD_TYPE = new ValidationObjectTypeEnum(XSD_NAME);
+
+ /** The Constant UNKNOWN_TYPE. */
+ public static final ValidationObjectTypeEnum UNKNOWN_TYPE = new ValidationObjectTypeEnum(UNKNOWN_NAME);
+
+ /** The _mapping. */
+ private static Map mapping = new HashMap();
+
+ static {
+ mapping.put(SDX_NAME, SDX_TYPE);
+ mapping.put(SPDX_NAME, SPDX_TYPE);
+ mapping.put(WSDL_NAME, WSDL_TYPE);
+ mapping.put(PPDX_NAME, PPDX_TYPE);
+ mapping.put(OPX_NAME, OPX_TYPE);
+ mapping.put(XSD_NAME, XSD_TYPE);
+ mapping.put(UNKNOWN_NAME, UNKNOWN_TYPE);
+ }
+
+ /** The m name. */
+ private final String mName;
+
+ /**
+ * Instantiates a new validation object type enum.
+ *
+ * @param pName the name
+ */
+ private ValidationObjectTypeEnum(final String pName) {
+ mName = pName;
+ }
+
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
+ public String getName() {
+ return mName;
+ }
+
+ /**
+ * Gets the description.
+ *
+ * @return the description
+ */
+ public String getDescription() {
+ return "";
+ }
+
+ /**
+ * Lookup.
+ *
+ * @param typeString the type string
+ *
+ * @return the validation object type enum
+ */
+ public static ValidationObjectTypeEnum lookup(final String typeString) {
+ ValidationObjectTypeEnum validationObjectTypeEnum = (ValidationObjectTypeEnum) mapping
+ .get(typeString.toUpperCase());
+ if (validationObjectTypeEnum == null) {
+ validationObjectTypeEnum = UNKNOWN_TYPE;
+ }
+ return validationObjectTypeEnum;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean equals(Object obj) {
+ if (obj != null && obj instanceof ValidationObjectTypeEnum) {
+ ValidationObjectTypeEnum other = (ValidationObjectTypeEnum) obj;
+ return mName.equals(other.getName());
+ }
+ return false;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public int hashCode() {
+ return mName.hashCode();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String toString() {
+ return "ValidationObjectTypeEnum {'" + mName + "'}";
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidationObjectTypeEnum.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorFactory.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorFactory.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorFactory.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+
+/**
+ * A factory for creating Validator objects.
+ */
+public interface ValidatorFactory {
+
+ /**
+ * Gets the validator.
+ *
+ * @param pType the type
+ *
+ * @return the validator
+ *
+ * @throws ConfigurationException TODO.
+ */
+ IValidator getValidator(ValidatorTypeEnum pType) throws ConfigurationException;
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorTypeEnum.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorTypeEnum.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorTypeEnum.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core;
+
+/**
+ * The Class ValidatorTypeEnum.
+ */
+public class ValidatorTypeEnum {
+
+ /** The Constant GENERIC_VALIDATOR. */
+ public static final ValidatorTypeEnum GENERIC_VALIDATOR = new ValidatorTypeEnum("GENERIC_VALIDATOR");
+
+ /** The Constant COMPATIBILITY_VALIDATOR. */
+ public static final ValidatorTypeEnum COMPATIBILITY_VALIDATOR = new ValidatorTypeEnum("COMPATIBILITY_VALIDATOR");
+
+ /** The Constant MULTISCHEMA_VALIDATOR. */
+ public static final ValidatorTypeEnum MULTISCHEMA_VALIDATOR = new ValidatorTypeEnum("MULTISCHEMA_VALIDATOR");
+
+ /** The Constant CONSISTENCY_VALIDATOR. */
+ public static final ValidatorTypeEnum CONSISTENCY_VALIDATOR = new ValidatorTypeEnum("CONSISTENCY_VALIDATOR");
+
+ // for test purposes //
+ /** The Constant DUMMY_VALIDATOR. */
+ public static final ValidatorTypeEnum DUMMY_VALIDATOR = new ValidatorTypeEnum("DUMMY_VALIDATOR");
+
+ /** The m name. */
+ private final String mName;
+
+ /**
+ * Instantiates a new validator type enum.
+ *
+ * @param pName the name
+ */
+ private ValidatorTypeEnum(final String pName) {
+ mName = pName;
+ }
+
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
+ public String getName() {
+ return mName;
+ }
+
+ /**
+ * Gets the description.
+ *
+ * @return the description
+ */
+ public String getDescription() {
+ return "";
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/ValidatorTypeEnum.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ISchemaDocumentFactory.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ISchemaDocumentFactory.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ISchemaDocumentFactory.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import java.net.URI;
+import java.net.URL;
+
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+
+/**
+ * A factory for creating ISchemaDocument objects.
+ */
+public interface ISchemaDocumentFactory {
+
+ /**
+ * Returns the Schema object represented as validation object interface.
+ *
+ * @param schemaURI The unique schema URI
+ * @param context The actual validation context
+ *
+ * @return the schema object
+ *
+ * @throws ContextInitializationException TODO.
+ * @throws ConfigurationException TODO.
+ */
+ IValidationObject getSchemaObject(final URI schemaURI,
+ final IValidationContext context)
+ throws ContextInitializationException, ConfigurationException;
+
+ /**
+ * Lookup catalog.
+ *
+ * @param schemaURI the schema URI
+ *
+ * @return the URL
+ */
+ URL lookupCatalog(final String schemaURI);
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ISchemaDocumentFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/IXMLSchemaCatalog.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/IXMLSchemaCatalog.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/IXMLSchemaCatalog.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import java.net.URL;
+
+/**
+ * The Interface IXMLSchemaCatalog.
+ */
+public interface IXMLSchemaCatalog {
+
+ /**
+ * Adds the catalog entry.
+ *
+ * @param schemaURI the schema URI
+ * @param url the url
+ */
+ void addCatalogEntry(final String schemaURI, final URL url);
+
+ /**
+ * Resolve catalog entry.
+ *
+ * @param schemaURI the schema URI
+ *
+ * @return the URL
+ */
+ URL resolveCatalogEntry(final String schemaURI);
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/IXMLSchemaCatalog.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaDocumentFactoryImpl.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaDocumentFactoryImpl.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaDocumentFactoryImpl.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,281 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.apache.xerces.dom.DOMInputImpl;
+import org.apache.xerces.xni.XMLResourceIdentifier;
+import org.apache.xerces.xni.XNIException;
+import org.apache.xerces.xni.parser.XMLEntityResolver;
+import org.apache.xerces.xni.parser.XMLInputSource;
+import org.eclipse.stp.common.validator.core.BaseValidationObject;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidationObjectFactory;
+import org.eclipse.stp.common.validator.core.ValidationObjectID;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.service.URIConstants;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.w3c.dom.ls.LSInput;
+import org.w3c.dom.ls.LSResourceResolver;
+
+/**
+ * The Class SchemaDocumentFactoryImpl.
+ */
+public class SchemaDocumentFactoryImpl implements ISchemaDocumentFactory,
+ IValidationObjectFactory, XMLEntityResolver, LSResourceResolver {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(SchemaDocumentFactoryImpl.class);
+
+ /** The Constant WSDL11_SCHEMA_RES_PATH. */
+ private final static String WSDL11_SCHEMA_RES_PATH = "conf/wsdl.xsd";
+
+ /** The Constant SOPWARE_SDX20_RES_PATH. */
+ private final static String SOPWARE_SDX20_RES_PATH = "conf/wsdl-sdx.xsd";
+
+ /** The Constant SOPWARE_DOC_RES_PATH. */
+ private final static String SOPWARE_DOC_RES_PATH = "conf/documentation.xsd";
+
+ /** The Constant SOPWARE_SPDX20_RES_PATH. */
+ private final static String SOPWARE_SPDX20_RES_PATH = "conf/wsdl-spdx.xsd";
+
+ /** The Constant WS_POLICY_RES_PATH. */
+ private final static String WS_POLICY_RES_PATH = "conf/ws-policy.xsd";
+
+ /** The Constant WSS_WSSECURITY_RES_PATH. */
+ private final static String WSS_WSSECURITY_RES_PATH = "conf/oasis-200401-wss-wssecurity-utility-1.0.xsd";
+
+ /** The Constant WSS_WSSECURITY_EXT_RES_PATH. */
+ private final static String WSS_WSSECURITY_EXT_RES_PATH = "conf/oasis-200401-wss-wssecurity-secext-1.0.xsd";
+
+ /** The Constant SOPWARE_ASSERTIONS_RES_PATH. */
+ private final static String SOPWARE_ASSERTIONS_RES_PATH = "conf/SOPAssertions_21.xsd";
+
+ /** The Constant SOPWARE_PARTICIPANT_POLICY_RES_PATH. */
+ private final static String SOPWARE_PARTICIPANT_POLICY_RES_PATH = "conf/ParticipantPolicy_21.xsd";
+
+ /** The Constant XML_SCHEMA_DTD_RES_PATH. */
+ private final static String XML_SCHEMA_DTD_RES_PATH = "conf/XMLSchema.dtd";
+
+ /** The Constant XML_SCHEMA_DTD_DATATYPES_RES_PATH. */
+ private final static String XML_SCHEMA_DTD_DATATYPES_RES_PATH = "conf/datatypes.dtd";
+
+ /** The Constant PARTNER_LINK_RES_PATH. */
+ private final static String PARTNER_LINK_RES_PATH = "conf/partner-link.xsd";
+
+ /** The Constant JMS_TRANSPORT_RES_PATH. */
+ private final static String JMS_TRANSPORT_RES_PATH = "conf/wsdl-jms.xsd";
+
+ /** The Constant SOAP_TRANSPORT_RES_PATH. */
+ private final static String SOAP_TRANSPORT_RES_PATH = "conf/wsdl-soap.xsd";
+
+ /** The Constant EMPTY_SCHEMA_RES_PATH. */
+ private final static String EMPTY_SCHEMA_RES_PATH = "conf/emptyschema.xsd";
+
+ /** The _instance. */
+ private static SchemaDocumentFactoryImpl instance = null;
+
+ /** The XML Schema Catalog. */
+ private XMLCatalogImpl catalog = new XMLCatalogImpl();
+
+
+ /**
+ * Instantiates a new schema document factory impl.
+ */
+ private SchemaDocumentFactoryImpl() {
+ initializeCatalog();
+ }
+
+ /**
+ * Gets the single instance of SchemaDocumentFactoryImpl.
+ *
+ * @return single instance of SchemaDocumentFactoryImpl
+ */
+ public static ISchemaDocumentFactory getInstance() {
+ if (null == instance) {
+ instance = new SchemaDocumentFactoryImpl();
+ }
+ return instance;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public URL lookupCatalog(final String schemaURI) {
+ return catalog.resolveCatalogEntry(schemaURI);
+ }
+
+ /**
+ * Initialize catalog.
+ */
+ private void initializeCatalog() {
+ addSchema(URIConstants.WSDL11_SCHEMA_URI,
+ WSDL11_SCHEMA_RES_PATH);
+ addSchema(URIConstants.SOPWARE_SDX20_SCHEMA_URI,
+ SOPWARE_SDX20_RES_PATH);
+ addSchema(URIConstants.SOPWARE_DOC_SCHEMA_URI,
+ SOPWARE_DOC_RES_PATH);
+ addSchema(URIConstants.SOPWARE_SPDX20_SCHEMA_URI,
+ SOPWARE_SPDX20_RES_PATH);
+ addSchema(URIConstants.WS_POLICY_SCHEMA_URI,
+ WS_POLICY_RES_PATH);
+ addSchema(URIConstants.WSS_WSSECURITY_SCHEMA_URI,
+ WSS_WSSECURITY_RES_PATH);
+ addSchema(URIConstants.WSS_WSSECURITY_EXT_SCHEMA_URI,
+ WSS_WSSECURITY_EXT_RES_PATH);
+ addSchema(URIConstants.SOPWARE_ASSERTIONS_SCHEMA_URI,
+ SOPWARE_ASSERTIONS_RES_PATH);
+ addSchema(URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI,
+ SOPWARE_PARTICIPANT_POLICY_RES_PATH);
+ addSchema(URIConstants.XML_SCHEMA_DTD_PUBLIC_ID,
+ XML_SCHEMA_DTD_RES_PATH);
+ addSchema(URIConstants.XML_SCHEMA_DATATYPES_DTD_PUBLIC_ID,
+ XML_SCHEMA_DTD_DATATYPES_RES_PATH);
+ addSchema(URIConstants.PARTNER_LINK_URI,
+ PARTNER_LINK_RES_PATH);
+ addSchema(URIConstants.SOAP_TRANSPORT_URI,
+ SOAP_TRANSPORT_RES_PATH);
+ addSchema(URIConstants.JMS_TRANSPORT_URI,
+ JMS_TRANSPORT_RES_PATH);
+ addSchema(URIConstants.EMPTY_SCHEMA_URI,
+ EMPTY_SCHEMA_RES_PATH);
+ }
+
+ private void addSchema(String uri, String location) {
+ URL schemaURL = this.getClass().getClassLoader().getResource(location);
+ if (null != schemaURL) {
+ catalog.addCatalogEntry(uri, schemaURL);
+ } else {
+ LOG.error("Unable to retrieve the [" + uri + "]");
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IValidationObject getSchemaObject(final URI schemaURI,
+ final IValidationContext context)
+ throws ContextInitializationException, ConfigurationException {
+ IValidationObject schemaObject = null;
+ ValidationObjectID schemaObjectID = null;
+ QName schemaQName = new QName(schemaURI.toString(), "");
+ // perform look up in the catalog
+ URL resolvedSchema = catalog.resolveCatalogEntry(schemaURI.toString());
+ // log.debug("The schema URL resolved: " + resolvedSchema.toString());
+ // //
+ if (null != resolvedSchema) {
+ URI resolvedURI = null;
+ try {
+ resolvedURI = new URI(resolvedSchema.toExternalForm());
+ // log.debug("The URI resolved: " + resolvedURI.toString()); //
+ } catch (URISyntaxException e) {
+ LOG.error(
+ "Unable to remap the resolved URL: " + e.getMessage(),
+ e);
+ throw new ContextInitializationException(
+ "Unable to remap the resolved URL: " + e.getMessage(),
+ e);
+ }
+ schemaObjectID = new ValidationObjectID(resolvedSchema.getFile(),
+ schemaQName, resolvedURI, ValidationObjectTypeEnum.XSD_TYPE);
+ if (null != schemaObjectID) {
+ schemaObject = createObject(schemaObjectID);
+ } else {
+ throw new ContextInitializationException(
+ "Unable to initialize schema object registered in XML Catalog");
+ }
+ } else {
+ schemaObjectID = new ValidationObjectID(schemaURI.toString(),
+ schemaQName, schemaURI, ValidationObjectTypeEnum.XSD_TYPE);
+ IValidationContext nestedSchemaContext = context
+ .getNestedValidationContext(schemaObjectID);
+ if (null != nestedSchemaContext) {
+ schemaObject = nestedSchemaContext.getObject();
+ } else {
+ throw new ContextInitializationException(
+ "Unable to initialize schema object from nested context");
+ }
+ }
+ return schemaObject;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IValidationObject createObject(ValidationObjectID objID)
+ throws ContextInitializationException {
+ InputStream is = null;
+ try {
+ is = objID.getURI().toURL().openStream();
+ } catch (IOException e) {
+ throw new ContextInitializationException(
+ "Unable to access the schema document contents stream", e);
+ }
+ return new BaseValidationObject(objID, is);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public XMLInputSource resolveEntity(XMLResourceIdentifier xmlResID)
+ throws XNIException, IOException {
+ String schemaURI = xmlResID.getNamespace();
+ XMLInputSource xmlInputSource = null;
+
+ LOG
+ .debug("The entity resolver is asked for [" + schemaURI
+ + "] schema");
+ URL resolvedSchema = catalog.resolveCatalogEntry(schemaURI);
+ if (null != resolvedSchema) {
+ xmlInputSource = new XMLInputSource(xmlResID.getPublicId(),
+ resolvedSchema.toExternalForm(), xmlResID.getBaseSystemId());
+ }
+ return xmlInputSource;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public LSInput resolveResource(String type, String namespaceURI,
+ String publicId, String systemId, String baseURI) {
+ LSInput lsInput = null;
+ /*
+ * log.debug("The resource resolver is asked for [" + namespaceURI + "],
+ * type = [" + type + "] , baseURI = [" + baseURI + "] publicId = [" +
+ * publicId + "] systemId = [" + systemId + "]");
+ */
+
+ URL resolvedSchema = null;
+ if (null != namespaceURI) {
+ resolvedSchema = catalog.resolveCatalogEntry(namespaceURI);
+ } else {
+ resolvedSchema = catalog.resolveCatalogEntry(publicId);
+ }
+ if (null != resolvedSchema) {
+ lsInput = new DOMInputImpl(publicId, resolvedSchema
+ .toExternalForm(), baseURI);
+ } else {
+ LOG.error("Resource namespaceURI=[" + namespaceURI
+ + "], publicId=[" + publicId + "] cannot be resolved");
+ }
+ return lsInput;
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaDocumentFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaTypeValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaTypeValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaTypeValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,279 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.apache.xerces.impl.dv.InvalidDatatypeValueException;
+import org.apache.xerces.impl.dv.ValidatedInfo;
+import org.apache.xerces.impl.dv.ValidationContext;
+import org.apache.xerces.impl.dv.XSSimpleType;
+import org.apache.xerces.impl.validation.ValidationState;
+import org.apache.xerces.xs.XSAttributeDeclaration;
+import org.apache.xerces.xs.XSLoader;
+import org.apache.xerces.xs.XSModel;
+import org.apache.xerces.xs.XSTypeDefinition;
+import org.eclipse.stp.common.validator.core.impl.service.InlineSchemaHelper;
+import org.eclipse.stp.common.validator.core.impl.service.URIConstants;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.DOMConfiguration;
+import org.w3c.dom.DOMError;
+import org.w3c.dom.DOMErrorHandler;
+
+/**
+ * The Class SchemaTypeValidator.
+ */
+public class SchemaTypeValidator implements DOMErrorHandler {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(SchemaTypeValidator.class);
+
+ /** The _instance. */
+ private static SchemaTypeValidator instance = null;
+
+ /** The _xs loader. */
+ private static XSLoader xsLoader = null;
+
+ static {
+ xsLoader = InlineSchemaHelper.getXSLoaderInstance();
+ }
+
+ /** The cache of grammars. */
+ private Map grammars = null;
+
+ /**
+ * Instantiates a new schema type validator.
+ */
+ private SchemaTypeValidator() {
+ grammars = new HashMap();
+ }
+
+ /**
+ * Gets the single instance of SchemaTypeValidator.
+ *
+ * @return single instance of SchemaTypeValidator
+ */
+ public static SchemaTypeValidator getInstance() {
+ if (null == instance) {
+ instance = new SchemaTypeValidator();
+ }
+ return instance;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean handleError(DOMError err) {
+ LOG.error("The DOM Error catched: " + err.getMessage());
+ return true;
+ }
+
+ /**
+ * Gets the grammar.
+ *
+ * @param schemaURI the schema URI
+ *
+ * @return the grammar
+ *
+ * @throws SOPValidationException TODO.
+ */
+ private XSModel getGrammar(final String schemaURI)
+ throws SOPValidationException {
+ DOMConfiguration config = xsLoader.getConfig();
+ // set error handler
+ config.setParameter("error-handler", this);
+ // set validation feature
+ config.setParameter("validate", Boolean.TRUE);
+
+ XSModel grammar = null;
+
+ // lookup grammar in cache
+ grammar = (XSModel) grammars.get(schemaURI);
+ // lookup schema in the catalog
+ if (null == grammar) {
+
+ URL urlSchema = SchemaDocumentFactoryImpl.getInstance()
+ .lookupCatalog(schemaURI);
+ if (null != urlSchema) {
+
+ grammar = xsLoader.loadURI(urlSchema.toString());
+ grammars.put(schemaURI, grammar);
+ } else {
+ throw new SOPValidationException(
+ "Unable to resolve the data type schema in catalog: ["
+ + schemaURI + "]");
+ }
+ }
+ return grammar;
+ }
+
+ /**
+ * Gets the validation context.
+ *
+ * @return the validation context
+ */
+ private ValidationContext getValidationContext() {
+
+ ValidationState validationState = null;
+
+ // create an instance of 'ValidationState' providing the information
+ // required for the
+ // validation of datatypes id, idref, entity, notation, qname.
+ // application can also provide its own implementation of
+ // ValidationContext if required,
+ // an implementation of 'ValidationContext' is in
+ // 'org.apache.xerces.impl.validation' package.
+ validationState = new ValidationState();
+
+ // application need to pass validation context while validating string,
+ // object or creating simple type (applyFacets)
+ // derived by restriction, should set the following information
+ // accordingly
+
+ // application should provide the namespace support by calling
+ // TODO: we need this??? validationState.setNamespaceSupport(arg0);
+
+ // application can also provide 'SymbolTable'
+ // (org.apache.xerces.util.SymbolTable) like
+ // validationState.setSymbolTable(....);
+
+ // set proper value (true/false) for the given validation context
+ // validationState.setFacetChecking(true);
+
+ // set proper value (true/false) for the given validation context
+ // validationState.setExtraChecking(false);
+ return validationState;
+ }
+
+ /**
+ * Validate simple type.
+ *
+ * @param schemaURI the schema URI
+ * @param simpleTypeName the simple type name
+ * @param inputValue the input value
+ *
+ * @return the string
+ *
+ * @throws SOPValidationException TODO.
+ */
+ public String validateSimpleType(final String schemaURI,
+ final String simpleTypeName, final String inputValue)
+ throws SOPValidationException {
+ String errMsg = null;
+ XSTypeDefinition typeDef = null;
+
+ if (0 == schemaURI.compareTo(URIConstants.XSD_SCHEMA_2001_URI)) {
+ // Standard XML Schema data type
+ XSModel emptyGrammar = getGrammar(URIConstants.EMPTY_SCHEMA_URI);
+ if (null != emptyGrammar) {
+ typeDef = emptyGrammar.getTypeDefinition(simpleTypeName,
+ URIConstants.XSD_SCHEMA_2001_URI);
+ }
+ } else {
+ XSModel grammar = getGrammar(schemaURI);
+ if (null == grammar) {
+ throw new SOPValidationException(
+ "Unable to retrieve XML Schema object for ["
+ + schemaURI + "]");
+ }
+ typeDef = grammar.getTypeDefinition(simpleTypeName, schemaURI);
+ }
+
+ // XMLSchemaSchema.SimpleTypeContainer types = schema.simpleTypes;
+ // SimpleTypeExp exp = types.get(simpleTypeName);
+
+ if (null != typeDef) {
+ // XSDatatype expDataType = (XSDatatype)exp.getDatatype();
+ try {
+ if (typeDef.getTypeCategory() == XSTypeDefinition.SIMPLE_TYPE) {
+
+ XSSimpleType simpleTypeDef = (XSSimpleType) typeDef;
+
+ LOG.debug("Simple Type definition [ " + simpleTypeDef
+ + " ]");
+ ValidatedInfo validatedInfo = new ValidatedInfo();
+ ValidationContext validationContext = getValidationContext();
+
+ simpleTypeDef.validate(inputValue, validationContext,
+ validatedInfo);
+
+ } else {
+ throw new SOPValidationException("The [" + simpleTypeName
+ + "] is not a simple type");
+ }
+
+ // log.debug("The value has passed validation"); //
+ errMsg = null;
+ } catch (InvalidDatatypeValueException e) {
+ errMsg = e.getMessage();
+ LOG.error("Invalid datatype value: " + e.toString());
+ }
+
+ } else {
+ throw new SOPValidationException("Simple Type definition ["
+ + schemaURI + "][" + simpleTypeName + "] cannot be found");
+ }
+ return errMsg;
+ }
+
+ /**
+ * Validate attrib.
+ *
+ * @param schemaURI the schema URI
+ * @param attribName the attrib name
+ * @param inputValue the input value
+ *
+ * @return the string
+ *
+ * @throws SOPValidationException TODO.
+ */
+ public String validateAttrib(final String schemaURI,
+ final String attribName, final String inputValue)
+ throws SOPValidationException {
+ String errMsg = null;
+ XSModel grammar = getGrammar(schemaURI);
+ if (null == grammar) {
+ throw new SOPValidationException(
+ "Unable to retrieve XML Schema object for [" + schemaURI
+ + "]");
+ }
+ XSAttributeDeclaration attribDecl = grammar.getAttributeDeclaration(
+ attribName, schemaURI);
+ if (null != attribDecl) {
+ XSTypeDefinition typeDef = attribDecl.getTypeDefinition();
+ if (typeDef.getTypeCategory() == XSTypeDefinition.SIMPLE_TYPE) {
+ try {
+ XSSimpleType simpleTypeDef = (XSSimpleType) typeDef;
+ ValidatedInfo validatedInfo = new ValidatedInfo();
+ ValidationContext validationContext = getValidationContext();
+
+ simpleTypeDef.validate(inputValue, validationContext,
+ validatedInfo);
+ } catch (InvalidDatatypeValueException e) {
+ errMsg = e.getMessage();
+ LOG.error("Invalid datatype value: " + e.toString());
+ }
+
+ } else {
+ throw new SOPValidationException("Attribute type definition ["
+ + schemaURI + "][" + attribName
+ + "] is not a simple type");
+ }
+ } else {
+ throw new SOPValidationException("Attribute definition ["
+ + schemaURI + "][" + attribName + "] cannot be found");
+ }
+
+ return errMsg;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/SchemaTypeValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ValidatorFactoryDefImpl.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ValidatorFactoryDefImpl.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ValidatorFactoryDefImpl.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.ValidatorFactory;
+import org.eclipse.stp.common.validator.core.ValidatorTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.service.CompatibilityValidator;
+import org.eclipse.stp.common.validator.core.impl.service.ConsistencyValidator;
+import org.eclipse.stp.common.validator.core.impl.service.GenericValidator;
+import org.eclipse.stp.common.validator.core.impl.service.MultiSchemaValidator;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+
+/**
+ * The Class ValidatorFactoryDefImpl.
+ */
+public class ValidatorFactoryDefImpl implements ValidatorFactory {
+
+ private static ValidatorFactory validatorFactory;
+
+ private ValidatorFactoryDefImpl() {
+ }
+
+ public static ValidatorFactory getInstance() {
+ if (validatorFactory == null) {
+ validatorFactory = new ValidatorFactoryDefImpl();
+ }
+ return validatorFactory;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IValidator getValidator(ValidatorTypeEnum pType) throws ConfigurationException {
+ //LOG.debug("Instantiating the validator for [" + pType.getName() + "] type");
+ if (0 == pType.getName().compareTo(ValidatorTypeEnum.GENERIC_VALIDATOR.getName())) {
+ IValidator val = new GenericValidator();
+ return val;
+ } else if (0 == pType.getName().compareTo(ValidatorTypeEnum.MULTISCHEMA_VALIDATOR.getName())) {
+ IValidator msvVal = new MultiSchemaValidator();
+ return msvVal;
+ } else if (0 == pType.getName().compareTo(ValidatorTypeEnum.COMPATIBILITY_VALIDATOR.getName())) {
+ IValidator compVal = new CompatibilityValidator();
+ return compVal;
+ } else if (0 == pType.getName().compareTo(ValidatorTypeEnum.CONSISTENCY_VALIDATOR.getName())) {
+ IValidator consistencyVal = new ConsistencyValidator();
+ return consistencyVal;
+ } else {
+ throw new ConfigurationException("Unknown validator type requested");
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/ValidatorFactoryDefImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/XMLCatalogImpl.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/XMLCatalogImpl.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/XMLCatalogImpl.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Simple XML catalog entries container.
+ */
+public class XMLCatalogImpl implements IXMLSchemaCatalog {
+
+ /** The _entries. */
+ private Map entries = new HashMap();
+
+ /**
+ * Instantiates a new XML catalog impl.
+ */
+ public XMLCatalogImpl() { }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void addCatalogEntry(String schemaURI, URL url) {
+ entries.put(schemaURI, url);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public URL resolveCatalogEntry(String schemaURI) {
+ return (URL) entries.get(schemaURI);
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/XMLCatalogImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/CompatibilityValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/CompatibilityValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/CompatibilityValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,370 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.wsdl.Definition;
+import javax.wsdl.Message;
+import javax.wsdl.Operation;
+import javax.wsdl.Part;
+import javax.wsdl.PortType;
+import javax.wsdl.WSDLException;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.base.ValidationMessage;
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.Document;
+import org.w3c.dom.NodeList;
+
+/**
+ * The Class CompatibilityValidator.
+ */
+public class CompatibilityValidator implements IValidator {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(CompatibilityValidator.class);
+
+ /** The Constant _MSG_BUNDLE_NAME. */
+ private static final String MSG_BUNDLE_NAME = "messages";
+
+ /** The m_reporter. */
+ private IReporter reporter = null;
+
+
+
+ /**
+ * Instantiates a new compatibility validator.
+ */
+ public CompatibilityValidator() {
+ }
+
+ /**
+ * Sets the reporter.
+ *
+ * @param ref the new reporter
+ */
+ private void setReporter(IReporter ref) {
+ reporter = ref;
+ }
+
+ /**
+ * Report warning message.
+ *
+ * @param msgID the msg ID
+ * @param params the params
+ * @param cause the cause
+ */
+ private void reportWarningMessage(MessageTypeEnum msgID, String[] params,
+ Object cause) {
+ if (null != reporter) {
+ reportMessage(IMessage.WARNING_SEVERITY, msgID, params, cause);
+ }
+ }
+
+ /**
+ * Report error message.
+ *
+ * @param msgID the msg ID
+ * @param params the params
+ * @param cause the cause
+ */
+ private void reportErrorMessage(MessageTypeEnum msgID, String[] params,
+ Object cause) {
+ if (null != reporter) {
+ reportMessage(IMessage.ERROR_SEVERITY, msgID, params, cause);
+ }
+ }
+
+ /**
+ * Report message.
+ *
+ * @param severity the severity
+ * @param msgID the msg ID
+ * @param params the params
+ * @param cause the cause
+ */
+ private void reportMessage(int severity, MessageTypeEnum msgID,
+ String[] params, Object cause) {
+ if (null != reporter) {
+ IMessage msg = new ValidationMessage(MSG_BUNDLE_NAME, severity,
+ msgID, params);
+ if (null != cause) {
+ msg.setAttribute("cause", cause);
+ }
+ reporter.addMessage(msg);
+ }
+ }
+
+ /**
+ * Check SO pware constraints.
+ *
+ * @param inputDocument the input document
+ * @param selectedPortType the selected port type
+ */
+ public void checkSOPwareConstraints(Document inputDocument,
+ String selectedPortType) {
+ // InputStreamReader isReader = new InputStreamReader(inputStream);
+ // InputSource docSource = new InputSource (isReader);
+ WSDLFactory factory = null;
+ WSDLReader reader = null;
+
+ LOG.debug("Checking for SOPERA constraints for [" + selectedPortType
+ + "] port type");
+
+ try {
+ factory = WSDLFactory.newInstance();
+ reader = factory.newWSDLReader();
+
+ reader.setFeature("javax.wsdl.verbose", true);
+ // We do not load any external documents in present time.
+ // WSDL4J does loading of imported documents itself, possibly
+ // it is possible to provide resource resolver for it?
+ reader.setFeature("javax.wsdl.importDocuments", false);
+
+ Definition def = reader.readWSDL(null, inputDocument);
+ Map messages = def.getMessages();
+ if (null != messages) {
+ // loop all messages
+ Iterator messageIt = messages.values().iterator();
+ while (messageIt.hasNext()) {
+ Message msg = (Message) messageIt.next();
+
+ LOG.debug("Checking [" + msg.getQName().toString()
+ + "] message");
+
+ Map parts = msg.getParts();
+ int cParts = parts.size();
+
+ // 1. check for non-literal messages
+ boolean bNonLiteral = false;
+
+ Iterator partsIt = parts.values().iterator();
+ while (partsIt.hasNext()) {
+ Part part = (Part) partsIt.next();
+ if (null == part.getElementName()) {
+ bNonLiteral = true;
+ }
+ }
+ if (bNonLiteral) {
+ reportWarningMessage(
+ MessageTypeEnum.SOP_NON_LITERAL_MESSAGES_PRESENT,
+ new String[] { msg.getQName().toString() },
+ null);
+ }
+
+ // 2. check for multiple message parts
+ if (cParts > 1) {
+ reportWarningMessage(
+ MessageTypeEnum.SOP_MULTIPLE_MESSAGE_PARTS_PRESENT,
+ new String[] { msg.getQName().toString(),
+ String.valueOf(cParts) }, null);
+ }
+ }
+ }
+
+ Map portTypes = def.getPortTypes();
+ if (null != portTypes) {
+ Iterator portIt = portTypes.values().iterator();
+ while (portIt.hasNext()) {
+ PortType portType = (PortType) portIt.next();
+ String portLocalName = portType.getQName().getLocalPart();
+ if ((null == selectedPortType)
+ || (null != selectedPortType && 0 == portLocalName
+ .compareTo(selectedPortType))) {
+
+ LOG.debug("Checking [" + selectedPortType
+ + "] port type");
+
+ List operations = portType.getOperations();
+ if (null != operations) {
+ Iterator opIt = operations.iterator();
+ while (opIt.hasNext()) {
+ Operation op = (Operation) opIt.next();
+ Map faults = op.getFaults();
+ if (null != faults && faults.size() > 1) {
+ reportWarningMessage(
+ MessageTypeEnum.SOP_MULTIPLE_FAULTS_PRESENT,
+ new String[] {
+ op.getName(),
+ portType.getQName()
+ .toString(),
+ String.valueOf(faults
+ .size()) }, null);
+ }
+ }
+ }
+
+ }
+ }
+ }
+
+ NodeList nl = XPathHelper.getXPathResultList(inputDocument
+ .getDocumentElement(), "/wsdl:definitions/wsdl:portType");
+ if (nl.getLength() == 0) {
+ reportErrorMessage(
+ MessageTypeEnum.COMPATIBILITY_ERROR_NO_PORTTYPES,
+ new String[] { "" }, null);
+ }
+
+ if (selectedPortType.equals("")) {
+ reportErrorMessage(
+ MessageTypeEnum.COMPATIBILITY_ERROR_NO_SELECTED_PORTTYPES,
+ new String[] { "" }, null);
+ } else {
+ nl = XPathHelper
+ .getXPathResultList(
+ inputDocument.getDocumentElement(),
+ "/wsdl:definitions/wsdl:portType[@name='" + selectedPortType + "']/wsdl:operation[count(wsdl:fault) > 1]"); //$NON-NLS-1$ //$NON-NLS-2$
+ if (nl.getLength() != 0) {
+ reportWarningMessage(
+ MessageTypeEnum.COMPATIBILITY_MESSAGE_WSDL_CONTAINS_MULTIPLE_FAULTS,
+ new String[] { selectedPortType }, null);
+ }
+ }
+
+ nl = XPathHelper
+ .getXPathResultList(inputDocument.getDocumentElement(),
+ "/wsdl:definitions/wsdl:types/xsd:schema/xsd:import[not(@schemaLocation)]"); //$NON-NLS-1$
+ if (nl.getLength() != 0) {
+ reportErrorMessage(
+ MessageTypeEnum.COMPATIBILITY_ERROR_IMPORT_WITHOUT_LOCATION,
+ new String[] { "" }, null);
+ }
+ nl = XPathHelper.getXPathResultList(inputDocument
+ .getDocumentElement(), "/wsdl:definitions/wsdl:import"); //$NON-NLS-1$
+ if (nl.getLength() != 0) {
+ reportErrorMessage(
+ MessageTypeEnum.COMPATIBILITY_ERROR_WSDL_CONTAINS_IMPORTS,
+ new String[] { "" }, null);
+ }
+
+ // Map bindings = def.getBindings();
+ // Iterator bindIt = bindings.values().iterator();
+ // while (bindIt.hasNext()) {
+ // Binding binding = (Binding)bindIt.next();
+ // binding.getExtensibilityElements()
+ // TODO: check for SOAP bindings
+ // }
+
+ // //NodeIterator nodesPortType = wsdlProvider.getMultiXPathResult(
+ // // "/wsdl:definitions/wsdl:portType");
+ // //if(nodesPortType != null && nodesPortType.nextNode() != null &&
+ // nodesPortType.nextNode() != null)
+ // // warnMsg += "Document contains multiple portType nodes\n";
+ //
+ // nodesBinding =
+ // wsdlProvider.getMultiXPathResult("/wsdl:definitions/wsdl:binding[not(soap:binding)][substring-after(@type,
+ // ':') = '" + selectedPortType + "']");
+ // warnMsg += String.valueOf(index++) + ". A service description
+ // only supports SOAP based bindings\n";
+ //
+ // nodesBinding =
+ // wsdlProvider.getMultiXPathResult("/wsdl:definitions/wsdl:binding[soap:binding][substring-after(@type,
+ // ':') = '" + selectedPortType + "']");
+ // // all soap binding extracted
+ // while (null != (nodeBinding = nodesBinding.nextNode())) {
+ //
+ // String bindingName = ((Element)nodeBinding).getAttribute("name");
+ // Node soapBindingNode =
+ // wsdlProvider.getSingleXPathResult(nodeBinding, "./soap:binding");
+ // String soapTransport =
+ // ((Element)soapBindingNode).getAttribute("transport");
+ // log.debug("Binding name=" + bindingName + " transport = " +
+ // soapTransport);
+ //
+ // NodeIterator opNodesIt = wsdlProvider.getMultiXPathResult
+ // (nodeBinding, "./wsdl:operation");
+ // Node opNode = null;
+ // while (null != (opNode = opNodesIt.nextNode())) {
+ // String opName = ((Element)opNode).getAttribute("name");
+ // String xPath =
+ // "/wsdl:definitions/wsdl:binding[soap:binding[@transport = '" +
+ // soapTransport + "']][@name != '" + bindingName +
+ // "'][substring-after(@type, ':') = '" + selectedPortType +
+ // "']/wsdl:operation[@name = '" + opName + "']";
+ // log.debug ("Op Name = " + opName + " xPath = " + xPath);
+ // if (null != wsdlProvider.getSingleXPathResult(xPath)) {
+ // warnMsg = String.valueOf(index++) + ". A WSDL operation may only
+ // appear in different bindings only if these bindings use different
+ // transports\n";
+ // }
+ // }
+ // }
+ // }
+
+ } catch (WSDLException e) {
+ LOG.error("WSDL problem while performing validation: "
+ + e.getMessage(), e);
+
+ reportWarningMessage(MessageTypeEnum.SOP_INVALID_WSDL_DOCUMENT,
+ new String[] { e.getMessage() }, null);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void validate(IValidationContext pValidationContext,
+ IReporter pReporter) throws SOPValidationException {
+ try {
+ setReporter(pReporter);
+
+ IValidationObject valObj = pValidationContext.getObject();
+
+ if (null == valObj) {
+ LOG.error("Empty object as input for validation");
+ throw new ContextInitializationException(
+ "Empty object as input for validation");
+ }
+
+ Document inputDocument = null;
+ try {
+ inputDocument = valObj.getInput();
+ } catch (ContextInitializationException e) {
+ LOG.error("Unable to initialize context before validation: "
+ + e.toString());
+ throw new SOPValidationException(
+ "Unable to initialize context before validation", e);
+ }
+
+ if (valObj.getID().getType().equals(
+ ValidationObjectTypeEnum.WSDL_TYPE)) {
+ String portType = (String) pValidationContext
+ .getProperty("portType");
+ checkSOPwareConstraints(inputDocument, portType);
+ } else {
+ LOG.error("Unsupported type of the validation object");
+ }
+ } catch (SOPValidationException e) {
+ throw e;
+ } catch (Exception e) {
+ LOG.error("Unexpected error during validation: [" + e.getMessage()
+ + "]", e);
+ throw new SOPValidationException(
+ "Unexpected error during validation: [" + e.getMessage()
+ + "]", e);
+ } finally {
+ setReporter(null);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/CompatibilityValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/ConsistencyValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/ConsistencyValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/ConsistencyValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,568 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.wsdl.Binding;
+import javax.wsdl.BindingFault;
+import javax.wsdl.BindingOperation;
+import javax.wsdl.Definition;
+import javax.wsdl.Fault;
+import javax.wsdl.Import;
+import javax.wsdl.Operation;
+import javax.wsdl.OperationType;
+import javax.wsdl.PortType;
+import javax.wsdl.WSDLException;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.eclipse.stp.common.validator.core.ValidationObjectID;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+
+/**
+ * Performs the consistency validation between dependent documents.
+ *
+ * @author Andrew Kalach
+ */
+public class ConsistencyValidator implements IValidator {
+
+ /** The logger instance. */
+ private static final Logger LOG = Logger.getLogger(ConsistencyValidator.class);
+
+ /** The Constant attribute name 'service'. */
+ private static final String PPDX_ATTRIB_NAME_SERVICE = "service";
+
+ /** The Constant attribute name 'serviceLocation'. */
+ private static final String PPDX_ATTRIB_NAME_SERVICE_LOCATION = "serviceLocation";
+
+ /** The Constant attribute name 'name'. */
+ private static final String PPDX_ATTRIB_OPERATION_NAME = "name";
+
+ /** The Constant element name 'DefaultOperation'. */
+ private static final String PPDX_ELEMENT_NAME_DEFAULT_OPERATION = "DefaultOperation";
+
+ /** The Constant element name 'Operation'. */
+ private static final String PPDX_ELEMENT_NAME_OPERATION = "Operation";
+
+ /** The Constant element name 'PolicyReference'. */
+ private static final String PPDX_ELEMENT_NAME_POLICY_REFERENCE = "PolicyReference";
+
+ /** The Constant element name 'unused'. */
+ private static final String PPDX_ELEMENT_NAME_UNUSED = "unused";
+
+ /** The Constant attribute name 'URI'. */
+ private static final String PPDX_ATTRIB_NAME_URI = "URI";
+
+ /** The Constant attribute name 'location'. */
+ private static final String PPDX_ATTRIB_NAME_LOCATION = "location";
+
+ /** The Constant element name 'JmsTransport'. */
+ private static final String OPDX_ELEMENT_NAME_JMS_TRANSPORT = "JmsTransport";
+
+ /** The Constant element name 'Sbb2Transport'. */
+ private static final String OPDX_ELEMENT_NAME_SBB2_TRANSPORT = "Sbb2Transport";
+
+
+ /** The message helper. */
+ private MessageHelper messageHelper = new MessageHelper();
+
+ /**
+ * Open WSDL definition.
+ *
+ * @param inputDoc
+ * the input doc
+ *
+ * @return the definition
+ *
+ * @throws SOPValidationException
+ */
+ public Definition openWSDLDefinition(Document inputDoc) throws SOPValidationException {
+
+ Definition spdxDefinition = null;
+
+ try {
+ WSDLFactory factory = WSDLFactory.newInstance();
+ WSDLReader reader = factory.newWSDLReader();
+
+ reader.setFeature("javax.wsdl.verbose", true);
+ reader.setFeature("javax.wsdl.importDocuments", false);
+
+// // Create a new ExtensionRegistry.
+// ExtensionRegistry extensionRegistry = new ExtensionRegistry();
+// //ExtensionRegistry extensionRegistry = factory.newPopulatedExtensionRegistry();
+//
+// extensionRegistry.registerExtensionAttributeType(
+// javax.wsdl.Operation.class,
+// new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "partnerOperation"),
+// AttributeExtensible.STRING_TYPE);
+//
+// reader.setExtensionRegistry(extensionRegistry);
+
+ spdxDefinition = reader.readWSDL(null, inputDoc);
+ } catch (WSDLException e) {
+ String errMsg = "Unable to reload the WSDL Definition";
+ LOG.error(errMsg + " : " + e.getMessage(), e);
+ throw new SOPValidationException(errMsg, e);
+ }
+
+ return spdxDefinition;
+ }
+
+ /**
+ * Performs service consistency check.
+ *
+ * @param spdxDefinition
+ * service definition
+ * @param sdxDefinition
+ * service description definition
+ * @param pReporter
+ * validation reporter
+ */
+ public void checkServiceConsistency(Definition spdxDefinition, Definition sdxDefinition, IReporter pReporter) {
+
+ Map bindings = spdxDefinition.getBindings();
+ Iterator bindMapIt = bindings.values().iterator();
+ while (bindMapIt.hasNext()) {
+
+ Binding objBinding = (Binding) bindMapIt.next();
+ PortType portType = objBinding.getPortType();
+
+ LOG.debug(" " + objBinding.getQName() + "]");
+ if (null != objBinding.getPortType()) {
+ LOG.debug("The port type is referenced: [" + objBinding.getPortType().getQName() + "]");
+ // check whether the port type is present in the SDX
+ PortType refPortType = sdxDefinition.getPortType(portType.getQName());
+ if (null == refPortType) {
+ LOG.debug("The port type isn't located in the referenced document");
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE, pReporter, new String[] { objBinding.getQName().getLocalPart(), portType.getQName().getNamespaceURI(), portType.getQName().getLocalPart() }, null);
+ } else {
+ LOG.debug("The referenced port type located");
+ // we check the set of operations
+ List bindOpList = objBinding.getBindingOperations();
+ Iterator bindOpIt = bindOpList.iterator();
+ while (bindOpIt.hasNext()) {
+ BindingOperation bindOp = (BindingOperation) bindOpIt.next();
+ String opName = bindOp.getName();
+
+ // look up the operation by name in the port type
+ Operation opObj = refPortType.getOperation(opName, null, null);
+ if (null == opObj) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_REFERENCE, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName }, null);
+ } else {
+ // operation located
+
+ // check input, output and faults
+ if (null != opObj.getInput() && null == bindOp.getBindingInput()) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, "input" }, null);
+ }
+
+ if (null != opObj.getOutput() && null == bindOp.getBindingOutput()) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_MISSING, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, "output" }, null);
+ }
+
+ Map faultsMap = opObj.getFaults();
+ Iterator faultMapIt = faultsMap.values().iterator();
+ while (faultMapIt.hasNext()) {
+ Fault faultObj = (Fault) faultMapIt.next();
+ if (null == bindOp.getBindingFault(faultObj.getName())) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_MISSING, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, faultObj.getName() }, null);
+ }
+ }
+
+ if (null == opObj.getInput() && null != bindOp.getBindingInput()) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, "input" }, null);
+ }
+
+ if (null == opObj.getOutput() && null != bindOp.getBindingOutput()) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_ENDPOINT_EXTRA, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, "output" }, null);
+ }
+
+ faultsMap = bindOp.getBindingFaults();
+ faultMapIt = faultsMap.values().iterator();
+ while (faultMapIt.hasNext()) {
+ BindingFault faultObj = (BindingFault) faultMapIt.next();
+ if (null == opObj.getFault(faultObj.getName())) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_OPERATION_FAULT_EXTRA, pReporter, new String[] { objBinding.getQName().getLocalPart(), opName, faultObj.getName() }, null);
+ }
+ }
+ }
+ }
+ }
+ } else {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_BINDING_WRONG_PORTTYPE_REFERENCE, pReporter, new String[] { objBinding.getQName().getLocalPart(), "", "" }, null);
+ }
+ }
+ }
+
+ /**
+ * Gets the ref service description.
+ *
+ * @param spdxDefinition
+ * the spdx definition
+ * @param context
+ * the context
+ * @param reporter
+ * the reporter
+ *
+ * @return the ref service description
+ *
+ * @throws SOPValidationException
+ */
+ private Definition getRefServiceDescription(Definition spdxDefinition, IValidationContext context, IReporter reporter) throws SOPValidationException {
+ Definition sdxDefinition = null;
+ IValidationContext sdxContext = null;
+
+ Map bindings = spdxDefinition.getBindings();
+ Iterator bindMapIt = bindings.values().iterator();
+ while (bindMapIt.hasNext() && null == sdxDefinition) {
+ Binding objBinding = (Binding) bindMapIt.next();
+ PortType portType = objBinding.getPortType();
+
+ LOG.debug("Scanning [" + objBinding.getQName() + "]");
+ LOG.debug("The port type is referenced: [" + objBinding.getPortType().getQName() + "]");
+
+ String nsURI = objBinding.getPortType().getQName().getNamespaceURI();
+ List uriImports = spdxDefinition.getImports(objBinding.getPortType().getQName().getNamespaceURI());
+ // we will use only first import statement
+ if (null != uriImports && uriImports.size() > 0) {
+
+ LOG.warn("The import directive for [" + nsURI + "] located and external document will be requested");
+
+ Import objImport = (Import) (uriImports.get(0));
+
+ URI locationURI = null;
+ try {
+ if (null != objImport.getLocationURI()) {
+ String location = objImport.getLocationURI().replace('\\', '/');
+// locationURI = new URI(location);
+ locationURI = new URI(null, null, location, null);
+ } else {
+ LOG.warn("The import location is empty");
+ }
+ } catch (URISyntaxException e) {
+ LOG.warn("Unable to construct URI on import location : " + e.getMessage(), e);
+ }
+
+ QName serviceQName = portType.getQName();
+ ValidationObjectID importID = new ValidationObjectID(objImport.getNamespaceURI(), serviceQName, locationURI, ValidationObjectTypeEnum.SDX_TYPE);
+ sdxContext = context.getNestedValidationContext(importID);
+ LOG.debug("The nested context for Service Description obtained [" + sdxContext + "]");
+ if (null != sdxContext) {
+ Document sdxDocument = null;
+ try {
+ sdxDocument = sdxContext.getObject().getInput();
+ sdxDefinition = openWSDLDefinition(sdxDocument);
+ } catch (ContextInitializationException e) {
+ LOG.error("Unable to obtain the referenced Service Description document", e);
+ } catch (Exception e) {
+ LOG.error("Unable to obtain the referenced Service Description document", e);
+ }
+ }
+ if (null != sdxDefinition) {
+ LOG.debug("The referenced Service Description reloaded");
+ } else {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_SPDX_WRONG_PORTTYPE_REFERENCE, reporter, new String[] { serviceQName.getNamespaceURI(), serviceQName.getLocalPart() }, null);
+ }
+
+ } else {
+ LOG.warn("The is no import directive for [" + nsURI + "]");
+ // TODO: there is no import directive. generate error?
+ }
+ }
+
+ return sdxDefinition;
+ }
+
+ /**
+ * Performs participant policy consistency check.
+ *
+ * @param pValidationContext
+ * participant policy validation context
+ * @param rootElement
+ * participant policy document root element
+ * @param serviceIdentifier
+ * service description identifier (QName in String presentation)
+ * @param sdxDefinition
+ * service description definition
+ * @param reporter
+ * validation reporter
+ */
+ private void checkParticipantPolicyConsistency(IValidationContext pValidationContext, Element rootElement, String serviceIdentifier, Definition sdxDefinition, IReporter reporter) {
+ // we should check whether all operations in the SDX are declared in
+ // Participant Policy
+ // either explicitly, or by DefaultOperation
+
+ QName serviceQName = QName.valueOf(serviceIdentifier);
+ final String serviceURI = serviceQName.getNamespaceURI();
+ final String servicePortType = serviceQName.getLocalPart();
+
+ if (null != serviceURI && null != servicePortType && 0 != serviceURI.length() && 0 != servicePortType.length()) {
+ QName qnamePortType = new QName(serviceURI, servicePortType);
+ LOG.debug("Looking for [" + qnamePortType + "] Port Type in the Service Description");
+
+ PortType portType = sdxDefinition.getPortType(qnamePortType);
+ if (null == portType) {
+ // the port type not detected
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_WRONG_PORTTYPE_REFERENCE, reporter, new String[] { qnamePortType.getNamespaceURI(), qnamePortType.getLocalPart() }, null);
+ return;
+ }
+
+ List portTypeOps = portType.getOperations();
+ List<String> portTypeOperations = new ArrayList<String>(portTypeOps.size());
+ for (Object opObj : portTypeOps) {
+ portTypeOperations.add(((Operation)opObj).getName());
+ }
+
+ // reload the list of operations
+ List declaredOperations = new ArrayList();
+
+ NodeList operationList = rootElement.getElementsByTagNameNS(URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI, PPDX_ELEMENT_NAME_OPERATION);
+ for (int i = 0; i < operationList.getLength(); i++) {
+ Element opNode = (Element)operationList.item(i);
+ String opName = opNode.getAttribute(PPDX_ATTRIB_OPERATION_NAME);
+
+ // Don't use URIConstants.WS_POLICY_SCHEMA_URI because it may be differ
+ NodeList referenceList = opNode.getElementsByTagNameNS(URIConstants.ANY_URI, PPDX_ELEMENT_NAME_POLICY_REFERENCE);
+
+ // check Operation Policy reference
+ if (referenceList.getLength() > 0) {
+ Element reference = (Element)referenceList.item(0);
+
+ String opdxUri = reference.getAttribute(PPDX_ATTRIB_NAME_URI);
+ URI locationURI = null;
+ try {
+ String location = reference.getAttribute(PPDX_ATTRIB_NAME_LOCATION).replace('\\', '/');
+ //locationURI = new URI(location);
+ locationURI = new URI(null, null, location, null);
+ } catch (URISyntaxException e) {
+ LOG.info("Reference to OPDX with URI: " + opdxUri + " via location in PPDX document is incorrect" + " (or does not present at all)");
+ }
+ ValidationObjectID opdxID = new ValidationObjectID(opdxUri, null, locationURI, ValidationObjectTypeEnum.OPX_TYPE);
+ IValidationContext opdxContext = pValidationContext.getNestedValidationContext(opdxID);
+ if (null == opdxContext) {
+ LOG.error("Unable to load the OPDX document [URI: " + opdxUri + ", location: " + locationURI + "] for validation");
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_UNRESOLVABLE_OPDX_REFERENCE, reporter, new String[] { opdxUri, locationURI.toString() }, null);
+ } else {
+ // STAGE 0:
+ // check ParticipantPolicy/Operation/wsp:PolicyReference/@URI == wsp:Policy/@Name
+ try {
+ Document inputDoc = opdxContext.getObject().getInput();
+ String opdxName = inputDoc.getDocumentElement().getAttribute("Name");
+ if(!opdxUri.equals(opdxName)) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_INVALID_OPDX_REFERENCE, reporter, new String[] { opName, opdxUri, opdxName, locationURI.toString() }, null);
+ }
+
+ // STAGE 4:
+ // check is notification operations has JMS or SBB2 transport
+ Operation noteOp = portType.getOperation(opName, null, null);
+ if (null != noteOp) {
+ if (noteOp.getStyle().equals(OperationType.NOTIFICATION)) {
+ LOG.debug("Checking [" + opName + "] notification operation for non HTTP based transport binding");
+ NodeList msgList = inputDoc.getDocumentElement().getElementsByTagNameNS(URIConstants.ANY_URI, OPDX_ELEMENT_NAME_JMS_TRANSPORT);
+
+ if (msgList.getLength() < 1) {
+ msgList = inputDoc.getDocumentElement().getElementsByTagNameNS(URIConstants.ANY_URI, OPDX_ELEMENT_NAME_SBB2_TRANSPORT);
+
+ if (msgList.getLength() < 1) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_NOT_JMS_OR_SBB2_NOTIFICATION_OPERATION, reporter, new String[] { opName }, null);
+ }
+ }
+ }
+ }
+ } catch (ContextInitializationException e) {
+ String message =
+ "Unable to load the OPDX document [URI: " + opdxContext.getObject().getID().getURI() + "]: " + e.getMessage();
+ LOG.error(message, e);
+ messageHelper.reportError(MessageTypeEnum.OTHER_ERROR, reporter, new String[] { message }, e);
+ }
+ }
+ }
+
+ // STAGE 3:
+ // check for duplicated operations
+ LOG.debug("Checking [" + opName + "] operation for duplicating");
+ if (declaredOperations.contains(opName)) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_DUPLICATE_OPERATION, reporter, new String[] { opName }, null);
+ }
+
+ // add operation declaration
+ declaredOperations.add(opName);
+
+ // STAGE 2:
+ // check for ghost operations in the Participant Policy Document
+ // if any such operation detected, generate a warning validation
+ // message
+ LOG.debug("Checking [" + opName + "] operation declared in Participant Policy");
+ if (false == portTypeOperations.contains(opName)) {
+ messageHelper.reportWarning(MessageTypeEnum.CONSISTENCY_PPDX_GHOST_OPERATION, reporter, new String[] { opName }, null);
+ }
+ }
+
+ // check whether we have default operation definition
+ boolean hasDefaultOperation = false;
+ NodeList defOperationList = rootElement.getElementsByTagNameNS(URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI, PPDX_ELEMENT_NAME_DEFAULT_OPERATION);
+ if (0 == defOperationList.getLength()) {
+ hasDefaultOperation = false;
+ LOG.debug("The Participant Policy has no DefaultOperation declared");
+ } else {
+ hasDefaultOperation = true;
+ LOG.debug("The Participant Policy has DefaultOperation");
+ }
+
+ // STAGE 1:
+ // check whether all operations from port type are handled in
+ // this Partipant Policy
+ // and generate an error in case any absent operation detected
+ for (String opName : portTypeOperations) {
+ LOG.debug("Checking [" + opName + "] operation declared in Service Description");
+ if (false == declaredOperations.contains(opName)) {
+ if (hasDefaultOperation) {
+ // the operation is not declared explicitly, but we
+ // have default operation
+ LOG.debug("Operation [" + opName + "] is not declared explicitly, but Participant Policy declares the DefaultOperation");
+ } else {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_MISSING_OPERATION, reporter, new String[] { opName }, null);
+ }
+ } else {
+ // operation matching SDX-PPDX approved
+ LOG.debug("Matching for [" + opName + "] operation approved");
+ }
+ }
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void validate(IValidationContext pValidationContext, IReporter pReporter) throws SOPValidationException {
+
+ LOG.debug("The consistency validation invoked");
+
+ IValidationObject valObj = pValidationContext.getObject();
+ LOG.debug("The object type: " + valObj.getID().getType().getName());
+ messageHelper.setCurrentObject(valObj.getID().getQName());
+
+ Document inputDoc = null;
+ try {
+ inputDoc = valObj.getInput();
+ } catch (ContextInitializationException e) {
+ LOG.error("Unable to load the object document for validation: " + e.getMessage(), e);
+ throw new SOPValidationException("Unable to load the object document for validation", e);
+ }
+
+ ValidationObjectTypeEnum docType = valObj.getID().getType();
+ Definition sdxDefinition = null;
+
+ if (docType.equals(ValidationObjectTypeEnum.SPDX_TYPE)) {
+
+ Definition spdxDefinition = openWSDLDefinition(inputDoc);
+ sdxDefinition = getRefServiceDescription(spdxDefinition, pValidationContext, pReporter);
+ if (null != sdxDefinition) {
+ checkServiceConsistency(spdxDefinition, sdxDefinition, pReporter);
+ }
+
+ } else if (docType.equals(ValidationObjectTypeEnum.PPDX_TYPE)) {
+ Element rootElement = inputDoc.getDocumentElement();
+
+ QName serviceQName = null;
+ String service = rootElement.getAttribute(PPDX_ATTRIB_NAME_SERVICE);
+ String serviceLocation = rootElement.getAttribute(PPDX_ATTRIB_NAME_SERVICE_LOCATION);
+
+ LOG.debug("service = [" + service + "]");
+ LOG.debug("service location = [" + serviceLocation + "]");
+ serviceLocation = serviceLocation.replace('\\', '/');
+ LOG.debug("normalized service location = [" + serviceLocation + "]");
+
+ URI locationURI = null;
+ IValidationContext sdxContext = null;
+ Document sdxInputDoc = null;
+
+ if (null != service && 0 != service.length()) {
+ try {
+ if (null != serviceLocation) {
+ //locationURI = new URI(serviceLocation);
+ locationURI = new URI(null, null, serviceLocation, null);
+ } else {
+ LOG.warn("The service location attribute is absent");
+ }
+ } catch (URISyntaxException e) {
+ LOG.warn("Unable to construct URI on service location : " + e.getMessage(), e);
+ }
+ serviceQName = QName.valueOf(service);
+ } else {
+ Object objProperty = pValidationContext.getProperty(IValidationContext.PROP_SERVICE_QNAME);
+ if (null != objProperty && (objProperty instanceof QName)) {
+ serviceQName = (QName) objProperty;
+ }
+
+ if (null != serviceQName) {
+ LOG.debug("The service is not explicitly declared in Participant Policy" + " document, but is specified in the context");
+ service = serviceQName.toString();
+ } else {
+ LOG.debug("The service is neither declared in Participant Policy document," + " nor specified in the context");
+ }
+ }
+
+ if (null != serviceQName) {
+
+ ValidationObjectID importID = new ValidationObjectID(service, serviceQName, locationURI, ValidationObjectTypeEnum.SDX_TYPE);
+ sdxContext = pValidationContext.getNestedValidationContext(importID);
+
+ if (null != sdxContext) {
+ try {
+ sdxInputDoc = sdxContext.getObject().getInput();
+ } catch (ContextInitializationException e) {
+ LOG.error("Unable to obtain the content of the Service Description: " + e.getMessage(), e);
+ }
+ } else {
+ LOG.warn("The dependent Service Description cannot be obtained");
+ }
+
+ if (null != sdxInputDoc) {
+ sdxDefinition = openWSDLDefinition(sdxInputDoc);
+ LOG.debug("SDX Definition successfully reloaded");
+
+ checkParticipantPolicyConsistency(pValidationContext, rootElement, service, sdxDefinition, pReporter);
+
+ } else {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE, pReporter, new String[] {}, null);
+ }
+ } else {
+ LOG.debug("The validator is not able to resolve the Service document" + " for the Participant Policy, no consistency check performed");
+ NodeList defOperationList = rootElement.getElementsByTagNameNS(URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI, PPDX_ELEMENT_NAME_DEFAULT_OPERATION);
+ NodeList operationList = rootElement.getElementsByTagNameNS(URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI, PPDX_ELEMENT_NAME_OPERATION);
+
+ if ((0 == defOperationList.getLength()) || (0 != operationList.getLength())) {
+ messageHelper.reportError(MessageTypeEnum.CONSISTENCY_PPDX_WRONG_SERVICE_REFERENCE, pReporter, new String[] {}, null);
+ }
+ }
+ } else {
+ throw new SOPValidationException("Unsupported document type for consistency validation", new IllegalArgumentException());
+ }
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/ConsistencyValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/DOMHelper.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/DOMHelper.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/DOMHelper.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,178 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+
+/**
+ * The Class DOMHelper.
+ */
+public class DOMHelper {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger.getLogger(DOMHelper.class);
+
+ /**
+ * Resolve reference Q name.
+ *
+ * @param context
+ * the context
+ * @param colonizedName
+ * the colonized name
+ *
+ * @return the q name
+ */
+ public static QName resolveReferenceQName(Element context, String colonizedName) {
+ QName portTypeQName = null;
+
+ String prefix = null;
+ String ncName = null;
+
+ int index = colonizedName.indexOf(':');
+ if (-1 == index) {
+ ncName = colonizedName;
+ prefix = "";
+ } else {
+ prefix = colonizedName.substring(0, index);
+ if (index != colonizedName.length()) {
+ ncName = colonizedName.substring(index + 1);
+ }
+ }
+
+ // log.debug("resolving [" + prefix + "]:[" + ncName + "]"); //
+
+ // resolve prefix to the namespace
+ String nsURI = DOMHelper.resolvePrefix(context, prefix);
+
+ if (null != nsURI) {
+ portTypeQName = new QName(nsURI, ncName);
+ } else {
+ LOG.warn("Unable to resolve [" + prefix + "] prefix to URI");
+ }
+
+ return portTypeQName;
+ }
+
+ /**
+ * Reload prefixes for node.
+ *
+ * @param context
+ * the context
+ * @param prefixMap
+ * the prefix map
+ */
+ public static void reloadPrefixesForNode(Element context, Map prefixMap) {
+ NamedNodeMap attribs = context.getAttributes();
+ int nAttribs = attribs.getLength();
+ for (int i = 0; i < nAttribs; i++) {
+ // xmlns:
+ String stringValue = attribs.item(i).getNodeName();
+ String prefixValue;
+ if (true == stringValue.startsWith("xmlns:")) { // namespace
+ prefixValue = stringValue.substring("xmlns:".length());
+ } else if (0 == stringValue.compareTo("xmlns")) { // default
+ prefixValue = "";
+ } else {
+ prefixValue = null;
+ }
+
+ if (null != prefixValue) {
+ if (null == prefixMap.get(prefixValue)) {
+ String ns = attribs.item(i).getNodeValue();
+ prefixMap.put(prefixValue, ns);
+ }
+ }
+ }
+ }
+
+ /**
+ * Resolve namespace.
+ *
+ * @param context
+ * the context
+ * @param uri
+ * the uri
+ *
+ * @return the string
+ */
+ public static String resolveNamespace(Element context, String uri) {
+ String prefix = null;
+ Element actualContext = context;
+ while ((null != actualContext) && (null == prefix)) {
+ NamedNodeMap attribs = context.getAttributes();
+ int nAttribs = attribs.getLength();
+ Map prefixMap = new HashMap(nAttribs);
+ reloadPrefixesForNode(context, prefixMap);
+ Iterator it = prefixMap.entrySet().iterator();
+ while (it.hasNext()) {
+ Entry objEntry = (Entry) (it.next());
+ String objUri = (String) (objEntry.getValue());
+ if (0 == objUri.compareTo(uri)) {
+ prefix = (String) (objEntry.getKey());
+ }
+ }
+
+ if (null == prefix) {
+ // move to the parent node
+ Node parentNode = actualContext.getParentNode();
+ if (parentNode.getNodeType() == Element.ELEMENT_NODE) {
+ actualContext = (Element) (parentNode);
+ prefix = resolvePrefix(actualContext, prefix);
+ } else {
+ actualContext = null;
+ }
+ }
+ }
+ return prefix;
+ }
+
+ /**
+ * Resolve prefix.
+ *
+ * @param context
+ * the context
+ * @param prefix
+ * the prefix
+ *
+ * @return the string
+ */
+ public static String resolvePrefix(Element context, String prefix) {
+ String ns = null;
+ Element actualContext = context;
+ while ((null != actualContext) && (null == ns)) {
+ NamedNodeMap attribs = context.getAttributes();
+ int nAttribs = attribs.getLength();
+ Map prefixMap = new HashMap(nAttribs);
+ reloadPrefixesForNode(context, prefixMap);
+ ns = (String) (prefixMap.get(prefix));
+ if (null == ns) {
+ // move to the parent node
+ Node parentNode = actualContext.getParentNode();
+ if (parentNode.getNodeType() == Element.ELEMENT_NODE) {
+ actualContext = (Element) (parentNode);
+ ns = resolvePrefix(actualContext, prefix);
+ } else {
+ actualContext = null;
+ }
+ }
+ }
+ return ns;
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/DOMHelper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/GenericValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/GenericValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/GenericValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,577 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import javax.wsdl.Binding;
+import javax.wsdl.Definition;
+import javax.wsdl.Fault;
+import javax.wsdl.Input;
+import javax.wsdl.Message;
+import javax.wsdl.Operation;
+import javax.wsdl.Output;
+import javax.wsdl.Part;
+import javax.wsdl.Port;
+import javax.wsdl.PortType;
+import javax.wsdl.Service;
+import javax.wsdl.WSDLException;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * The Class GenericValidator.
+ */
+public class GenericValidator implements IValidator {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger.getLogger(GenericValidator.class);
+
+ /** The Constant PARTNER_LINK_ROLE_NAME_SERVICE. */
+ private static final String PARTNER_LINK_ROLE_NAME_SERVICE = "service";
+
+ /** The Constant PARTNER_LINK_ROLE_NAME_CALLBACK. */
+ private static final String PARTNER_LINK_ROLE_NAME_CALLBACK = "callback";
+
+ /** The Constant PARTNER_LINK_XPATH. */
+ private static final String PARTNER_LINK_XPATH = "/wsdl:definitions/plnk:partnerLinkType";
+
+ // The property for inline validation on/off
+ /** The Constant SETTING_PROP_FILE. */
+ private static final String SETTING_PROP_FILE = "/sop.validation.properties";
+
+ /** The Constant PROP_INLINE_VALIDATION_NAME. */
+ private static final String PROP_INLINE_VALIDATION_NAME = "org.eclipse.stp.common.validator.core.impl.service.GenericValidator.InlineSchema";
+
+ /** The PRO p_ INLIN e_ VALIDATION. */
+ private boolean propInlineValidation = true;
+
+ /** The message helper. */
+ private MessageHelper messageHelper = new MessageHelper();
+
+ /** The _schema helper. */
+ private InlineSchemaHelper schemaHelper = null;
+
+ /**
+ * Validate SPDX.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param inputDoc
+ * the input doc
+ * @param pReporter
+ * the reporter
+ */
+ public void validateSPDX(QName inputSourceID, Document inputDoc, IReporter pReporter) {
+ try {
+
+ WSDLFactory factory = WSDLFactory.newInstance();
+ WSDLReader reader = factory.newWSDLReader();
+
+ reader.setFeature("javax.wsdl.verbose", true);
+ reader.setFeature("javax.wsdl.importDocuments", false);
+
+ Definition def = reader.readWSDL(null, inputDoc);
+
+ // log.debug ("Checking bindings...");
+ // Map bindings = def.getBindings();
+
+ Map servicesMap = def.getServices();
+ Iterator itSvc = servicesMap.values().iterator();
+ while (itSvc.hasNext()) {
+ Service serviceObj = (Service) (itSvc.next());
+ if (null != serviceObj) {
+ Map portsMap = serviceObj.getPorts();
+ Iterator itPort = portsMap.values().iterator();
+ while (itPort.hasNext()) {
+ Port portObj = (Port) itPort.next();
+ if (null != portObj) {
+ Binding bindingObj = portObj.getBinding();
+ if (null == bindingObj || false != bindingObj.isUndefined()) {
+ // undefined binding, generate a validation
+ // error
+ if (null != bindingObj) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE, pReporter, new String[] { portObj.getName(), bindingObj.getQName().getNamespaceURI(), bindingObj.getQName().getLocalPart() }, inputSourceID);
+ } else {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_PORT_WRONG_BINDING_REFERENCE, pReporter, new String[] { portObj.getName(), "", "" }, inputSourceID);
+ }
+
+ }
+ }
+ }
+ }
+ }
+
+ // Iterator bindingIt = bindings.values().iterator();
+ // while (bindingIt.hasNext()) {
+ // Binding objBinding = (Binding)bindingIt.next();
+ //
+ //
+ // }
+
+ } catch (WSDLException e) {
+ messageHelper.reportError(MessageTypeEnum.OTHER_ERROR, pReporter, new String[] { "Unable to load the document model as WSDL document: " + e.getMessage() }, e);
+ }
+ }
+
+ /**
+ * Gets the partner link element.
+ *
+ * @param inputDoc
+ * the input doc
+ *
+ * @return the partner link element
+ */
+ private Element getPartnerLinkElement(Document inputDoc) {
+ Element partnerLinkElement = null;
+
+ Node node = XPathHelper.getXPathResultNode(inputDoc.getDocumentElement(), PARTNER_LINK_XPATH);
+ if (null != node) {
+ if (node instanceof Element) {
+ partnerLinkElement = (Element) node;
+ }
+ }
+
+ return partnerLinkElement;
+ }
+
+ /**
+ * Validate partner port types.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param portTypeCallbackQName
+ * the port type callback Q name
+ * @param servicePortType
+ * the service port type
+ * @param inputDoc
+ * the input doc
+ * @param pReporter
+ * the reporter
+ */
+ private void validatePartnerPortTypes(QName inputSourceID, QName portTypeCallbackQName, PortType servicePortType, Document inputDoc, IReporter pReporter) {
+ String callbackPortType = portTypeCallbackQName.getLocalPart();
+
+ // Element serviceElement = null;
+ Element callbackElement = null;
+
+ // serviceElement =
+ // (Element)XPathHelper.getXPathResultNode(inputDoc.getDocumentElement(),
+ // "/wsdl:definitions/wsdl:portType[@name = '" +
+ // servicePortType +
+ // "']");
+
+ callbackElement = (Element) XPathHelper.getXPathResultNode(inputDoc.getDocumentElement(), "/wsdl:definitions/wsdl:portType[@name = '" + callbackPortType + "']");
+
+ NodeList nodes = null;
+
+ // check if all operations in the callback port type have
+ nodes = XPathHelper.getXPathResultList(callbackElement, "./wsdl:operation[not(@sdx:partnerOperation)]");
+ for (int i = 0; i < nodes.getLength(); i++) {
+ Element opElem = (Element) nodes.item(i);
+ String opName = opElem.getAttribute("name");
+ messageHelper.reportWarning(MessageTypeEnum.PARTNER_LINK_GENERIC_PARTNER_OP_NOT_SPECIFIED, pReporter, new String[] { opName, callbackPortType }, inputSourceID);
+ }
+
+ // check if all partner operation attributes in callback portType
+ // reference
+ // existing operations in service portType
+ nodes = XPathHelper.getXPathResultList(callbackElement, "./wsdl:operation/@sdx:partnerOperation");
+ Set partnersSet = new HashSet();
+ for (int i = 0; i < nodes.getLength(); i++) {
+ Attr opAttr = (Attr) nodes.item(i);
+ partnersSet.add(opAttr.getValue());
+ }
+ LOG.debug("callback portType [" + callbackPortType + "] references [" + partnersSet + "] partner operations");
+ String servicePortName = servicePortType.getQName().getLocalPart();
+ Iterator it = partnersSet.iterator();
+ while (it.hasNext()) {
+ String name = (String) (it.next());
+ Operation partnerOpObj = servicePortType.getOperation(name, null, null);
+ if (null == partnerOpObj) {
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_PARTNER_OP_NON_EXISTING, pReporter, new String[] { callbackPortType, name, servicePortName }, inputSourceID);
+ } else {
+ // check that partner operation is declared using 'one-way'
+ // communication style
+ if (null == partnerOpObj.getInput() || null != partnerOpObj.getOutput() || 0 != partnerOpObj.getFaults().size()) {
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_PARTNER_OP_NOT_ONEWAY, pReporter, new String[] { callbackPortType, name, servicePortName }, inputSourceID);
+ }
+ }
+ }
+
+ nodes = XPathHelper.getXPathResultList(callbackElement, "./wsdl:operation[@sdx:faultOperation]/@sdx:partnerOperation");
+ Set faultPartnersSet = new HashSet();
+ for (int i = 0; i < nodes.getLength(); i++) {
+ Attr opAttr = (Attr) nodes.item(i);
+ if (false == faultPartnersSet.contains(opAttr.getValue())) {
+ faultPartnersSet.add(opAttr.getValue());
+ } else {
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_DUP_FAULTS, pReporter, new String[] { callbackPortType, opAttr.getValue() }, inputSourceID);
+ }
+ }
+ }
+
+ /**
+ * Validate partner link references.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param portTypeServiceQName
+ * the port type service Q name
+ * @param portTypeCallbackQName
+ * the port type callback Q name
+ * @param def
+ * the def
+ * @param pReporter
+ * the reporter
+ *
+ * @return true, if successful
+ */
+ private boolean validatePartnerLinkReferences(QName inputSourceID, QName portTypeServiceQName, QName portTypeCallbackQName, Definition def, IReporter pReporter) {
+ boolean hasNoErrors = true;
+ Map portTypes = def.getPortTypes();
+ if (null != portTypes.get(portTypeServiceQName)) {
+ LOG.debug("The service port type object found");
+ } else {
+ LOG.error("The service port type object [" + portTypeServiceQName + "] not found");
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE, pReporter, new String[] { "service", portTypeServiceQName.toString() }, inputSourceID);
+ hasNoErrors = false;
+ }
+
+ if (null != portTypes.get(portTypeCallbackQName)) {
+ LOG.debug("The callback port type object found");
+ } else {
+ LOG.error("The callback port type object [" + portTypeCallbackQName + "] not found");
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_WRONG_PORT_TYPE_REFERENCE, pReporter, new String[] { "callback", portTypeCallbackQName.toString() }, inputSourceID);
+ hasNoErrors = false;
+ }
+
+ if (portTypeServiceQName.equals(portTypeCallbackQName)) {
+ LOG.error("The same Port Type cannot be user in both 'service' and 'callback roles'");
+ messageHelper.reportError(MessageTypeEnum.PARTNER_LINK_GENERIC_SAME_PORT_TYPE_REFERENCE, pReporter, new String[] { portTypeCallbackQName.toString() }, inputSourceID);
+ hasNoErrors = false;
+ }
+ return hasNoErrors;
+ }
+
+ /**
+ * Validate partner link.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param inputDoc
+ * the input doc
+ * @param def
+ * the def
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private void validatePartnerLink(QName inputSourceID, Document inputDoc, Definition def, IReporter pReporter) throws SOPValidationException {
+ QName portTypeServiceQName = null;
+ QName portTypeCallbackQName = null;
+ Element partnerLinkElem = null;
+
+ try {
+ partnerLinkElem = getPartnerLinkElement(inputDoc);
+ if (null != partnerLinkElem) {
+ Element serviceElem = null;
+ Element callbackElem = null;
+
+ serviceElem = (Element) XPathHelper.getXPathResultNode(partnerLinkElem, "./plnk:role[@name = '" + PARTNER_LINK_ROLE_NAME_SERVICE + "']/plnk:portType");
+
+ callbackElem = (Element) XPathHelper.getXPathResultNode(partnerLinkElem, "./plnk:role[@name = '" + PARTNER_LINK_ROLE_NAME_CALLBACK + "']/plnk:portType");
+
+ // get the names of WSDL portType used in this partner link
+ String portTypeService = serviceElem.getAttribute("name");
+ String portTypeCallback = callbackElem.getAttribute("name");
+ LOG.debug("Service Port Type = [" + portTypeService + "]");
+ LOG.debug("Callback Port Type = [" + portTypeCallback + "]");
+
+ portTypeServiceQName = DOMHelper.resolveReferenceQName(serviceElem, portTypeService);
+ portTypeCallbackQName = DOMHelper.resolveReferenceQName(callbackElem, portTypeCallback);
+
+ LOG.debug("QName Service Port Type: [" + portTypeServiceQName + "]");
+ LOG.debug("QName Callback Port Type: [" + portTypeCallbackQName + "]");
+
+ if (null != portTypeServiceQName && null != portTypeCallbackQName) {
+ if (validatePartnerLinkReferences(inputSourceID, portTypeServiceQName, portTypeCallbackQName, def, pReporter)) {
+ // now we need to validate WSDL portType's (logical
+ // checks for partner operations)
+ PortType servicePortType = def.getPortType(portTypeServiceQName);
+ validatePartnerPortTypes(inputSourceID, portTypeCallbackQName, servicePortType, inputDoc, pReporter);
+ }
+
+ } else {
+ LOG.error("Unable to resolve QName's of Port Types referenced by Partner Link");
+ }
+ }
+
+ } catch (Throwable e) {
+ LOG.error("Unexpected problem during Partner Link Validation: " + e.getMessage(), e);
+ }
+ }
+
+ /**
+ * Validate inline schema.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param def
+ * the def
+ * @param pReporter
+ * the reporter
+ */
+ public void validateInlineSchema(QName inputSourceID, Definition def, IReporter pReporter) {
+
+ LOG.debug("Validating Inline-Schema");
+
+ if (false == schemaHelper.preparseInlineGrammars()) {
+ Iterator it = schemaHelper.getErrorsList().iterator();
+ while (it.hasNext()) {
+ String err = (String) (it.next());
+ messageHelper.reportError(MessageTypeEnum.INLINE_SCHEMA_ERROR, pReporter, new String[] { err }, inputSourceID);
+ }
+ }
+ }
+
+ /**
+ * Validate SDX.
+ *
+ * @param inputSourceID
+ * the input source ID
+ * @param inputDoc
+ * the input doc
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ public void validateSDX(IValidationObject valObj, IReporter pReporter) throws SOPValidationException {
+ QName inputSourceID = valObj.getID().getQName();
+ try {
+ Document inputDoc = valObj.getInput();
+
+ WSDLFactory factory = WSDLFactory.newInstance();
+ WSDLReader reader = factory.newWSDLReader();
+
+ reader.setFeature("javax.wsdl.verbose", true);
+ reader.setFeature("javax.wsdl.importDocuments", false);
+
+ Definition def = reader.readWSDL(null, inputDoc);
+
+ LOG.debug("The WSDL Definition reloaded");
+
+ schemaHelper = new InlineSchemaHelper(inputDoc, valObj.getID().getURI());
+ if (true == propInlineValidation) {
+ validateInlineSchema(inputSourceID, def, pReporter);
+ }
+
+ validatePartnerLink(inputSourceID, inputDoc, def, pReporter);
+
+ LOG.debug("Checking port types declared in SDX");
+ Map portTypes = def.getPortTypes();
+ if (null != portTypes && 0 != portTypes.size()) {
+ Iterator itPortType = portTypes.values().iterator();
+ while (itPortType.hasNext()) {
+ PortType portTypeObj = (PortType) itPortType.next();
+ if (null != portTypeObj && false == portTypeObj.isUndefined()) {
+ LOG.debug("Processing [" + portTypeObj.getQName() + "] port type");
+
+ List operationsList = portTypeObj.getOperations();
+ Iterator itOp = operationsList.iterator();
+ while (itOp.hasNext()) {
+ Operation opObj = (Operation) itOp.next();
+ if (null != opObj && false == opObj.isUndefined()) {
+ LOG.debug("Processing [" + opObj.getName() + "] operation");
+
+ Input objInput = opObj.getInput();
+ Output objOutput = opObj.getOutput();
+ Map mapFaults = opObj.getFaults();
+
+ Message objMsg = null;
+
+ if (null != objInput) {
+ objMsg = objInput.getMessage();
+ if (null != objMsg && objMsg.isUndefined()) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_WRONG_MESSAGE_REFERENCE, pReporter, new String[] { "input", opObj.getName(), objMsg.getQName().toString() }, inputSourceID);
+ }
+ }
+
+ if (null != objOutput) {
+ objMsg = objOutput.getMessage();
+ if (null != objMsg && objMsg.isUndefined()) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_WRONG_MESSAGE_REFERENCE, pReporter, new String[] { "output", opObj.getName(), objMsg.getQName().toString() }, inputSourceID);
+ }
+ }
+
+ if (null != mapFaults) {
+ Iterator faultIt = mapFaults.values().iterator();
+ while (faultIt.hasNext()) {
+ Fault objFault = (Fault) (faultIt.next());
+ if (null != objFault) {
+ objMsg = objFault.getMessage();
+ if (null != objMsg && objMsg.isUndefined()) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_FAULT_WRONG_MESSAGE_REFERENCE, pReporter, new String[] { objFault.getName(), opObj.getName(), objMsg.getQName().toString() }, inputSourceID);
+ }
+ }
+ }
+ }
+
+ } else {
+ LOG.warn("Undefined operation encoutered during processing of [" + portTypeObj.getQName() + "] Port Type");
+ }
+ }
+ } else {
+ LOG.warn("Undefined port type encoutered during processing of SDX");
+ }
+ }
+ } else {
+ LOG.warn("The Service Description does not contain any Port Type definition");
+ }
+
+ Map mapMessages = def.getMessages();
+ if (null != mapMessages) {
+ Iterator itMsg = mapMessages.values().iterator();
+ while (itMsg.hasNext()) {
+ Message msgObj = (Message) (itMsg.next());
+ if (null != msgObj && false == msgObj.isUndefined()) {
+ if (0 != msgObj.getParts().size()) {
+ Iterator itParts = msgObj.getParts().values().iterator();
+ while (itParts.hasNext()) {
+ Part objPart = (Part) (itParts.next());
+ QName partElement = objPart.getElementName();
+ QName partType = objPart.getTypeName();
+
+ if (null == partType && null == partElement) {
+ // message part has neither type, nor
+ // element references
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_MESSAGE_PART_NO_REFERENCES, pReporter, new String[] { objPart.getName(), msgObj.getQName().toString() }, inputSourceID);
+ }
+
+ if (null != partType && null != partElement) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_MESSAGE_PART_BOTH_ELEMENT_AND_TYPE, pReporter, new String[] { objPart.getName(), msgObj.getQName().toString() }, inputSourceID);
+ }
+
+ if (null != partElement) {
+ if (true == propInlineValidation) {
+ // check whether element/type may be
+ // resolved in the inline Schema
+ if (false == schemaHelper.lookupElement(partElement)) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_GENERIC_MESSAGE_PART_WRONG_ELEM_REFERENCE, pReporter, new String[] { msgObj.getQName().getLocalPart(), partElement.toString() }, inputSourceID);
+ }
+ }
+ }
+
+ }
+ }
+ } else {
+ LOG.warn("Undefined message object encoutered during scanning messages of the SDX");
+ }
+ }
+ }
+
+ } catch (WSDLException e) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_ERROR, pReporter, new String[] { e.getMessage() }, inputSourceID);
+ } catch (ContextInitializationException e) {
+ messageHelper.reportError(MessageTypeEnum.WSDL_ERROR, pReporter, new String[] { e.getMessage() }, inputSourceID);
+ }
+ }
+
+ /**
+ * Reload properties.
+ */
+ private void reloadProperties() {
+ Properties settings = new Properties();
+ InputStream is = this.getClass().getResourceAsStream(SETTING_PROP_FILE);
+ if (null != is) {
+ try {
+ settings.load(is);
+ String propValue = settings.getProperty(PROP_INLINE_VALIDATION_NAME);
+ if (null != propValue) {
+ Boolean boolValue = Boolean.valueOf(propValue);
+ propInlineValidation = boolValue.booleanValue();
+ }
+ } catch (IOException e) {
+ LOG.error("Unexpected exception while loading the validation properties: " + e.getMessage(), e);
+ }
+ } else {
+ LOG.warn("properties file [" + SETTING_PROP_FILE + "] not found, assuming default values");
+ }
+
+ // DUMP PROPERTIES //
+ LOG.debug("The [" + PROP_INLINE_VALIDATION_NAME + "] = [" + propInlineValidation + "]");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void validate(IValidationContext pValidationContext, IReporter pReporter) throws SOPValidationException {
+
+ LOG.debug("The Generic WSDL Validator invoked");
+
+ reloadProperties();
+
+ // obtain validation object
+ IValidationObject valObj = pValidationContext.getObject();
+ if (null != valObj) {
+ LOG.debug("The Symbolic Name of the object to be validated is [" + valObj.getID().getSymbolicName() + "]");
+ } else {
+ throw new SOPValidationException("Empty object for validation");
+ }
+
+ Document inputDocument = null;
+ try {
+ inputDocument = valObj.getInput();
+ } catch (ContextInitializationException e) {
+ throw new SOPValidationException("Unable to load the document model", e);
+ }
+
+ if (null != inputDocument) {
+ if (valObj.getID().getType().equals(ValidationObjectTypeEnum.SDX_TYPE)) {
+ LOG.debug("Validating Service Description Document");
+ validateSDX(valObj, pReporter);
+ } else if (valObj.getID().getType().equals(ValidationObjectTypeEnum.SPDX_TYPE)) {
+ LOG.debug("Validating Service Provider Description Document");
+ validateSPDX(valObj.getID().getQName(), inputDocument, pReporter);
+ } else {
+ throw new SOPValidationException("Unsupported document type [" + valObj.getID().getType().getName() + "]");
+ }
+ } else {
+ throw new SOPValidationException("The empty document model loaded from context");
+ }
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/GenericValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaHelper.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaHelper.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaHelper.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,513 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.Map.Entry;
+
+import javax.xml.namespace.QName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.log4j.Logger;
+import org.apache.xerces.xs.XSElementDeclaration;
+import org.apache.xerces.xs.XSImplementation;
+import org.apache.xerces.xs.XSLoader;
+import org.apache.xerces.xs.XSModel;
+import org.w3c.dom.DOMConfiguration;
+import org.w3c.dom.DOMError;
+import org.w3c.dom.DOMErrorHandler;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.bootstrap.DOMImplementationRegistry;
+import org.w3c.dom.ls.DOMImplementationLS;
+import org.w3c.dom.ls.LSInput;
+import org.w3c.dom.ls.LSOutput;
+import org.w3c.dom.ls.LSResourceResolver;
+import org.w3c.dom.ls.LSSerializer;
+import org.xml.sax.SAXException;
+
+/**
+ * The Class InlineSchemaHelper.
+ */
+public class InlineSchemaHelper implements DOMErrorHandler, LSResourceResolver {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger.getLogger(InlineSchemaHelper.class);
+
+ /** The _wsdl document. */
+ private Document wsdlDocument = null;
+
+ private URI documentLocation;
+
+ /** The _schemas map. */
+ private Map schemasMap = null;
+
+ /** The _xs model map. */
+ private Map xsModelMap = null;
+
+ /** The _errors. */
+ private List errors = new ArrayList();
+
+ private static DocumentBuilder theDocumentBuilder = null;
+
+ /**
+ * Instantiates a new inline schema helper.
+ *
+ * @param wsdlDoc the wsdl doc
+ */
+ public InlineSchemaHelper(Document wsdlDoc, URI documentLocation) {
+ wsdlDocument = wsdlDoc;
+ this.documentLocation = documentLocation;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public LSInput resolveResource(String type, String namespaceURI,
+ String publicId, String systemId, String baseURI) {
+ // log.debug("Resource resolving callback: type=[" + type + "],
+ // namespaceURI=[" + namespaceURI + "]"); //
+
+ if(systemId == null) {
+ Object obj = schemasMap.get(namespaceURI);
+ if (null != obj) {
+ Document doc = (Document) obj;
+ LSInput lsInputObj = createLSInput(doc.getDocumentElement());
+ // log.debug("The LS Input for requested schema created"); //
+ return lsInputObj;
+ } else {
+ LOG.error("Resolver is asked for unresolved [" + namespaceURI
+ + "] namespace schema");
+ }
+ } else {
+ try {
+ Document doc = getDocumentBuilder().parse(documentLocation.resolve(systemId).toString());
+ LSInput lsInputObj = createLSInput(doc.getDocumentElement());
+ return lsInputObj;
+ } catch (SAXException e) {
+ } catch (IOException e) {
+ } catch (ParserConfigurationException e) {
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean handleError(DOMError error) {
+ LOG.error("DOM Error while loading XS Model: " + error.getMessage());
+ errors.add(error.getMessage());
+ return false;
+ }
+
+ /**
+ * Gets the XS loader instance.
+ *
+ * @return the XS loader instance
+ */
+ public static XSLoader getXSLoaderInstance() {
+ XSLoader xsLoader = null;
+ // get DOM Implementation using DOM Registry
+ System.setProperty(DOMImplementationRegistry.PROPERTY,
+ "org.apache.xerces.dom.DOMXSImplementationSourceImpl");
+ DOMImplementationRegistry registry = null;
+ try {
+ registry = DOMImplementationRegistry.newInstance();
+ XSImplementation impl = (XSImplementation) registry
+ .getDOMImplementation("XS-Loader");
+ xsLoader = impl.createXSLoader(null);
+ } catch (Exception e) {
+ LOG.error("Unable to instantiate the Xerces XS Loader", e);
+ }
+ return xsLoader;
+ }
+
+ /**
+ * Creates the LS input.
+ *
+ * @param schemaElem the schema elem
+ *
+ * @return the LS input
+ */
+ private LSInput createLSInput(Element schemaElem) {
+ DOMImplementationLS impl = null;
+ try {
+ DOMImplementationRegistry registry = DOMImplementationRegistry
+ .newInstance();
+ impl = (DOMImplementationLS) registry.getDOMImplementation("LS");
+ } catch (Exception e) {
+ LOG.error("Unable to obtain DOM LS Implementation", e);
+ }
+
+ LSOutput lsOutput = impl.createLSOutput();
+ LSSerializer lsSerializer = impl.createLSSerializer();
+ // String schemaString = lsSerializer.writeToString(schemaElement);
+ // log.debug("Serialized Schema: " + schemaString);
+ lsOutput.setEncoding("UTF-8");
+ ByteArrayOutputStream btOutputStream = new ByteArrayOutputStream();
+ lsOutput.setByteStream(btOutputStream);
+ lsSerializer.write(schemaElem, lsOutput);
+
+ // log.debug("Schema serialized to LS Output: [" +
+ // lsOutput.getByteStream() + "]"); //
+
+ LSInput lsInputObj = impl.createLSInput();
+ ByteArrayInputStream btInputStream = new ByteArrayInputStream(
+ btOutputStream.toByteArray());
+ lsInputObj.setByteStream(btInputStream);
+
+ return lsInputObj;
+ }
+
+ /**
+ * Lookup element.
+ *
+ * @param elementName the element name
+ *
+ * @return true, if successful
+ */
+ public boolean lookupElement(QName elementName) {
+ boolean bExists = false;
+ Object obj = xsModelMap.get(elementName.getNamespaceURI());
+ if (null != obj) {
+ XSModel xsModel = (XSModel) obj;
+ XSElementDeclaration decl = null;
+ decl = xsModel.getElementDeclaration(elementName.getLocalPart(),
+ elementName.getNamespaceURI());
+ if (null != decl) {
+ LOG.debug("The [" + elementName + "] element located");
+ bExists = true;
+ } else {
+ LOG.debug("The [" + elementName
+ + "] element cannot be located in the inline schemas");
+ }
+ }
+
+ return bExists;
+ }
+
+ /**
+ * Gets the grammar.
+ *
+ * @param schemaElement the schema element
+ *
+ * @return the grammar
+ */
+ public XSModel getGrammar(Element schemaElement) {
+
+ XSLoader schemaLoader = getXSLoaderInstance();
+ DOMConfiguration config = schemaLoader.getConfig();
+ // set error handler
+ config.setParameter("error-handler", this);
+ config.setParameter("resource-resolver", this);
+
+ // set validation feature
+ config.setParameter("validate", Boolean.TRUE);
+
+ XSModel grammar = null;
+ LSInput lsInputObj = createLSInput(schemaElement);
+ grammar = schemaLoader.load(lsInputObj);
+
+ if (null != grammar) {
+ LOG.debug("The XSD Model successfully reloaded");
+ }
+
+ return grammar;
+ }
+
+ /**
+ * Gets the errors list.
+ *
+ * @return the errors list
+ */
+ public List getErrorsList() {
+ return errors;
+ }
+
+ /**
+ * Gets the inline schemas list.
+ *
+ * @return the inline schemas list
+ */
+ private NodeList getInlineSchemasList() {
+ NodeList schemas = XPathHelper.getXPathResultList(wsdlDocument
+ .getDocumentElement(),
+ "/wsdl:definitions/wsdl:types/xsd:schema");
+ return schemas;
+ }
+
+ /**
+ * Preparse inline grammars.
+ *
+ * @return true, if successful
+ */
+ public boolean preparseInlineGrammars() {
+ boolean bResult = false;
+ Element typesElement = null;
+ Element definitionElement = null;
+
+ errors.clear();
+ // List extElements = null;
+ int extElemSize = 0;
+ NodeList schemasList = getInlineSchemasList();
+
+ extElemSize = schemasList.getLength();
+ schemasMap = new HashMap(extElemSize);
+ xsModelMap = new HashMap(extElemSize);
+
+ for (int i = 0; i < extElemSize; i++) {
+ Map prefixMap = new HashMap();
+ Map altPrefixMap = new HashMap();
+
+ String targetNS = null;
+ try {
+ // XSD Schema element
+ Element schemaElem = (Element) (schemasList.item(i));
+ targetNS = schemaElem.getAttribute("targetNamespace");
+ LOG.debug("The schema with target namespace [" + targetNS
+ + "] found");
+
+ if (null == typesElement) {
+ typesElement = (Element) (schemaElem.getParentNode());
+ }
+
+ if (null == definitionElement) {
+ definitionElement = (Element) (typesElement.getParentNode());
+ }
+
+ // clone the element and obtain the DOM document
+ // of the cloned copy of inline schema for further manipulations
+ Node clonedNode = schemaElem.cloneNode(true);
+ Document schemaDoc = extractSchemaDocument((Element) clonedNode);
+
+ schemaElem = schemaDoc.getDocumentElement();
+
+ DOMHelper.reloadPrefixesForNode(schemaElem, prefixMap);
+ DOMHelper.reloadPrefixesForNode(typesElement, altPrefixMap);
+ DOMHelper
+ .reloadPrefixesForNode(definitionElement, altPrefixMap);
+
+ Iterator prefixIt = altPrefixMap.entrySet().iterator();
+ while (prefixIt.hasNext()) {
+
+ Entry objEntry = (Entry) prefixIt.next();
+ String sPrefix = "xmlns";
+ if (0 != ((String) objEntry.getKey()).length()) {
+ sPrefix += (":" + (String) objEntry.getKey());
+ }
+ if (null == prefixMap.get(objEntry.getKey())) {
+ // no mapping for this prefix
+ schemaElem.setAttribute(sPrefix, (String) objEntry.getValue());
+ // log.debug("The schema patched by [" + sPrefix + "]:["
+ // + (String)objEntry.getValue() + "]"); //
+ }
+ }
+
+ patchSchemaImports(schemaDoc);
+
+ schemasMap.put(targetNS, schemaDoc);
+ } catch (Exception e) {
+ String errMsg = "Unexpected problem while preparing ["
+ + targetNS + "] schema: [" + e.getMessage() + "]";
+ LOG.error(errMsg, e);
+ errors.add(errMsg);
+ }
+ }
+
+ Iterator it = schemasMap.entrySet().iterator();
+ while (it.hasNext()) {
+ Entry objEntry = (Entry) (it.next());
+ Document schemaDoc = (Document) (objEntry.getValue());
+ String nsURI = (String) (objEntry.getKey());
+ XSModel xsModel = getGrammar(schemaDoc.getDocumentElement());
+ if (null != xsModel) {
+ xsModelMap.put(nsURI, xsModel);
+ // log.debug("XS Model successfully reloaded"); //
+ }
+ }
+
+ if (0 != errors.size()) {
+ bResult = false;
+ } else {
+ bResult = true;
+ }
+
+ return bResult;
+ }
+
+ /**
+ * Extract schema document.
+ *
+ * @param schemaElement the schema element
+ *
+ * @return the document
+ */
+ private Document extractSchemaDocument(Element schemaElement) {
+ Document resSchema = null;
+ DOMImplementationLS impl = null;
+ try {
+ DOMImplementationRegistry registry = DOMImplementationRegistry
+ .newInstance();
+ impl = (DOMImplementationLS) registry.getDOMImplementation("LS");
+ } catch (Exception e) {
+ LOG.error("Unable to obtain DOM LS Implementation", e);
+ }
+ LSOutput lsOutput = impl.createLSOutput();
+ LSSerializer lsSerializer = impl.createLSSerializer();
+
+ // log.debug("Serialized Schema: " + schemaString);//
+ lsOutput.setEncoding("UTF-8");
+ ByteArrayOutputStream btOutputStream = new ByteArrayOutputStream();
+ lsOutput.setByteStream(btOutputStream);
+ lsSerializer.write(schemaElement, lsOutput);
+
+ ByteArrayInputStream btInputStream = null;
+
+ btInputStream = new ByteArrayInputStream(btOutputStream.toByteArray());
+
+ try {
+ resSchema = getDocumentBuilder().parse(btInputStream);
+ } catch (ParserConfigurationException e) {
+ LOG.error("Cannot instantiate DocumentBuilder", e);
+ } catch (SAXException e) {
+ LOG.error(
+ "Unexpected problem during re-parsing of extracted schema",
+ e);
+ } catch (IOException e) {
+ LOG.error(
+ "Unexpected problem during re-parsing of extracted schema",
+ e);
+ }
+ return resSchema;
+ }
+
+ /**
+ * Patch schema imports.
+ *
+ * @param schemaDoc the schema doc
+ */
+ private void patchSchemaImports(Document schemaDoc) {
+ Element schemaElem = schemaDoc.getDocumentElement();
+
+ // get the schema target namespace
+ String schemaTns = schemaElem.getAttribute("targetNamespace");
+
+ LOG.debug("Patching schema with [" + schemaTns + "] target namespace");
+
+ // reload all attributes that could contain references to external
+ // schemas
+ NodeList byType = XPathHelper.getXPathResultList(schemaElem, "//xsd:*[@type]");
+ NodeList byRef = XPathHelper.getXPathResultList(schemaElem, "//xsd:*[@ref]");
+ NodeList byBase = XPathHelper.getXPathResultList(schemaElem, "//xsd:*[@base]");
+
+ // log.debug("[" + byType.getLength() + "] references by type");
+ // log.debug("[" + byRef.getLength() + "] references by ref");
+ // log.debug("[" + byBase.getLength() + "] references by base");
+
+ Set refNamespaces = new HashSet();
+
+ for (int i = 0; i < byType.getLength(); i++) {
+ Element elem = (Element) (byType.item(i));
+ String type = elem.getAttribute("type");
+ QName typeQName = DOMHelper.resolveReferenceQName(elem, type);
+ // log.debug("@type references on: [" + typeQName + "]"); //
+ if (null != typeQName) {
+ refNamespaces.add(typeQName.getNamespaceURI());
+ } else {
+ LOG
+ .error("Unable to resolve the type reference [" + type
+ + "]");
+ }
+ }
+
+ for (int i = 0; i < byRef.getLength(); i++) {
+ Element elem = (Element) (byRef.item(i));
+ String type = elem.getAttribute("ref");
+ QName typeQName = DOMHelper.resolveReferenceQName(elem, type);
+ // log.debug("@ref references on: [" + typeQName + "]"); //
+ if (null != typeQName) {
+ refNamespaces.add(typeQName.getNamespaceURI());
+ } else {
+ LOG
+ .error("Unable to resolve the type reference [" + type
+ + "]");
+ }
+ }
+
+ for (int i = 0; i < byBase.getLength(); i++) {
+ Element elem = (Element) (byBase.item(i));
+ String type = elem.getAttribute("base");
+ QName typeQName = DOMHelper.resolveReferenceQName(elem, type);
+ // log.debug("@base references on: [" + typeQName + "]"); //
+ if (null != typeQName) {
+ refNamespaces.add(typeQName.getNamespaceURI());
+ } else {
+ LOG
+ .error("Unable to resolve the type reference [" + type
+ + "]");
+ }
+ }
+
+ LOG.debug("The list of namespaces to be imported: " + refNamespaces);
+
+ String xsdPrefix = DOMHelper.resolveNamespace(schemaElem,
+ URIConstants.XSD_SCHEMA_2001_URI);
+ LOG.debug("The XSD Namespace is mapped to [" + xsdPrefix + "] prefix");
+
+ Iterator it = refNamespaces.iterator();
+ while (it.hasNext()) {
+ String uri = (String) (it.next());
+ if ((0 != URIConstants.XSD_SCHEMA_2001_URI.compareTo(uri))
+ && (0 != schemaTns.compareTo(uri))) {
+ Element importElement = schemaDoc.createElementNS(
+ URIConstants.XSD_SCHEMA_2001_URI, "import");
+
+ if (null != xsdPrefix && 0 != xsdPrefix.length()) {
+ importElement.setPrefix(xsdPrefix);
+ }
+
+ importElement.setAttribute("namespace", uri);
+ schemaElem.insertBefore(importElement, schemaElem
+ .getFirstChild());
+ // schemaElem.appendChild(importElement);
+ LOG.debug("Import directive for [" + uri
+ + "] namespace created");
+ }
+
+ }
+
+ }
+
+ private static DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {
+ if (theDocumentBuilder == null) {
+ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+ factory.setValidating(false);
+ factory.setNamespaceAware(true);
+
+ theDocumentBuilder = factory.newDocumentBuilder();
+ }
+ return theDocumentBuilder;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaHelper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaPrefixResolver.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaPrefixResolver.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaPrefixResolver.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import javax.xml.namespace.NamespaceContext;
+
+/**
+ * Very simple prefix resolver that is able to resolve XSD/WSDL/Partner Link/SDX
+ * prefixes only This resolver is used only for internal needs of Inline Schema
+ * helper.
+ */
+public class InlineSchemaPrefixResolver implements NamespaceContext {
+
+ /** The DEFAUL t_ XS d_ PREFIX. */
+ private static final String DEFAULT_XSD_PREFIX = "xsd";
+
+ /** The DEFAUL t_ WSD l_ PREFIX. */
+ private static final String DEFAULT_WSDL_PREFIX = "wsdl";
+
+ /** The DEFAUL t_ PLN k_ PREFIX. */
+ private static final String DEFAULT_PLNK_PREFIX = "plnk";
+
+ /** The DEFAUL t_ SD x_ PREFIX. */
+ private static final String DEFAULT_SDX_PREFIX = "sdx";
+
+ /** The _mappings. */
+ private static Map mappings = new HashMap();
+
+ static {
+ mappings.put(DEFAULT_XSD_PREFIX, URIConstants.XSD_SCHEMA_2001_URI);
+ mappings.put(DEFAULT_WSDL_PREFIX, URIConstants.WSDL11_SCHEMA_URI);
+ mappings.put(DEFAULT_PLNK_PREFIX, URIConstants.PARTNER_LINK_URI);
+ mappings.put(DEFAULT_SDX_PREFIX, URIConstants.SOPWARE_SDX20_SCHEMA_URI);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getNamespaceURI(String prefix) {
+ return (String) mappings.get(prefix);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getPrefix(String nsURI) {
+ String prefix = null;
+ Entry entry = null;
+ Iterator it = mappings.entrySet().iterator();
+
+ while ((null == prefix) && it.hasNext()) {
+ entry = (Entry) it.next();
+ String value = (String) entry.getValue();
+ if (0 == value.compareTo(nsURI)) {
+ prefix = (String) entry.getKey();
+ }
+ }
+
+ return prefix;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public Iterator getPrefixes(String nsURI) {
+ return mappings.keySet().iterator();
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/InlineSchemaPrefixResolver.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MessageHelper.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MessageHelper.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MessageHelper.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,189 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import javax.xml.namespace.QName;
+
+import org.eclipse.stp.common.validator.base.ValidationMessage;
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.xml.sax.ErrorHandler;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
+
+/**
+ * The Class MessageHelper.
+ */
+public class MessageHelper implements ErrorHandler {
+
+ /** The Constant _MSG_BUNDLE_NAME. */
+ private static final String MSG_BUNDLE_NAME = "messages";
+
+ /** The m_reporter. */
+ private IReporter iReporter = null;
+
+ /** The m_current object. */
+ private QName currentObject = null;
+
+ /**
+ * Sets the reporter.
+ *
+ * @param reporter the new reporter
+ */
+ public void setReporter(IReporter reporter) {
+ iReporter = reporter;
+ }
+
+ /**
+ * Sets the current object.
+ *
+ * @param objectQName the new current object
+ */
+ public void setCurrentObject(QName objectQName) {
+ currentObject = objectQName;
+ }
+
+ /**
+ * Report error.
+ *
+ * @param msgID the msg ID
+ * @param pReporter the reporter
+ * @param params the params
+ * @param cause the cause
+ */
+ public void reportError(MessageTypeEnum msgID, IReporter pReporter, String [] params, Object cause) {
+ if (null != pReporter) {
+ reportMessage(IMessage.ERROR_SEVERITY, msgID, pReporter, params, cause, null);
+ }
+ }
+
+ /**
+ * Report error.
+ *
+ * @param msgID the msg ID
+ * @param pReporter the reporter
+ * @param params the params
+ * @param objQName the obj Q name
+ */
+ public void reportError(MessageTypeEnum msgID, IReporter pReporter, String [] params, QName objQName) {
+ if (null != pReporter) {
+ reportMessage(IMessage.ERROR_SEVERITY, msgID, pReporter, params, null, objQName);
+ }
+ }
+
+ /**
+ * Report warning.
+ *
+ * @param msgID the msg ID
+ * @param pReporter the reporter
+ * @param params the params
+ * @param cause the cause
+ */
+ public void reportWarning(MessageTypeEnum msgID, IReporter pReporter, String [] params, Object cause) {
+ if (null != pReporter) {
+ reportMessage(IMessage.WARNING_SEVERITY, msgID, pReporter, params, cause, null);
+ }
+ }
+
+ /**
+ * Report info.
+ *
+ * @param msgID the msg ID
+ * @param pReporter the reporter
+ * @param params the params
+ */
+ public void reportInfo(MessageTypeEnum msgID, IReporter pReporter, String [] params) {
+ if (null != pReporter) {
+ reportMessage(IMessage.INFO_SEVERITY, msgID, pReporter, params, null, null);
+ }
+ }
+ /**
+ * {@inheritDoc}
+ */
+ public void error(SAXParseException exception) throws SAXException {
+ if (null != iReporter) {
+ ValidationMessage msg = new ValidationMessage(MSG_BUNDLE_NAME,
+ IMessage.ERROR_SEVERITY,
+ MessageTypeEnum.XML_SCHEMA_CONSTRAINT,
+ new String [] {exception.toString()});
+ msg.setLineNo(exception.getLineNumber());
+ if (null != currentObject) {
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, currentObject);
+ }
+ iReporter.addMessage((IMessage) msg);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void fatalError(SAXParseException exception) throws SAXException {
+ if (null != iReporter) {
+ ValidationMessage msg = new ValidationMessage(MSG_BUNDLE_NAME,
+ IMessage.ERROR_SEVERITY,
+ MessageTypeEnum.XML_SCHEMA_CONSTRAINT,
+ new String [] {exception.getMessage()});
+ msg.setLineNo(exception.getLineNumber());
+ if (null != currentObject) {
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, currentObject);
+ }
+
+ iReporter.addMessage((IMessage) msg);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void warning(SAXParseException exception) throws SAXException {
+ if (null != iReporter) {
+ ValidationMessage msg = new ValidationMessage(MSG_BUNDLE_NAME,
+ IMessage.WARNING_SEVERITY,
+ MessageTypeEnum.XML_SCHEMA_CONSTRAINT,
+ new String [] {exception.toString()});
+ msg.setLineNo(exception.getLineNumber());
+ if (null != currentObject) {
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, currentObject);
+ }
+
+ iReporter.addMessage((IMessage) msg);
+ }
+ }
+
+ /**
+ * Report message.
+ *
+ * @param severity the severity
+ * @param msgID the msg ID
+ * @param pReporter the reporter
+ * @param params the params
+ * @param cause the cause
+ * @param objQName the obj Q name
+ */
+ private void reportMessage(int severity,
+ MessageTypeEnum msgID,
+ IReporter pReporter,
+ String [] params,
+ Object cause, QName objQName) {
+ if (null != pReporter) {
+ IMessage msg = new ValidationMessage(MSG_BUNDLE_NAME, severity, msgID, params);
+ if (null != cause) {
+ msg.setAttribute(IMessage.CAUSE_ATTRIB, cause);
+ }
+ if (null != objQName) {
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, objQName);
+ } else if (null != currentObject) {
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, currentObject);
+ }
+
+ pReporter.addMessage(msg);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MessageHelper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MultiSchemaValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MultiSchemaValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MultiSchemaValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,205 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.net.URI;
+
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+import javax.xml.validation.Validator;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.ISchemaDocumentFactory;
+import org.eclipse.stp.common.validator.core.impl.SchemaDocumentFactoryImpl;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.Document;
+
+/**
+ * The Class MultiSchemaValidator.
+ */
+public class MultiSchemaValidator implements IValidator {
+
+ /** The Constant XSD_SCHEMA_2001_URI. */
+ public static final String XSD_SCHEMA_2001_URI = "http://www.w3.org/2001/XMLSchema";
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger
+ .getLogger(MultiSchemaValidator.class);
+
+ /** The m_helper. */
+ private static MessageHelper helper = new MessageHelper();
+
+ /** The _schema factory. */
+ private static SchemaFactory hSchemaFactory = null;
+
+ /** The _schm validator. */
+ private SopwareParticularityValidator schmValidator = new SopwareParticularityValidator();
+
+ static {
+ System
+ .setProperty(
+ "javax.xml.validation.SchemaFactory:" + XSD_SCHEMA_2001_URI,
+ "org.apache.xerces.jaxp.validation.XMLSchemaFactory");
+ hSchemaFactory = org.apache.xerces.jaxp.validation.XMLSchemaFactory
+ .newInstance(XSD_SCHEMA_2001_URI);
+ }
+ static {
+ SchemaDocumentFactoryImpl instance = (SchemaDocumentFactoryImpl) (SchemaDocumentFactoryImpl
+ .getInstance());
+ hSchemaFactory.setResourceResolver(instance);
+ hSchemaFactory.setErrorHandler(helper);
+ }
+
+
+ /**
+ * Instantiates a new multi schema validator.
+ */
+ public MultiSchemaValidator() {
+ LOG.debug("The schema factory instance is ["
+ + hSchemaFactory.toString() + "], ["
+ + hSchemaFactory.getClass() + "]");
+ }
+
+ /**
+ * Gets the verifier.
+ *
+ * @param pValidationContext the validation context
+ * @param schemaFactory the schema factory
+ * @param schemaURI the schema URI
+ *
+ * @return the verifier
+ *
+ * @throws SOPValidationException TODO.
+ */
+ private Validator getVerifier(IValidationContext pValidationContext,
+ ISchemaDocumentFactory schemaFactory, String schemaURI)
+ throws SOPValidationException {
+ Validator verifier = null;
+ IValidationObject xsdObject = null;
+ String errMsg = null;
+
+ try {
+ xsdObject = schemaFactory.getSchemaObject(new URI(schemaURI),
+ pValidationContext);
+ DOMSource domSource = new DOMSource(xsdObject.getInput());
+ // InputStream isSchema = XSDObject.getInputStream();
+
+ // log.debug("System ID for input Source: " +
+ // XSDObject.getID().getURI().toString());
+ // inputSource.setSystemId(XSDObject.getID().getURI().toString());
+ // StreamSource streamSource = new StreamSource (isSchema);
+ Schema xSDSchema = hSchemaFactory.newSchema(domSource);
+ verifier = xSDSchema.newValidator();
+ LOG.debug("Verifier instantiated: " + verifier);
+
+ } catch (ContextInitializationException e) {
+ errMsg = "Unable to initialize context for [" + schemaURI + "]";
+ LOG.error(errMsg);
+ throw new SOPValidationException(errMsg, e);
+ } catch (ConfigurationException e) {
+ errMsg = "Configuration problem while getting [" + schemaURI + "]";
+ LOG.error(errMsg);
+ throw new SOPValidationException(errMsg, e);
+ } catch (Exception e) {
+ errMsg = "Unexpected problem while getting [" + schemaURI + "]";
+ LOG.error(errMsg, e);
+ throw new SOPValidationException(errMsg, e);
+ }
+ return verifier;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void validate(IValidationContext pValidationContext,
+ IReporter pReporter) throws SOPValidationException {
+
+ helper.setReporter(pReporter);
+
+ try {
+
+ IValidationObject valObj = pValidationContext.getObject();
+ if (null == valObj) {
+ LOG.error("Empty object for validation");
+ throw new ContextInitializationException(
+ "Empty object for validation");
+ }
+
+ Document inputDocument = valObj.getInput();
+ String schemas[] = null;
+
+ if (valObj.getID().getType().equals(
+ ValidationObjectTypeEnum.SDX_TYPE)) {
+ schemas = new String[] { URIConstants.SOPWARE_SDX20_SCHEMA_URI };
+ } else if (valObj.getID().getType().equals(
+ ValidationObjectTypeEnum.OPX_TYPE)) {
+ // SchemaDocumentFactoryImpl.WS_POLICY_SCHEMA_URI,
+ schemas = new String[] { URIConstants.SOPWARE_ASSERTIONS_SCHEMA_URI };
+ } else if (valObj.getID().getType().equals(
+ ValidationObjectTypeEnum.SPDX_TYPE)) {
+ schemas = new String[] { URIConstants.SOPWARE_SPDX20_SCHEMA_URI };
+ } else if (valObj.getID().getType().equals(
+ ValidationObjectTypeEnum.PPDX_TYPE)) {
+ schemas = new String[] { URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI };
+ } else {
+
+ throw new SOPValidationException(
+ "Unsupported validation object type: ["
+ + valObj.getID().getType().getName() + "]");
+ }
+
+ ISchemaDocumentFactory schemaFactory =
+ SchemaDocumentFactoryImpl.getInstance();
+ for (int i = 0; i < schemas.length; i++) {
+ LOG.debug("XML Schema Validation against [" + schemas[i] + "]");
+
+ Validator verifier = getVerifier(pValidationContext, schemaFactory,
+ schemas[i]);
+ helper.setCurrentObject(valObj.getID().getQName());
+ verifier.setErrorHandler(helper);
+ verifier.validate(new DOMSource(inputDocument));
+ helper.setCurrentObject(null);
+
+ LOG.debug("XML Schema Validation finished");
+ }
+
+ LOG.debug("Performing SOPERA Particularity validation...");
+ schmValidator.validate(pValidationContext, pReporter);
+ LOG.debug("SOPERA Particularity Validation Finished");
+
+ } catch (ContextInitializationException e) {
+ // XML_WELLFORMNESS_PROBLEM
+ LOG.error("Unable to initialize context before validation: "
+ + e.toString());
+ helper.reportError(MessageTypeEnum.XML_WELLFORMNESS_PROBLEM,
+ pReporter, new String[] { e.getMessage() }, e);
+ // throw new SOPValidationException ("Unable to initialize context
+ // before validation", e);
+ } catch (SOPValidationException e) {
+ throw e;
+ } catch (Exception e) {
+ LOG.error("Unexpected error during validation: [" + e.getMessage()
+ + "]", e);
+ throw new SOPValidationException(
+ "Unexpected error during validation", e);
+ } finally {
+ helper.setReporter(null);
+ helper.setCurrentObject(null);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/MultiSchemaValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SOPExtensibilityValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SOPExtensibilityValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SOPExtensibilityValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+/**
+ * The Class SOPExtensibilityValidator.
+ */
+public class SOPExtensibilityValidator {
+
+ /**
+ * Validate.
+ *
+ * @param element the element
+ * @param parent the parent
+ */
+ public void validate(java.lang.Object element,
+ java.lang.Object parent) {
+
+
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SOPExtensibilityValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SopwareParticularityValidator.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SopwareParticularityValidator.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SopwareParticularityValidator.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,927 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+
+import org.apache.log4j.Logger;
+import org.eclipse.stp.common.validator.base.ValidationMessage;
+import org.eclipse.stp.common.validator.core.IMessage;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidationObject;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.MessageTypeEnum;
+import org.eclipse.stp.common.validator.core.ValidationObjectTypeEnum;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * The Class SopwareParticularityValidator.
+ */
+public class SopwareParticularityValidator implements IValidator {
+
+ /** The Constant log. */
+ private static final Logger LOG = Logger.getLogger(SopwareParticularityValidator.class);
+
+ /** Assertion Choice compositor name. */
+ private static final QName ASSERTION_CHOICE = new QName(URIConstants.WS_POLICY_SCHEMA_URI, "ExactlyOne");
+
+ /** Assertion Union compositor name. */
+ private static final QName ASSERTION_UNION = new QName(URIConstants.WS_POLICY_SCHEMA_URI, "All");
+
+ /** Assertion Union attribute name. */
+ private static final QName ATTR_ASSERTION_OPTIONAL = new QName(URIConstants.WS_POLICY_SCHEMA_URI, "Optional");
+
+ /** The Constant _MSG_BUNDLE_NAME. */
+ private static final String MSG_BUNDLE_NAME = "messages";
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.stp.common.validator.core.IValidator#validate(org.eclipse.stp.common.validator.core.IValidationContext,
+ * org.eclipse.stp.common.validator.core.IReporter)
+ */
+ public void validate(IValidationContext pValidationContext, IReporter pReporter) throws SOPValidationException {
+
+ try {
+ LOG.debug("Perfroming SOPERA Particularity validation");
+
+ IValidationObject valObj = pValidationContext.getObject();
+ if (null == valObj) {
+ LOG.error("Empty object for validation");
+ throw new SOPValidationException("Empty object for validation");
+ }
+
+ if (valObj.getID().getType().equals(ValidationObjectTypeEnum.SDX_TYPE)) {
+ checkSDX(valObj, pReporter);
+ } else if (valObj.getID().getType().equals(ValidationObjectTypeEnum.OPX_TYPE)) {
+ checkOPDX(valObj, pReporter);
+ } else if (valObj.getID().getType().equals(ValidationObjectTypeEnum.PPDX_TYPE)) {
+ checkPPDX(valObj, pReporter);
+ } else if (valObj.getID().getType().equals(ValidationObjectTypeEnum.SPDX_TYPE)) {
+ checkSPDX(valObj, pReporter);
+ }
+
+ } catch (SOPValidationException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new SOPValidationException("Unexpected problem while performing SOPERA Particularity validation", e);
+ }
+ }
+
+ /**
+ * Check SDX.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private void checkSDX(IValidationObject valObj, IReporter pReporter) throws SOPValidationException {
+
+ Document sdxDocument = getInputDocument(valObj);
+
+ NodeList nlDefinitions = sdxDocument.getElementsByTagNameNS(URIConstants.WSDL11_SCHEMA_URI, "definitions");
+
+ if (1 != nlDefinitions.getLength()) {
+ report(valObj, pReporter, "A Service Description should have a WSDL definitions element.");
+ } else {
+ Element nDefinitions = (Element) nlDefinitions.item(0);
+
+ // *** general structure
+ List nlService = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "service");
+ if (0 != nlService.size()) {
+ report(valObj, pReporter, "A Service Description should not have a service element.");
+ }
+
+ List nlBinding = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "binding");
+ if (0 != nlBinding.size()) {
+ report(valObj, pReporter, "A Service Description should not have a binding element.");
+ }
+
+ List nlPortType = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "portType");
+ if (1 != nlPortType.size() && 2 != nlPortType.size()) {
+ report(valObj, pReporter, "A Service Description should have more than zero and no more than 2 portType element.");
+ }
+
+ List nlPartnerLinkType = getChildElementsByTagNameNS(nDefinitions, URIConstants.PARTNER_LINK_URI, "partnerLinkType");
+ if (0 != nlPartnerLinkType.size() && 1 != nlPartnerLinkType.size()) {
+ report(valObj, pReporter, "A Service Description must have either no partner link types present or 1 when defining callbacks.");
+ }
+
+ if ((1 != nlPortType.size() || 0 != nlPartnerLinkType.size()) && (2 != nlPortType.size() || 1 != nlPartnerLinkType.size())) {
+ report(valObj, pReporter, "A Service Description must provide a partnerPortType when defining two porttypes.");
+ }
+
+ // *** partnerLinkType
+ // TODO: check via WSDL4J extension
+ if (1 == nlPartnerLinkType.size()) {
+ boolean isServicePartnerRolePresents = false;
+ boolean isCallbackPartnerRolePresents = false;
+
+ Element elPartnerLinkType = (Element) nlPartnerLinkType.get(0);
+
+ List nlRole = getChildElementsByTagNameNS(elPartnerLinkType, URIConstants.PARTNER_LINK_URI, "role");
+ final int count = nlRole.size();
+ for (int i = 0; i < count; i++) {
+ Element elRole = (Element) nlRole.get(i);
+
+ if ("service".equals(elRole.getAttribute("name"))) {
+ isServicePartnerRolePresents = true;
+ }
+ if ("callback".equals(elRole.getAttribute("name"))) {
+ isCallbackPartnerRolePresents = true;
+ }
+ }
+
+ if (!isServicePartnerRolePresents) {
+ report(valObj, pReporter, "The 'service' role is not specified in the Partner Link.");
+ }
+ if (!isCallbackPartnerRolePresents) {
+ report(valObj, pReporter, "The 'callback' role is not specified in the Partner Link.");
+ }
+ }
+
+ // part under message
+ // TODO: check via WSDL4J
+ NodeList nlMessage = nDefinitions.getElementsByTagNameNS(URIConstants.WSDL11_SCHEMA_URI, "message");
+ final int count1 = nlMessage.getLength();
+ for (int i = 0; i < count1; i++) {
+ Element elMessage = (Element) nlMessage.item(i);
+
+ int numberMessagePart = getChildElementsByTagNameNS(elMessage, URIConstants.WSDL11_SCHEMA_URI, "part").size();
+ if (1 < numberMessagePart) {
+ report(valObj, pReporter, "Message \"" + elMessage.getAttribute("name") + "\" has " + numberMessagePart + " message parts. SOPERA supports only messages with a single or no part.");
+ }
+ }
+
+ // *** part
+ // TODO: check via WSDL4J
+ NodeList nlPart = nDefinitions.getElementsByTagNameNS(URIConstants.WSDL11_SCHEMA_URI, "part");
+ final int count2 = nlPart.getLength();
+ for (int i = 0; i < count2; i++) {
+ Element elPart = (Element) nlPart.item(i);
+
+ // not(@element and not(@type))
+ if (!(checkAttributePresents(elPart, new QName("element")) && !checkAttributePresents(elPart, new QName("type")))) {
+ report(valObj, pReporter, "A Service Description only supports the element attribute in a part element and not the type attribute.");
+ }
+ }
+
+ // *** SDX related extension
+ // TODO: xPath
+ NodeList nlSdxElements = nDefinitions.getElementsByTagNameNS(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "*");
+ final int count3 = nlSdxElements.getLength();
+ for (int i = 0; i < count3; i++) {
+ String name = nlSdxElements.item(i).getLocalName();
+ report(valObj, pReporter, "The \"" + name + "\" element is not an extension element from the service description namespace.");
+ }
+
+ // *** Service Description specific attributes
+ QName wsdlPortType = new QName(URIConstants.WSDL11_SCHEMA_URI, "portType");
+ QName wsdlOperation = new QName(URIConstants.WSDL11_SCHEMA_URI, "operation");
+
+ NodeList nlAnyElements = nDefinitions.getElementsByTagNameNS("*", "*");
+ final int count4 = nlAnyElements.getLength();
+ for (int i = 0; i < count4; i++) {
+ Element nAnyElement = (Element) nlAnyElements.item(i);
+ QName qName = new QName(nAnyElement.getNamespaceURI(), nAnyElement.getLocalName());
+
+ if (!wsdlPortType.equals(qName)) {
+ if (checkAttributePresents(nAnyElement, new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "domain"))) {
+ report(valObj, pReporter, "The attribute domain may only be defined within the element portType.");
+ }
+
+ if (checkAttributePresents(nAnyElement, new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "version"))) {
+ report(valObj, pReporter, "The attribute version may only be defined within the element portType.");
+ }
+
+ if (checkAttributePresents(nAnyElement, new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "status"))) {
+ report(valObj, pReporter, "The attribute status may only be defined within the element portType.");
+ }
+ }
+
+ if (!wsdlOperation.equals(qName)) {
+ if (checkAttributePresents(nAnyElement, new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "partnerOperation"))) {
+ report(valObj, pReporter, "The attribute partnerOperation may only be defined within the element operation.");
+ }
+
+ if (checkAttributePresents(nAnyElement, new QName(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "faultOperation"))) {
+ report(valObj, pReporter, "The attribute faultOperation may only be defined within the element operation.");
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Check SPDX.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private void checkSPDX(IValidationObject valObj, IReporter pReporter) throws SOPValidationException {
+
+ Document spdxDocument = getInputDocument(valObj);
+
+ NodeList nlDefinitions = spdxDocument.getElementsByTagNameNS(URIConstants.WSDL11_SCHEMA_URI, "definitions");
+
+ if (1 != nlDefinitions.getLength()) {
+ report(valObj, pReporter, "A Service Description should have a WSDL definitions element.");
+ } else {
+ Element nDefinitions = (Element) nlDefinitions.item(0);
+
+ // *** general structure
+ List nlPortType = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "portType");
+ if (0 != nlPortType.size()) {
+ report(valObj, pReporter, "A Service Description must not have one portType element.");
+ }
+
+ List nlService = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "service");
+ if (1 != nlService.size()) {
+ report(valObj, pReporter, "A Service Provider Description must have exactly one service element.");
+ }
+
+ List nlBinding = getChildElementsByTagNameNS(nDefinitions, URIConstants.WSDL11_SCHEMA_URI, "binding");
+ if (0 == nlBinding.size()) {
+ report(valObj, pReporter, "A Service Provider Description must have at least one binding element.");
+ }
+
+ // Checks for the only SOAP based bindings.
+ // Rules describing how the operations within the binding may be
+ // distributed.
+ Map transportOperations = new HashMap();
+ final int count1 = nlBinding.size();
+ for (int i = 0; i < count1; i++) {
+ Node nBinding = (Node) nlBinding.get(i);
+
+ List nlSoapBinding = getChildElementsByTagNameNS(nBinding, URIConstants.SOAP_TRANSPORT_URI, "binding");
+ if (1 != nlSoapBinding.size()) {
+ report(valObj, pReporter, "A service description supports only SOAP based bindings.");
+ } else {
+ Element elSoapBinding = (Element) nlSoapBinding.get(0);
+ String transport = elSoapBinding.getAttribute("transport");
+
+ List currentTransportOperations;
+ if (transportOperations.containsKey(transport)) {
+ currentTransportOperations = (List) transportOperations.get(transport);
+ } else {
+ currentTransportOperations = new ArrayList();
+ transportOperations.put(transport, currentTransportOperations);
+ }
+
+ List nlOperations = getChildElementsByTagNameNS(nBinding, URIConstants.WSDL11_SCHEMA_URI, "operation");
+ Iterator it = nlOperations.iterator();
+ while (it.hasNext()) {
+ Element elOperation = (Element) it.next();
+ String name = elOperation.getAttribute("name");
+ if (currentTransportOperations.contains(name)) {
+ report(valObj, pReporter, "An operation \"" + name + "\" may only appear in different bindings if these bindings use different transports.");
+ }
+ }
+ }
+ }
+
+ // Checks SOAP based binding
+ NodeList nlSoapBinding = nDefinitions.getElementsByTagNameNS(URIConstants.SOAP_TRANSPORT_URI, "binding");
+ final int count2 = nlSoapBinding.getLength();
+ for (int i = 0; i < count2; i++) {
+ Element nSoapBinding = (Element) nlSoapBinding.item(i);
+
+ Node nParent = nSoapBinding.getParentNode();
+ if (!URIConstants.WSDL11_SCHEMA_URI.equals(nParent.getNamespaceURI()) || !"binding".equals(nParent.getLocalName())) {
+ report(valObj, pReporter, "The element <sch:name/> should only appear inside a WSDL binding element.");
+ }
+
+ String transport = nSoapBinding.getAttribute("transport");
+ if (!"http://schemas.xmlsoap.org/soap/http".equals(transport) && !"http://schemas.xmlsoap.org/soap/jms".equals(transport) && !"http://binding.sopware.org/soap/sbb2".equals(transport)) {
+ report(valObj, pReporter, "The SOAP binding is only supported over HTTP, JMS or via the sbb2 binding component.");
+ }
+
+ Attr attrStyle = nSoapBinding.getAttributeNode("style");
+ if (null != attrStyle && !"document".equals(attrStyle.getNodeValue())) {
+ report(valObj, pReporter, "Only \"document\" communication style is allowed for SOAP binding.");
+ }
+ }
+
+ // communication style for SOAP operations.
+ NodeList nlSoapOperation = nDefinitions.getElementsByTagNameNS(URIConstants.SOAP_TRANSPORT_URI, "operation");
+ final int count3 = nlSoapOperation.getLength();
+ for (int i = 0; i < count3; i++) {
+ Element nSoapOperation = (Element) nlSoapOperation.item(i);
+
+ Attr attrStyle = nSoapOperation.getAttributeNode("style");
+ if (null != attrStyle && !"document".equals(attrStyle.getNodeValue())) {
+ report(valObj, pReporter, "Only \"document\" communication style is allowed for SOAP operations.");
+ }
+ }
+
+ // Rules for the jms adress element
+ NodeList nlJmsAddress = nDefinitions.getElementsByTagNameNS(URIConstants.JMS_TRANSPORT_URI, "address");
+ final int count4 = nlJmsAddress.getLength();
+ for (int i = 0; i < count4; i++) {
+ Element nJmsAddress = (Element) nlJmsAddress.item(i);
+
+ boolean isDestinationStyle = checkAttributePresents(nJmsAddress, new QName("destinationStyle"));
+ boolean isJmsImplementationSpecificURI = checkAttributePresents(nJmsAddress, new QName("jmsImplementationSpecificURI"));
+ boolean isJmsProviderDestinationName = checkAttributePresents(nJmsAddress, new QName("jmsProviderDestinationName"));
+ boolean isJndiDestinationName = checkAttributePresents(nJmsAddress, new QName("jndiDestinationName"));
+ boolean isJndiConnectionFactoryName = checkAttributePresents(nJmsAddress, new QName("jndiConnectionFactoryName"));
+ boolean isJndiProviderURL = checkAttributePresents(nJmsAddress, new QName("jndiProviderURL"));
+ boolean isInitialContextFactory = checkAttributePresents(nJmsAddress, new QName("initialContextFactory"));
+
+ if (isDestinationStyle && isJmsImplementationSpecificURI) {
+ report(valObj, pReporter, "destinationStyle and jmsImplementationSpecificURI must not be specified both as attributes in the jms:address element.");
+ }
+
+ if (!isDestinationStyle && !isJmsImplementationSpecificURI) {
+ report(valObj, pReporter, "Either destinationStyle or jmsImplementationSpecificURI must be specified as attributes in the jms:address element");
+ }
+
+ if (isJndiDestinationName && isJmsProviderDestinationName) {
+ report(valObj, pReporter, "jndiDestinationName and jmsProviderDestinationName must not be specified both as attributes in the jms:address element.");
+ }
+
+ if (isDestinationStyle && !isJndiDestinationName && !isJmsProviderDestinationName) {
+ report(valObj, pReporter, "if destinationStyle is specified, then either jndiDestinationName or jmsProviderDestinationName must be specified as attributes in the jms:address element");
+ }
+
+ if (isJndiDestinationName && !isJndiConnectionFactoryName) {
+ report(valObj, pReporter, "if jndiDestinationName is specified then jndiConnectionFactoryName must also be specified as attributes in the jms:address element");
+ }
+
+ if (isDestinationStyle && (!isJndiProviderURL || !isInitialContextFactory) && isJndiProviderURL && isInitialContextFactory) {
+ report(valObj, pReporter, "if destinationStyle is specified then either both jndiProviderURL and initialContextFactory or neither must be specified as attributes in the jms:address element");
+ }
+ }
+ }
+ }
+
+ /**
+ * Check PPDX.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private void checkPPDX(IValidationObject valObj, IReporter pReporter) throws SOPValidationException {
+
+ Document ppdxDocument = getInputDocument(valObj);
+
+ Set uniqueName = new HashSet();
+ List nlOperation = getChildElementsByTagNameNS(ppdxDocument.getDocumentElement(), URIConstants.SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI, "Operation");
+ Iterator it = nlOperation.iterator();
+ while (it.hasNext()) {
+ String attrName = ((Element) it.next()).getAttribute("name");
+ if (!uniqueName.add(attrName)) {
+ report(valObj, pReporter, "The operation \"" + attrName + "\" declared in Participant Policy more than one time");
+ }
+ }
+ }
+
+ /**
+ * Check OPDX.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private void checkOPDX(IValidationObject valObj, IReporter pReporter) throws SOPValidationException {
+
+ Document opdxDocument = getInputDocument(valObj);
+
+ // List nlTopExactlyOne =
+ // getChildElementsByTagNameNS(opdxDocument.getDocumentElement(),
+ // ASSERTION_CHOICE);
+ // for (int i = 0, count = nlTopExactlyOne.size(); i < count; i++) {
+ // List nlAll = getChildElementsByTagNameNS((Node)
+ // nlTopExactlyOne.get(i), ASSERTION_UNION);
+ // if (0 == nlAll.size()) {
+ // report(valObj, pReporter,
+ // "Operation Policy must define at least one Alternative.");
+ // } else {
+ // Iterator it = nlAll.iterator();
+ // while (it.hasNext()) {
+ // Node nAll = (Node) it.next();
+ //
+ // List nlNestExactlyOne = getChildElementsByTagNameNS(nAll,
+ // URIConstants.WS_POLICY_SCHEMA_URI, "ExactlyOne");
+ //
+ // List nlNestAll = getChildElementsByTagNameNS(nAll,
+ // URIConstants.WS_POLICY_SCHEMA_URI, "All");
+ //
+ // if (0 == nlNestExactlyOne.size() && 0 == nlNestAll.size()) {
+ // report(valObj, pReporter,
+ // "Alternative must define at least one Assertion Choice or Assertion
+ // Union.");
+ // }
+ // }
+ // }
+ // }
+
+ // checks SOPERA Policy Assertions
+ List report = new ArrayList();
+
+ NodeList nlSOPAExtension = opdxDocument.getDocumentElement().getElementsByTagNameNS(URIConstants.SOPWARE_ASSERTIONS_SCHEMA_URI, "*");
+ final int count1 = nlSOPAExtension.getLength();
+ for (int i = 0; i < count1; i++) {
+ Element nSOPAExtension = (Element) nlSOPAExtension.item(i);
+
+ String name = nSOPAExtension.getLocalName();
+
+ if ("HttpTransport".equals(name) || "HttpsTransport".equals(name) || "JmsTransport".equals(name) || "Sbb2Transport".equals(name)) {
+
+ // *** checks transport assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_CHOICE)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("Only one " + nSOPAExtension.getLocalName() + " assertion is allowed in a Compositor.");
+ }
+
+ } else {
+ report.add("Transport Assertion is allowed only in Assertion Choice compositor.");
+ }
+
+ if (checkAttributePresents(nSOPAExtension, ATTR_ASSERTION_OPTIONAL)) {
+ report.add("The [" + nSOPAExtension.getLocalName() + "] Assertion cannot be optional");
+ }
+
+ } else if ("MaxResponseTime".equals(name)) {
+
+ // *** checks max response time assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_CHOICE)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("Only one MaxResponseTime assertion is allowed in a Compositor.");
+ }
+
+ } else {
+ report.add("MaxResponseTime Assertion is allowed only in Assertion Choice compositor.");
+ }
+
+ } else if ("Transformation".equals(name)) {
+
+ // *** checks transformation assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_UNION)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "request")) {
+ report.add("More than one Transformation Assertion for the same message type in the same compositor is not allowed.");
+ }
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "response")) {
+ report.add("More than one Transformation Assertion for the same message type in the same compositor is not allowed.");
+ }
+
+ } else {
+ report.add("Transformation Assertion is allowed only in Assertion Union compositor.");
+ }
+
+ } else if ("TrackingLevel".equals(name)) {
+
+ // *** checks tracking level assertion
+ Attr attrVal = nSOPAExtension.getAttributeNode("value");
+ Attr attrMin = nSOPAExtension.getAttributeNode("min");
+ Attr attrMax = nSOPAExtension.getAttributeNode("max");
+
+ if (null != attrVal && null == attrMin && null == attrMax) {
+ // good case
+ report.hashCode();
+ } else if (null == attrVal && (null != attrMin || null != attrMax)) {
+ if (null != attrMin && null != attrMax && !checkTrackingLevelSeverityBoundaries(attrMin.getNodeValue(), attrMax.getNodeValue())) {
+ report.add("[TrackingLevel] The value of attribute 'max' [" + attrMax.getNodeValue() + "] should be greater than value of 'min' [" + attrMin.getNodeValue() + "]");
+ }
+ } else {
+ report.add("[TrackingLevel] The attribute 'value' is mutually exclusive with 'min' and 'max' attributes");
+ }
+
+ } else if ("Extension".equals(name)) {
+
+ // *** checks extension assertion
+ if (!checkParentName(nSOPAExtension, ASSERTION_UNION)) {
+ report.add("Extension Assertion is allowed only in Assertion Union compositor.");
+ }
+
+ } else if ("Compression".equals(name)) {
+
+ // *** checks compression assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_UNION)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, ATTR_ASSERTION_OPTIONAL, null)) {
+ report.add("Only one Compression assertion in the scope of a Compositor can have an Optional attribute specified.");
+ }
+
+ } else {
+ report.add("Compression Assertion is allowed only in Assertion Union compositor.");
+ }
+
+ String attrMessage = nSOPAExtension.getAttribute("message");
+ String attrOptional = nSOPAExtension.getAttributeNS(URIConstants.WS_POLICY_SCHEMA_URI, "Optional");
+ if ("none".equals(attrMessage) && (!"true".equals(attrOptional) || !"none".equals(attrMessage))) {
+ report.add("wsp:Optional should be set to 'true' for [Compression] Assertion in case attribute message is 'none'.");
+ }
+
+ } else if ("Correlation".equals(name)) {
+
+ // *** checks correlation assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_UNION)) {
+
+ Set uniquePrefix = new HashSet();
+ List nlNamespace = getChildElementsByTagNameNS(nSOPAExtension, URIConstants.SOPWARE_ASSERTIONS_SCHEMA_URI, "Namespace");
+ Iterator itNamespace = nlNamespace.iterator();
+ while (itNamespace.hasNext()) {
+ String attrPrefix = ((Element) itNamespace.next()).getAttribute("prefix");
+ if (!uniquePrefix.add(attrPrefix)) {
+ report.add("The attribute 'prefix' of the Namespace sub-element of Correlation Assertion should be unique (value: " + attrPrefix + ").");
+ }
+ }
+
+ Set uniqueName = new HashSet();
+ List nlPart = getChildElementsByTagNameNS(nSOPAExtension, URIConstants.SOPWARE_ASSERTIONS_SCHEMA_URI, "Part");
+ Iterator itPart = nlPart.iterator();
+ while (itPart.hasNext()) {
+ String attrName = ((Element) itPart.next()).getAttribute("name");
+ if (!uniqueName.add(attrName)) {
+ report.add("The attribute 'name' of the Part sub-element of Correlation Assertion should be unique (value: " + attrName + ").");
+ }
+ }
+
+ } else {
+ report.add("Correlation Assertion is allowed only in Assertion Union compositor.");
+ }
+
+ } else if ("Namespace".equals(name)) {
+ report.hashCode();
+ } else if ("Part".equals(name)) {
+ report.hashCode();
+ } else if ("Header".equals(name)) {
+ report.hashCode();
+ } else if ("CustomValidation".equals(name)) {
+
+ // *** checks custom validation assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_UNION)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "request")) {
+ report.add("More than one Custom Validation Assertion for the same message type in the same compositor is not allowed.");
+ }
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "response")) {
+ report.add("More than one Custom Validation Assertion for the same message type in the same compositor is not allowed.");
+ }
+
+ } else {
+ report.add("CustomValidation Assertion is allowed only in Assertion Union compositor.");
+ }
+
+ if (checkAttributePresents(nSOPAExtension, new QName("location"))) {
+ report.add("'location' attribute for CustomValidation Assertion is allowed only in agreed policy and is forbidden in Operation Policy.");
+ }
+
+ } else if ("Priority".equals(name)) {
+
+ // *** checks proprity assertion
+ Attr attrMax = nSOPAExtension.getAttributeNode("max");
+ Attr attrMin = nSOPAExtension.getAttributeNode("min");
+ if (null == attrMin || null == attrMax) {
+ report.add("[Priority] 'min' and 'max' are mandatory attributes");
+ } else {
+ try {
+ int min = Integer.parseInt(attrMin.getNodeValue());
+ int max = Integer.parseInt(attrMax.getNodeValue());
+ if (max < min) {
+ report.add("[Priority] The value of 'min' attribute cannot be greater than 'max' attribute");
+ }
+ } catch (NumberFormatException e) {
+ report.add("[Priority] The value of 'min' attribute cannot be greater than 'max' attribute");
+ }
+ }
+
+ if (checkAttributePresents(nSOPAExtension, new QName("value"))) {
+ report.add("'value' attribute for Priority Assertion is allowed only in agreed policy and is forbidden in Operation Policy.");
+ }
+
+ } else if ("Subscription".equals(name)) {
+
+ // *** checks subscription
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("More than one Subscription Assertion in the same compositor is not allowed.");
+ }
+
+ } else if ("Encryption".equals(name)) {
+
+ // *** checks encryption assesrtion
+ if (2 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("More than two Encryption Assertion in the same compositor is not allowed.");
+ }
+
+ } else if ("Signature".equals(name)) {
+
+ // *** checks signature assertion
+ if (checkAttributePresents(nSOPAExtension, new QName("verify"))) {
+ report.add("'verify' attribute for Signature Assertion is forbidden in Operation Policy.");
+ }
+
+ if (2 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("More than two Signature Assertion in the same compositor is not allowed.");
+ }
+
+ } else if ("ConversationalBinding".equals(name)) {
+
+ // *** checks conversational binding assertion
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, null, null)) {
+ report.add("More than one ConversationalBinding Assertion in the same compositor is not allowed.");
+ }
+
+ } else if ("Authentication".equals(name)) {
+
+ // *** checks authentication assertion
+ if (checkParentName(nSOPAExtension, ASSERTION_CHOICE)) {
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("type"), "UsernameToken")) {
+ report.add("More than one Authentication Assertion of the same type in the same compositor is not allowed.");
+ }
+
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("type"), "SAMLToken")) {
+ report.add("More than one Authentication Assertion of the same type in the same compositor is not allowed.");
+ }
+
+ int numberOptional = getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, ATTR_ASSERTION_OPTIONAL, "true");
+ if (numberOptional > 0) {
+ int numberAll = getChildElementsByTagNameNS(nSOPAExtension.getParentNode(), nSOPAExtension.getNamespaceURI(), nSOPAExtension.getLocalName()).size();
+ if (numberOptional != numberAll) {
+ report.add("wsp:Optional must be the same for different types.");
+ }
+ }
+
+ } else {
+ report.add("Authentication Assertion is allowed only in Assertion Choice compositor.");
+ }
+
+ if (checkAttributePresents(nSOPAExtension, new QName("message"))) {
+ report.add("'message' attribute for Authentication Assertion is allowed only in agreed policy and is forbidden in Operation Policy.");
+ }
+
+ } else if ("Authorization".equals(name)) {
+
+ // *** checks authorization assertion
+ if (!checkParentName(nSOPAExtension, ASSERTION_CHOICE)) {
+ report.add("Authorization Assertion is allowed only in Assertion Choice compositor.");
+ }
+
+ if (checkAttributePresents(nSOPAExtension, new QName("location"))) {
+ report.add("'location' attribute for Authorization Assertion is allowed only in agreed policy and is forbidden in Operation Policy.");
+ }
+
+ } else if ("SDXValidation".equals(name)) {
+
+ // *** checks SDX validation assertion
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "request")) {
+ report.add("More than one SDXValidation Assertion for the same message type in the same compositor is not allowed.");
+ }
+ if (1 < getNumberTheSameElementsOnTheSameLevel(nSOPAExtension, new QName("message"), "response")) {
+ report.add("More than one SDXValidation Assertion for the same message type in the same compositor is not allowed.");
+ }
+
+ } else {
+
+ report.add("The [" + name + "] element is not an extension element from the Operation Policy Description namespace.");
+
+ }
+ }
+
+ report(valObj, pReporter, report);
+ }
+
+ /**
+ * Checks tracking level boundaries.
+ *
+ * @param minTrackLevel
+ * min tracking level
+ * @param maxTrackLevel
+ * max tracking level
+ *
+ * @return "true" in case boundaries values are good
+ */
+ private boolean checkTrackingLevelSeverityBoundaries(String minTrackLevel, String maxTrackLevel) {
+ // tracking level from high to low: detail - trace - operation - summary
+ // - none
+ Map severity = new HashMap(5);
+ severity.put("detail", Integer.valueOf(5));
+ severity.put("trace", Integer.valueOf(4));
+ severity.put("operation", Integer.valueOf(3));
+ severity.put("summary", Integer.valueOf(2));
+ severity.put("none", Integer.valueOf(1));
+
+ if (severity.containsKey(minTrackLevel) && severity.containsKey(maxTrackLevel)) {
+ return ((Integer) severity.get(minTrackLevel)).intValue() <= ((Integer) severity.get(maxTrackLevel)).intValue();
+ }
+ return false;
+ }
+
+ /**
+ * Gets the input document.
+ *
+ * @param valObj
+ * the val obj
+ *
+ * @return the input document
+ *
+ * @throws SOPValidationException
+ * TODO.
+ */
+ private Document getInputDocument(IValidationObject valObj) throws SOPValidationException {
+ try {
+ return valObj.getInput();
+ } catch (ContextInitializationException e) {
+ throw new SOPValidationException("Unable to load the document model", e);
+ }
+ }
+
+ /**
+ * Gets the child elements by tag name NS.
+ *
+ * @param parentElement
+ * the parent element
+ * @param childNamespace
+ * the child namespace
+ * @param childName
+ * the child name
+ *
+ * @return the child elements by tag name NS
+ */
+ private List getChildElementsByTagNameNS(Node parentElement, String childNamespace, String childName) {
+
+ List resultChildren = new ArrayList();
+
+ NodeList childNodes = parentElement.getChildNodes();
+ final int count = childNodes.getLength();
+ for (int i = 0; i < count; i++) {
+ Node childNode = childNodes.item(i);
+ if (Node.ELEMENT_NODE == childNode.getNodeType()) {
+ if (childNode.getLocalName().equals(childName)) {
+ String namespace = childNode.getNamespaceURI();
+ if ((null == childNamespace && null == namespace) || (null != childNamespace && childNamespace.equals(namespace))) {
+ resultChildren.add((Element) childNode);
+ }
+ }
+ }
+ }
+
+ return resultChildren;
+ }
+
+ /**
+ * Gets child elements by name and attribute filter. If filter attribute
+ * name == null checks only by element name. If filter attribute value ==
+ * null checks only on attribute presents.
+ *
+ * @param filterAttributeName
+ * filter attribute name
+ * @param filterAttributeValue
+ * filter attribute value
+ * @param element
+ * the element
+ *
+ * @return child list
+ */
+ private int getNumberTheSameElementsOnTheSameLevel(Node element, QName filterAttributeName, String filterAttributeValue) {
+
+ List resultChildren = getChildElementsByTagNameNS(element.getParentNode(), element.getNamespaceURI(), element.getLocalName());
+ if (null == filterAttributeName) {
+ return resultChildren.size();
+ } else {
+ int number = 0;
+ Iterator it = resultChildren.iterator();
+ while (it.hasNext()) {
+ Element child = (Element) it.next();
+
+ Attr filterAttribute = getAttribute(child, filterAttributeName);
+ if (null != filterAttribute) {
+ if (null == filterAttributeValue || filterAttribute.getNodeValue().equals(filterAttributeValue)) {
+ number++;
+ }
+ }
+ }
+ return number;
+ }
+ }
+
+ /**
+ * Check attribute presents.
+ *
+ * @param element
+ * the element
+ * @param attrName
+ * the attr name
+ *
+ * @return true, if successful
+ */
+ private boolean checkAttributePresents(Element element, QName attrName) {
+ return (null != getAttribute(element, attrName));
+ }
+
+ /**
+ * Gets the attribute.
+ *
+ * @param element
+ * the element
+ * @param attrName
+ * the attr name
+ *
+ * @return the attribute
+ */
+ private Attr getAttribute(Element element, QName attrName) {
+ if (null == attrName.getNamespaceURI() || 0 == attrName.getNamespaceURI().length()) {
+ return element.getAttributeNode(attrName.getLocalPart());
+ } else {
+ return element.getAttributeNodeNS(attrName.getNamespaceURI(), attrName.getLocalPart());
+ }
+ }
+
+ /**
+ * Check parent name.
+ *
+ * @param child
+ * the child
+ * @param parentName
+ * the parent name
+ *
+ * @return true, if successful
+ */
+ private boolean checkParentName(Node child, QName parentName) {
+ if (null == parentName) {
+ throw new IllegalArgumentException("nullable parent name for check");
+ }
+ Node parent = child.getParentNode();
+ return parentName.equals(new QName(parent.getNamespaceURI(), parent.getLocalName()));
+ }
+
+ /**
+ * Report.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ * @param errorMessage
+ * the error message
+ */
+ private void report(IValidationObject valObj, IReporter pReporter, String errorMessage) {
+ if (null != pReporter && null != errorMessage) {
+ ValidationMessage msg = new ValidationMessage(MSG_BUNDLE_NAME, IMessage.ERROR_SEVERITY, MessageTypeEnum.SOP_PARTICULARITY_CONSTRAINT, new String[] { errorMessage });
+ msg.setAttribute(IMessage.SOURCE_ATTRIB, valObj.getID().getQName());
+ LOG.error(msg.getMessageText());
+ pReporter.addMessage((IMessage) msg);
+ }
+ }
+
+ /**
+ * Report.
+ *
+ * @param valObj
+ * the val obj
+ * @param pReporter
+ * the reporter
+ * @param strErrorMessages
+ * the str error messages
+ */
+ private void report(IValidationObject valObj, IReporter pReporter, List strErrorMessages) {
+ final int count = strErrorMessages.size();
+ for (int i = 0; i < count; i++) {
+ report(valObj, pReporter, (String) strErrorMessages.get(i));
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/SopwareParticularityValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/URIConstants.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/URIConstants.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/URIConstants.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,66 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+/**
+ * The Class URIConstants.
+ */
+public class URIConstants {
+
+ /** The Constant WSDL11_SCHEMA_URI. */
+ public final static String WSDL11_SCHEMA_URI = "http://schemas.xmlsoap.org/wsdl/";
+
+ /** The Constant SOPWARE_SDX20_SCHEMA_URI. */
+ public final static String SOPWARE_SDX20_SCHEMA_URI = "http://types.sopware.org/service/ServiceDescription/2.0";
+
+ /** The Constant SOPWARE_DOC_SCHEMA_URI. */
+ public final static String SOPWARE_DOC_SCHEMA_URI = "http://types.sopware.org/service/Documentation/1.0";
+
+ /** The Constant SOPWARE_SPDX20_SCHEMA_URI. */
+ public final static String SOPWARE_SPDX20_SCHEMA_URI = "http://types.sopware.org/service/ServiceProviderDescription/1.0";
+
+ /** The Constant WS_POLICY_SCHEMA_URI. */
+ public final static String WS_POLICY_SCHEMA_URI = "http://www.w3.org/2006/07/ws-policy";
+
+ /** The Constant WSS_WSSECURITY_SCHEMA_URI. */
+ public final static String WSS_WSSECURITY_SCHEMA_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
+
+ /** The Constant WSS_WSSECURITY_EXT_SCHEMA_URI. */
+ public final static String WSS_WSSECURITY_EXT_SCHEMA_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
+
+ /** The Constant SOPWARE_ASSERTIONS_SCHEMA_URI. */
+ public final static String SOPWARE_ASSERTIONS_SCHEMA_URI = "http://types.sopware.org/qos/SOPAssertions/1.1";
+
+ /** The Constant SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI. */
+ public final static String SOPWARE_PARTICIPANT_POLICY_SCHEMA_URI = "http://types.sopware.org/qos/ParticipantPolicy/1.1";
+
+ /** The Constant XML_SCHEMA_DTD_PUBLIC_ID. */
+ public final static String XML_SCHEMA_DTD_PUBLIC_ID = "-//W3C//DTD XMLSCHEMA 200102//EN";
+
+ /** The Constant XML_SCHEMA_DATATYPES_DTD_PUBLIC_ID. */
+ public final static String XML_SCHEMA_DATATYPES_DTD_PUBLIC_ID = "datatypes";
+
+ /** The Constant PARTNER_LINK_URI. */
+ public final static String PARTNER_LINK_URI = "http://schemas.xmlsoap.org/ws/2003/05/partner-link/";
+
+ /** The Constant SOAP_TRANSPORT_URI. */
+ public final static String SOAP_TRANSPORT_URI = "http://schemas.xmlsoap.org/wsdl/soap/";
+
+ /** The Constant JMS_TRANSPORT_URI. */
+ public final static String JMS_TRANSPORT_URI = "http://schemas.xmlsoap.org/wsdl/jms/";
+
+ /** The Constant XSD_SCHEMA_2001_URI. */
+ public final static String XSD_SCHEMA_2001_URI = "http://www.w3.org/2001/XMLSchema";
+
+ /** The Constant EMPTY_SCHEMA_URI. */
+ public final static String EMPTY_SCHEMA_URI = "EMPTY_SCHEMA";
+
+ /** The Constant '*'. */
+ public final static String ANY_URI = "*";
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/URIConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/XPathHelper.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/XPathHelper.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/XPathHelper.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,120 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.core.impl.service;
+
+import javax.xml.transform.TransformerException;
+import javax.xml.xpath.XPath;
+import javax.xml.xpath.XPathConstants;
+import javax.xml.xpath.XPathExpression;
+import javax.xml.xpath.XPathExpressionException;
+import javax.xml.xpath.XPathFactory;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * The helper class for executing XPath expressions on a DOM document.
+ *
+ * @author Andrew Kalach
+ */
+public class XPathHelper {
+
+ /** The Constant LOG. */
+ private static final Logger LOG = Logger.getLogger(XPathHelper.class);
+
+ /** The Constant _resolver. */
+ private static final InlineSchemaPrefixResolver RESOLVER = new InlineSchemaPrefixResolver();
+
+ private static final XPathFactory xPathFactory = XPathFactory.newInstance();
+
+ /**
+ * Gets the x path result list.
+ *
+ * @param context the context
+ * @param xpath the xpath
+ *
+ * @return the x path result list
+ */
+ public static NodeList getXPathResultList(Node context, String xpath) {
+ NodeList nodeList = null;
+
+ try {
+ XPathExpression xPathExpression = getXPathExpression(context, xpath);
+ Object obj = xPathExpression.evaluate(context, XPathConstants.NODESET);
+ if(obj instanceof NodeList) {
+ nodeList = (NodeList)obj;
+ } else {
+ LOG.error("The XPath Expression evaluation has returned an unexpected result: [" + obj.getClass() + "]");
+ }
+ } catch (XPathExpressionException e) {
+ LOG.error("Exception while preparing and executing XPath", e);
+ } catch (TransformerException e) {
+ LOG.error("Exception while preparing and executing XPath", e);
+ }
+
+ return nodeList;
+ }
+
+
+ /**
+ * Gets the x path result node.
+ *
+ * @param context the context
+ * @param xpath the xpath
+ *
+ * @return the x path result node
+ */
+ public static Node getXPathResultNode(Node context, String xpath) {
+ Node node = null;
+
+ try
+ {
+ XPathExpression xPathExpression = getXPathExpression(context, xpath);
+ Object obj = xPathExpression.evaluate(context, XPathConstants.NODE);
+ if(obj instanceof Node) {
+ node = (Node)obj;
+ } else if (obj != null) {
+ LOG.error("The XPath Expression evaluation has returned an unexpected result: [" + obj.getClass() + "]");
+ }
+ } catch (XPathExpressionException e) {
+ LOG.error("Exception while preparing and executing XPath", e);
+ } catch (TransformerException e) {
+ LOG.error("Exception while preparing and executing XPath", e);
+ }
+
+ return node;
+ }
+
+ /**
+ *
+ * @param nodeContext
+ * @param xPath
+ * @return
+ * @throws TransformerException
+ */
+ private static XPathExpression getXPathExpression(Node nodeContext, String xPath) throws TransformerException {
+ XPathExpression xPathExpression = null;
+
+ if(xPathExpression == null) {
+ XPath xPathObj = xPathFactory.newXPath();
+ xPathObj.setNamespaceContext(RESOLVER);
+
+ try {
+ xPathExpression = xPathObj.compile(xPath);
+ } catch (XPathExpressionException e) {
+ LOG.error(e.getMessage(), e);
+ throw new TransformerException(e);
+ }
+ }
+
+ return xPathExpression;
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/core/impl/service/XPathHelper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ConfigurationException.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ConfigurationException.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ConfigurationException.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.exception;
+
+/**
+ * The Class ConfigurationException.
+ */
+public class ConfigurationException extends Exception {
+
+ /** The Constant serialVersionUID. */
+ private final static long serialVersionUID = 1L;
+
+ /**
+ * Instantiates a new configuration exception.
+ *
+ * @param msg the msg
+ */
+ public ConfigurationException(final String msg) {
+ super(msg);
+ }
+
+ /**
+ * Instantiates a new configuration exception.
+ *
+ * @param msg the msg
+ * @param cause the cause
+ */
+ public ConfigurationException(final String msg, final Exception cause) {
+ super(msg, cause);
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ConfigurationException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ContextInitializationException.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ContextInitializationException.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ContextInitializationException.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.exception;
+
+/**
+ * The Class ContextInitializationException.
+ */
+public class ContextInitializationException extends Exception {
+
+ /** The Constant serialVersionUID. */
+ private final static long serialVersionUID = 1L;
+
+ /**
+ * Instantiates a new context initialization exception.
+ *
+ * @param msg the msg
+ */
+ public ContextInitializationException(final String msg) {
+ super(msg);
+ }
+
+ /**
+ * Instantiates a new context initialization exception.
+ *
+ * @param msg the msg
+ * @param cause the cause
+ */
+ public ContextInitializationException(final String msg, final Exception cause) {
+ super(msg, cause);
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/ContextInitializationException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/SOPValidationException.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/SOPValidationException.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/SOPValidationException.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.exception;
+
+/**
+ * The Class SOPValidationException.
+ */
+public class SOPValidationException extends Exception {
+
+ /** The Constant serialVersionUID. */
+ private final static long serialVersionUID = 1L;
+
+ /**
+ * Instantiates a new SOP validation exception.
+ *
+ * @param msg the msg
+ */
+ public SOPValidationException(final String msg) {
+ super(msg);
+ }
+
+ /**
+ * Instantiates a new SOP validation exception.
+ *
+ * @param msg the msg
+ * @param cause the cause
+ */
+ public SOPValidationException(final String msg, final Exception cause) {
+ super(msg, cause);
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator/src/java/org/eclipse/stp/common/validator/exception/SOPValidationException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.classpath
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.classpath (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.classpath 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.common.validator.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/META-INF/MANIFEST.MF
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/META-INF/MANIFEST.MF (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/META-INF/MANIFEST.MF 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: STP Common Validator Test Fragment
+Bundle-SymbolicName: org.eclipse.stp.common.validator.test
+Bundle-Version: 1.0.0
+Fragment-Host: org.eclipse.stp.common.validator;bundle-version="0.0.0"
+Require-Bundle: org.junit
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/about.html
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/about.html (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/about.html 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 27, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/about.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,12 @@
+bin.includes = META-INF/,\
+ .,\
+ conf/,\
+ about.html
+
+src.includes = src/java/,\
+ META-INF/,\
+ about.html
+
+source.. = src/java/
+
+output.. = target/classes/
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRental.sdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRental.sdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRental.sdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsdl:definitions
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:pri="http://services.sopware.org/demos/CarRental/1.0"
+ xmlns:tns="http://services.sopware.org/demos/CarRental/1.0"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:doc="http://types.sopware.org/service/Documentation/1.0"
+ xmlns:sdx="http://types.sopware.org/service/ServiceDescription/2.0"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:gen="123"
+ targetNamespace="http://services.sopware.org/demos/CarRental/1.0">
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://services.sopware.org/demos/CarRental/1.0" xmlns:pri="http://services.sopware.org/demos/CarRental/1.0">
+ <xsd:element name="returnCarRequest" type="pri:returnCarRequestType"/>
+ <xsd:element name="returnCarResponse" type="pri:returnCarResponseType"/>
+ <xsd:element name="returnCarFault" type="pri:returnCarFaultType"/>
+ <xsd:element name="rentCarRequest" type="pri:rentCarRequestType"/>
+ <xsd:element name="rentCarResponse" type="pri:rentCarResponseType"/>
+ <xsd:element name="rentCarFault" type="pri:rentCarFaultType"/>
+ <xsd:element name="noticeBoardMessage" type="pri:noticeBoardMessageType"/>
+ <xsd:element name="deleteCarRequest" type="pri:deleteCarRequestType"/>
+ <xsd:element name="deleteCarResponse" type="pri:deleteCarResponseType"/>
+ <xsd:element name="deleteCarFault" type="pri:deleteCarFaultType"/>
+ <xsd:element name="addCarRequest" type="pri:addCarRequestType"/>
+ <xsd:element name="addCarResponse" type="pri:addCarResponseType"/>
+ <xsd:element name="addCarFault" type="pri:addCarFaultType"/>
+ <xsd:element name="listAllCarsRequest" type="pri:listAllCarsRequestType"/>
+ <xsd:element name="listAllCarsResponse" type="pri:listAllCarsResponseType"/>
+ <xsd:element name="listAllCarsFault" type="pri:listAllCarsFaultType"/>
+ <xsd:element name="getCarInfoRequest" type="pri:getCarInfoRequestType"/>
+ <xsd:element name="getCarInfoResponse" type="pri:getCarInfoResponseType"/>
+ <xsd:element name="getCarInfoFault" type="pri:getCarInfoFaultType"/>
+ <xsd:complexType name="returnCarRequestType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ <xsd:element type="xsd:string" name="operator"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="returnCarResponseType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="returnCarFaultType">
+ <xsd:sequence>
+ <xsd:element name="carId" type="xsd:string"/>
+ <xsd:element name="errorMessage" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="rentCarRequestType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ <xsd:element type="xsd:string" name="operator"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="rentCarResponseType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="rentCarFaultType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="errorMessage"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="noticeBoardMessageType">
+ <xsd:sequence>
+ <xsd:element name="carId" type="xsd:string"/>
+ <xsd:element name="message" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="deleteCarRequestType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="deleteCarResponseType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="deleteCarFaultType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="errorMessage"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="addCarRequestType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="image"/>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="addCarResponseType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="carId"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="addCarFaultType">
+ <xsd:sequence>
+ <xsd:element type="xsd:string" name="errorMessage"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="listAllCarsRequestType">
+ <xsd:sequence>
+ <xsd:element name="operator" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="listAllCarsResponseType">
+ <xsd:sequence>
+ <xsd:element name="listOfCars" type="pri:carList"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="listAllCarsFaultType">
+ <xsd:sequence>
+ <xsd:element name="errorMessage" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="getCarInfoRequestType">
+ <xsd:sequence>
+ <xsd:element name="carId" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="getCarInfoResponseType">
+ <xsd:sequence>
+ <xsd:element name="carInfo" type="pri:carInfo"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="getCarInfoFaultType">
+ <xsd:sequence>
+ <xsd:element name="errorMessage" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="carList">
+ <xsd:sequence>
+ <xsd:element name="carObject" type="pri:car"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="car">
+ <xsd:sequence>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="carId" type="xsd:string"/>
+ <xsd:element minOccurs="0" name="carStatus" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="carInfo">
+ <xsd:sequence>
+ <xsd:element name="carId" type="xsd:string"/>
+ <xsd:element minOccurs="0" name="rentedBy" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <message name="noticeBoardMessageResponse">
+ <part name="body" element="pri:noticeBoardMessage"/>
+ </message>
+ <message name="returnCarRequest">
+ <part name="returnCarRequest" element="pri:returnCarRequest"/>
+ </message>
+ <message name="returnCarResponse">
+ <part name="returnCarResponse" element="pri:returnCarResponse"/>
+ </message>
+ <message name="returnCarFault">
+ <part name="returnCarFault" element="pri:returnCarFault"/>
+ </message>
+ <message name="deleteCarRequest">
+ <part name="deleteCarRequest" element="pri:deleteCarRequest"/>
+ </message>
+ <message name="deleteCarResponse">
+ <part name="deleteCarResponse" element="pri:deleteCarResponse"/>
+ </message>
+ <message name="deleteCarFault">
+ <part name="deleteCarFault" element="pri:deleteCarFault"/>
+ </message>
+ <message name="addCarRequest">
+ <part name="addCarRequest" element="pri:addCarRequest"/>
+ </message>
+ <message name="addCarResponse">
+ <part name="addCarResponse" element="pri:addCarResponse"/>
+ </message>
+ <message name="addCarFault">
+ <part name="addCarFault" element="pri:addCarFault"/>
+ </message>
+ <message name="listAllCarsRequest">
+ <part name="listAllCarsRequest" element="pri:listAllCarsRequest"/>
+ </message>
+ <message name="listAllCarsResponse">
+ <part name="listAllCarsResponse" element="pri:listAllCarsResponse"/>
+ </message>
+ <message name="listAllCarsFault">
+ <part name="listAllCarsFault" element="pri:listAllCarsFault"/>
+ </message>
+ <message name="getCarInfoRequest">
+ <part name="getCarInfoRequest" element="pri:getCarInfoRequest"/>
+ </message>
+ <message name="getCarInfoResponse">
+ <part name="getCarInfoResponse" element="pri:getCarInfoResponse"/>
+ </message>
+ <message name="getCarInfoFault">
+ <part name="getCarInfoFault" element="pri:getCarInfoFault"/>
+ </message>
+ <message name="rentCarRequest">
+ <!--part name="rentCarRequest" element="pri:rentCarRequest"/-->
+ <part name="response" type="pri:getCarInfoFaultType"/>
+ </message>
+ <message name="rentCarResponse">
+ <!--part name="response" element="pri:rentCarResponse"/-->
+ <part name="response" type="pri:getCarInfoFaultType"/>
+
+ </message>
+ <message name="rentCarFault">
+ <part name="fault" element="pri:rentCarFault"/>
+ </message>
+ <portType name="CarRental" sdx:status="design">
+ <documentation>
+ <doc:shortDescription>This service demonstrates how provider and consumer can interact. A rudimentary "car rental" business is simulated.

+On the provider side, there are initially N (depending on configuration) cars with unique IDs.

+Each operator can list all available cars and view detailed info for any car (including car image) 

+The operator is able to register in the database that a car is rented or returned 

+If the operator tries to rent already rented car, or tries to returned car rented by another operator it will become error

+The Notice Board on customer will be subscribed on all notifications issued by provider 

+The provider will dispatch all events (car rent or returned info) to the Notice Board 

+ </doc:shortDescription>
+ <doc:purpose>This is a very simple service designed to demonstrate the workings of services to non-engineers. 

+The business functionality is extremely simplified.
+ </doc:purpose>
+ </documentation>
+ <operation name="rentCar">
+ <input name="rentCarRequest" message="tns:rentCarRequest"/>
+ <output name="rentCarResponse" message="tns:rentCarResponse"/>
+ <fault name="rentCarFault" message="tns:rentCarFault"/>
+ </operation>
+ <operation name="returnCar">
+ <input name="returnCarRequest" message="tns:returnCarRequest"/>
+ <output name="returnCarResponse" message="tns:returnCarResponse"/>
+ <fault name="returnCarFault" message="tns:returnCarFault"/>
+ </operation>
+ <operation name="noticeBoardMessage">
+ <output name="noticeBoardMessageResponse" message="tns:noticeBoardMessageResponse"/>
+ </operation>
+ <operation name="addCar">
+ <input name="addCarRequest" message="tns:addCarRequest"/>
+ <output name="addCarResponse" message="tns:addCarResponse"/>
+ <fault name="addCarFault" message="tns:addCarFault"/>
+ </operation>
+ <operation name="deleteCar">
+ <input name="deleteCarRequest" message="tns:deleteCarRequest"/>
+ <output name="deleteCarResponse" message="tns:deleteCarResponse"/>
+ <fault name="deleteCarFault" message="tns:deleteCarFault"/>
+ </operation>
+ <operation name="listAllCars">
+ <input name="listAllCarsRequest" message="tns:listAllCarsRequest"/>
+ <output name="listAllCarsResponse" message="tns:listAllCarsResponse"/>
+ <fault name="listAllCarsFault" message="tns:listAllCarsFault"/>
+ </operation>
+ <operation name="getCarInfo">
+ <gen:extra-attributes projectID="{6C2FFE90-2ADE-4ACD-8B03-099A992B375D}"/>
+ <input name="getCarInfoRequest" message="tns:getCarInfoRequest"/>
+ <output name="getCarInfoResponse" message="tns:getCarInfoResponse"/>
+ <fault name="getCarInfoFault" message="tns:getCarInfoFault"/>
+ </operation>
+ </portType>
+</wsdl:definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRentalProvider.spdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRentalProvider.spdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/CarRentalProvider.spdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://services.sopware.org/demos/CarRentalProvider/1.0"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:port_type="http://services.sopware.org/demos/CarRental/1.0"
+ targetNamespace="http://services.sopware.org/demos/CarRentalProvider/1.0">
+ <import namespace="http://services.sopware.org/demos/CarRental/1.0" location="./e.sdx"/>
+
+<!-- location="./carrental.sdx" -->
+
+ <binding name="CarRental_httpSoap" type="port_type:CarRental">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="getCarInfo">
+ <soap:operation soapAction="getCarInfo"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="getCarInfoFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="listAllCars">
+ <soap:operation soapAction="listAllCars"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="listAllCarsFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="deleteCar">
+ <soap:operation soapAction="deleteCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="deleteCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addCar">
+ <soap:operation soapAction="addCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="addCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="rentCar">
+ <soap:operation soapAction="rentCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="rentCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+
+ <operation name="returnCar">
+ <soap:operation soapAction="returnCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="returnCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+ <binding name="Notification_jmsSoap" type="port_type:CarRental">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
+ <operation name="noticeBoardMessage">
+ <soap:operation soapAction="noticeBoardMessage"/>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="CarRentalProvider">
+ <port name="CarRental_WS-I" binding="tns:CarRental_httpSoap">
+ <!-- End point that provides a WS-I basig profile 1.1 conformant implementation of the service. -->
+ <soap:address location="http://127.0.0.1:8102/soap/CarRentalProvider"/>
+ </port>
+ <port name="NotificationProvider_jmsPort" binding="tns:Notification_jmsSoap">
+ <jms:address jndiProviderURL="scn://127.0.0.1:16400" initialContextFactory="fr.dyade.aaa.jndi2.client.NamingContextFactory" jndiConnectionFactoryName="CarRentalTopicConnectionFactory" jndiDestinationName="CarRentalTopic" destinationStyle="topic"/>
+ </port>
+ </service>
+</definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/Library.sdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/Library.sdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/Library.sdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,339 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:sdx="http://types.sopware.org/service/ServiceDescription/2.0"
+ xmlns:doc="http://types.sopware.org/service/Documentation/1.0"
+ xmlns:err="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0"
+ xmlns:svn="http://types.sopware.org/demos/Library/Common/1.0"
+ xmlns:dpag="http://services.sopware.org/demos/Library/1.0"
+ targetNamespace="http://services.sopware.org/demos/Library/1.0">
+
+ <documentation>
+ <doc:revisionHistory current="rev_02">
+ <doc:revision revisionNumber="0" id="rev_00" status="open">
+ Document creation
+ </doc:revision>
+ <doc:revision revisionNumber="1" id="rev_01" status="open">
+ Changed format to be SOP 2.0 compliant.
+ </doc:revision>
+ <doc:revision revisionNumber="2" id="rev_02" status="open">
+ Fixed some bugs concerning namespaces, message formats, and documentation.
+ </doc:revision>
+ </doc:revisionHistory>
+ </documentation>
+ <types>
+
+ <xsd:schema
+ xmlns="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0"
+ targetNamespace="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0"
+ elementFormDefault="unqualified">
+ <xsd:annotation>
+ <xsd:documentation>
+ <creation date="2005-03-17"/>
+ <Service Designer="TSD"/>
+ <revision history=""/>
+ <description>
+ </description>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!-- Response in case of BadRequest: -->
+ <xsd:element name="Exceptions" type="ExceptionFrame"/>
+ <xsd:complexType name="ExceptionFrame">
+ <xsd:sequence>
+ <xsd:element name="Exception" type="ExceptionType" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute name="success" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+ <!-- ExceptionType Definition -->
+ <xsd:complexType name="ExceptionType">
+ <xsd:sequence>
+ <xsd:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute name="ServiceParticipant" type="ServiceParticipantType" use="required"/>
+ <xsd:attribute name="DomainName" type="xsd:string" use="required"/>
+ <xsd:attribute name="ServiceName" type="xsd:string" use="required"/>
+ <xsd:attribute name="Version" type="xsd:string" use="required"/>
+ <xsd:attribute name="Operation" type="xsd:string" use="required"/>
+ <xsd:attribute name="ExceptionClass" type="ExceptionClassType" use="required"/>
+ <xsd:attribute name="ExceptionID" type="ExceptionIDType" use="required"/>
+ <xsd:attribute name="ExceptionText" type="ExceptionTextType" use="required"/>
+ <xsd:attribute name="CAT_Severity" type="CAT_ITOLogLevel" use="required"/>
+ <xsd:attribute name="hasBeenLogged" type="xsd:boolean" use="required"/>
+ <xsd:attribute name="LogTargetList" type="xsd:string" use="optional"/>
+ <!-- A comma seperated list of protocol locations, i.e.: 'ITO, file://c:/myapplication/application.log' -->
+ </xsd:complexType>
+ <xsd:simpleType name="ExceptionClassType">
+ <xsd:restriction base="xsd:string">
+ <xsd:pattern value="[A-Z]{1}[a-zA-Z0-9_]*Exception"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ExceptionIDType">
+ <xsd:restriction base="xsd:decimal">
+ <xsd:totalDigits value="5" fixed="true"/>
+ <xsd:minInclusive value="10000"/>
+ <xsd:maxInclusive value="99999"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ExceptionTextType">
+ <xsd:restriction base="xsd:string">
+ <xsd:maxLength value="256" fixed="false"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ServiceParticipantType">
+ <xsd:restriction base="xsd:string">
+ <xsd:length value="9"/>
+ <xsd:pattern value="[0-9]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CAT_ITOLogLevel">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="NORM"/>
+ <xsd:enumeration value="WARN"/>
+ <xsd:enumeration value="MINO"/>
+ <xsd:enumeration value="MAJO"/>
+ <xsd:enumeration value="CRIT"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="ParameterType">
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="value" type="xsd:string" use="required"/>
+ <xsd:attribute name="comment" type="xsd:string" use="optional"/>
+ <!-- Name of parameter -->
+ <!-- Value of parameter -->
+ <!-- Comment of parameter (optional) -->
+ </xsd:complexType>
+ </xsd:schema>
+
+ <xsd:schema
+ xmlns="http://types.sopware.org/demos/Library/Common/1.0"
+ targetNamespace="http://types.sopware.org/demos/Library/Common/1.0"
+ elementFormDefault="unqualified">
+ <xsd:annotation>
+ <xsd:documentation>
+ <service name="Library"/>
+ <creation date="2005-03-17"/>
+ <Service Designer="TSD"/>
+ <revision history=""/>
+ <description>
+ <!--Definition of common business objects of testdomain Library. It is used by test operations of the SBB DevBox; 2003-06-30-->
+ </description>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!--operation related complex types: -->
+ <xsd:element name="ListOfBooks">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="Book" type="BookType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="SearchFor">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="Publisher" type="LongNameType" minOccurs="0"/>
+ <xsd:element name="AuthorLastName" type="NameType" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="ISBNNumber" type="ISBNType" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="createLending">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="ISBNNumber" type="ISBNType"/>
+ <xsd:element name="DateOfBirth" type="DateType"/>
+ <xsd:element name="ZIP" type="ZIPType"/>
+ <xsd:element name="Borrowed" type="DateType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <!--complex types of business objects: -->
+ <xsd:complexType name="StreetAddressType">
+ <xsd:sequence>
+ <xsd:element name="Street" type="StreetType" minOccurs="0"/>
+ <xsd:element name="HouseNumber" type="HouseNumberType" minOccurs="0"/>
+ <xsd:element name="ZIP" type="ZIPType"/>
+ <xsd:element name="City" type="CityType" minOccurs="0"/>
+ <xsd:element name="CountryID" type="IDType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="PersonType">
+ <xsd:sequence>
+ <xsd:element name="PersonID" type="IDType"/>
+ <xsd:element name="LastName" type="NameType"/>
+ <xsd:element name="FirstName" type="NameType"/>
+ <xsd:element name="TitleID" type="IDType" minOccurs="0"/>
+ <xsd:element name="SalutationID" type="IDType" minOccurs="0"/>
+ <xsd:element name="DateOfBirth" type="DateType"/>
+ <xsd:element name="EMail" type="MailToType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="BookType">
+ <xsd:sequence>
+ <xsd:element name="Title" type="LongNameType" maxOccurs="3"/>
+ <xsd:element name="Author" type="PersonType" maxOccurs="unbounded"/>
+ <xsd:element name="ISBN" type="ISBNType"/>
+ <xsd:element name="Publisher" type="LongNameType" maxOccurs="unbounded"/>
+ <xsd:element name="Year_published">
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:string">
+ <xsd:length value="4"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:element>
+ <!-- for simplification only lastname of author-->
+ </xsd:sequence>
+ </xsd:complexType>
+ <!--simple types of business objects: -->
+ <xsd:simpleType name="ZIPType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for ZIP codes</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="10"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CityType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for cities</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="StreetType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for streets</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="HouseNumberType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for house numbers</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="10"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="NameType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for names (firstname, lastname, ...)</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:whiteSpace value="collapse"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="LongNameType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for long names (titles, publisher, ...)</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:whiteSpace value="collapse"/>
+ <xsd:maxLength value="200"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="MailToType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for email-accounts</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="200"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="IDType">
+ <xsd:restriction base="xsd:string">
+ <xsd:maxLength value="11"/>
+ <xsd:pattern value="[0-9]{1}[0-9]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="DateType">
+ <xsd:restriction base="xsd:date"/>
+ </xsd:simpleType>
+ <xsd:simpleType name="ISBNType">
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="15"/>
+ <xsd:pattern value="[0-9\-]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:element name="newBooks">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="ListDate" type="svn:DateType" />
+ <xsd:element maxOccurs="unbounded" name="Book" type="svn:BookType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </types>
+ <message name="seekBookRequest">
+ <part name="body" element="svn:SearchFor"/>
+ </message>
+ <message name="seekBookResponse">
+ <part name="body" element="svn:ListOfBooks"/>
+ </message>
+ <message name="newBooksNotification">
+ <part name="ListOfBooks" element="svn:newBooks"/>
+ </message>
+ <message name="createLendingRequest">
+ <part name="Lending" element="svn:createLending"/>
+ </message>
+ <message name="seekBookError">
+ <part name="Exception" element="err:Exceptions"/>
+ </message>
+ <portType name="Library" sdx:status="design">
+ <operation name="seekBook">
+ <input message="dpag:seekBookRequest"/>
+ <output message="dpag:seekBookResponse"/>
+ <fault name="error" message="dpag:seekBookError"/>
+ </operation>
+ <operation name="newBooks">
+ <output message="dpag:newBooksNotification"/>
+ </operation>
+ <operation name="createLending">
+ <input message="dpag:createLendingRequest"/>
+ </operation>
+ <operation name="seekBookInBasement">
+ <input message="dpag:seekBookRequest"/>
+ </operation>
+ </portType>
+
+ <portType name="LibraryConsumer" sdx:status="design">
+ <operation name="seekBookInBasementResponse" sdx:partnerOperation="seekBookInBasement">
+ <input message="dpag:seekBookResponse"/>
+ </operation>
+ <operation name="seekBookInBasementFault" sdx:partnerOperation="seekBookInBasement" sdx:faultOperation="true">
+ <input message="dpag:seekBookError"/>
+ </operation>
+ </portType>
+
+ <plnk:partnerLinkType name="CallbackPartnerLink" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
+ <plnk:role name="service">
+ <plnk:portType name="dpag:Library" />
+ </plnk:role>
+ <plnk:role name="callback">
+ <plnk:portType name="dpag:LibraryConsumer" />
+ </plnk:role>
+ </plnk:partnerLinkType>
+
+</definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version="">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"/>
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.spdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.spdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider.spdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions name="LibraryProvider.spdx"
+ xmlns:tns="http://services.sopware.org/demos/LibraryProvider/1.0"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:port_type="http://services.sopware.org/demos/Library/1.0"
+ xmlns:spdx="http://types.sopware.org/service/ServiceProviderDescription/1.0"
+ targetNamespace="http://services.sopware.org/demos/LibraryProvider/1.0">
+
+ <import namespace="http://services.sopware.org/demos/Library/1.0" location="./Library.sdx"/>
+
+ <binding name="Library_httpSoap" type="port_type:Library">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="seekBook">
+ <soap:operation soapAction="seekBook"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="error">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="createLending">
+ <soap:operation soapAction="createLending"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="seekBookInBasement">
+ <soap:operation soapAction="seekBookInBasement"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ </binding>
+
+ <!-- binding name="Library_jmsSoap" type="port_type:Library">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
+ <operation name="seekBook">
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="error">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="seekBookInBasement">
+ <soap:operation soapAction="seekBookInBasement"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="createLending">
+ <soap:operation soapAction="createLending"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ </binding -->
+
+ <binding name="LibraryNotification_jmsSoap" type="port_type:Library">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
+ <operation name="newBooks">
+ <soap:operation soapAction="newBooks"/>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="LibraryProvider">
+ <port name="Library_WS-I" binding="tns:Library_httpSoap">
+ <soap:address location="http://127.0.0.1:8888/soap/LibraryProvider"/>
+ <!-- spdx:locator>
+ <spdx:location>Bonn</spdx:location>
+ <spdx:location>Scottsdale</spdx:location>
+ </spdx:locator -->
+ </port>
+ <!-- port name="LibraryProvider_jmsPort" binding="tns:Library_jmsSoap">
+ <jms:address jndiProviderURL="mom://org.sopware.mom.adapter.MQMOMAdapter?queueManager=queueManagerName&host=localhost&port=1234"
+ initialContextFactory="org.sopware.naming.SOPInitialContextFactory"
+ jndiDestinationName="acceptQueue"
+ destinationStyle="queue"/>
+ </port -->
+ <port name="LibraryNotificationProvider_jmsPort" binding="tns:LibraryNotification_jmsSoap">
+ <jms:address jndiProviderURL="scn://127.0.0.1:16400"
+ initialContextFactory="fr.dyade.aaa.jndi2.client.NamingContextFactory"
+ jndiConnectionFactoryName="JBITopicConnectionFactory"
+ jndiDestinationName="LibraryNewBooksTopic" destinationStyle="topic"/>
+ </port>
+ </service>
+</definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail1.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail1.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail1.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail2.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail2.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail2.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail3.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail3.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail3.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./LibraryWrongRef.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail4.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail4.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail4.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/2.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail5.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail5.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail5.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail6.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail6.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail6.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail7.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail7.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderFail7.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="XXX"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal1.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal1.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal1.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal2.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal2.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProviderNormal2.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version=""
+ serviceLocation="./Library.sdx">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ If a JMS transport is not available in your installation mark the operation as unused and
+ make sure the operation in the consumer policy is also marked as unused.
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ location="LibraryProvider_1.opdx"
+ />
+ </Operation>
+ <DefaultOperation>
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ location="LibraryProvider_0.opdx"
+ />
+ </DefaultOperation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="http authorized"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_1.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_1.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/consistency/LibraryProvider_1.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="JMS only"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental.sdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental.sdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental.sdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions
+ targetNamespace="http://services.sopware.org/demos/CarRental/CarRentalURI"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:pri="http://services.sopware.org/demos/CarRental/types"
+ xmlns:sdx="http://types.sopware.org/service/ServiceDescription/2.0"
+ xmlns:tns="http://services.sopware.org/demos/CarRental/CarRentalURI"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <types>
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://services.sopware.org/demos/CarRental/CarRentalURI">
+
+ <xsd:import namespace="http://services.sopware.org/demos/CarRental/types" />
+
+ <!-- root elements of messages -->
+
+ <xsd:element name="RentCarRequest" type="pri:singleCarRentType"/>
+ <xsd:element name="RentCarResponse" type="pri:singleCarType"/>
+ <xsd:element name="RentCarFault" type="pri:FaultType"/>
+ <xsd:element name="ReturnCarRequest" type="pri:singleCarRentType"/>
+ <xsd:element name="ReturnCarResponse" type="pri:singleCarType"/>
+ <xsd:element name="ReturnCarFault" type="pri:FaultType"/>
+ <xsd:element name="RentalChangeNotification" type="pri:changeType" />
+
+ </xsd:schema>
+ <xsd:schema targetNamespace="http://services.sopware.org/demos/CarRental/types">
+ <!-- common elements -->
+
+ <xsd:element name="carId" type="pri:carIdType" />
+ <xsd:element name="rentedBy" type="pri:StringType" />
+
+ <!-- common types -->
+
+ <xsd:complexType name="singleCarType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="singleCarRentType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId"/>
+ <xsd:element ref="pri:rentedBy"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="singleCarInfoType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId"/>
+ <xsd:element ref="pri:rentedBy" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="changeType">
+ <xsd:complexContent>
+ <xsd:extension base="pri:singleCarInfoType">
+ <xsd:attribute name="action" type="pri:changeActionType"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="listCarInfoType">
+ <xsd:sequence>
+ <xsd:element name="entry" minOccurs="0"
+ maxOccurs="unbounded" type="pri:singleCarInfoType">
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="faultType">
+ <xsd:sequence>
+ <xsd:element name="code" type="xsd:string"/>
+ <xsd:element name="message" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="emptyType" />
+
+ <!-- simple types -->
+
+ <xsd:simpleType name="carIdType" >
+ <xsd:restriction base="pri:StringType"/>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="StringType">
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="26"/>
+ <xsd:pattern value="\w+[A-Z]+[a-z]+"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="changeActionType">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="add" />
+ <xsd:enumeration value="modify" />
+ <xsd:enumeration value="delete" />
+ <xsd:enumeration value="rent" />
+ <xsd:enumeration value="return" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ </xsd:schema>
+ </types>
+ <wsdl:message name="RentCarRequestMessage">
+ <wsdl:part name="RentCarRequest" element="tns:RentCarRequest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentCarResponseMessage">
+ <wsdl:part name="RentCarResponse" element="tns:RentCarResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentCarFaultMessage">
+ <wsdl:part name="RentCarFault" element="tns:RentCarFault">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarRequestMessage">
+ <wsdl:part name="ReturnCarRequest" element="tns:ReturnCarRequest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarResponseMessage">
+ <wsdl:part name="ReturnCarResponse" element="tns:ReturnCarResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarFaultMessage">
+ <wsdl:part name="ReturnCarFault" element="tns:ReturnCarFault">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentalChangeNotificationMessage">
+ <wsdl:part name="RentalChangeNotification" element="tns:RentalChangeNotification"/>
+ </wsdl:message>
+ <portType name="CarRental" sdx:domain="demo" sdx:status="design" sdx:version="1.0">
+ <wsdl:operation name="rentCar">
+ <wsdl:input message="tns:RentCarRequestMessage"/>
+ <wsdl:output message="tns:RentCarResponseMessage"/>
+ <wsdl:fault name="fault" message="tns:RentCarFaultMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="returnCar">
+ <wsdl:input message="tns:ReturnCarRequestMessage"/>
+ <wsdl:output message="tns:ReturnCarResponseMessage"/>
+ <wsdl:fault name="fault" message="tns:ReturnCarFaultMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="rentalChange">
+ <wsdl:output message="tns:RentalChangeNotificationMessage" />
+ </wsdl:operation>
+ </portType>
+</definitions>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental2.sdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental2.sdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRental2.sdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions
+ targetNamespace="http://services.sopware.org/demos/CarRental/CarRentalURI"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:pri="http://services.sopware.org/demos/CarRental/types"
+ xmlns:sdx="http://types.sopware.org/service/ServiceDescription/2.0"
+ xmlns:tns="http://services.sopware.org/demos/CarRental/CarRentalURI"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <types>
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://services.sopware.org/demos/CarRental/CarRentalURI">
+
+ <xsd:import namespace="http://services.sopware.org/demos/CarRental/types" />
+
+ <!-- root elements of messages -->
+
+ <xsd:element name="RentCarRequest" type="pri:singleCarRentType"/>
+ <xsd:element name="RentCarResponse" type="pri:singleCarType"/>
+ <xsd:element name="RentCarFault" type="pri:faultType"/>
+ <xsd:element name="ReturnCarRequest" type="pri:singleCarRentType"/>
+ <xsd:element name="ReturnCarResponse" type="pri:singleCarType"/>
+ <xsd:element name="ReturnCarFault" type="pri:faultType"/>
+ <xsd:element name="RentalChangeNotification" type="pri:changeType" />
+
+ </xsd:schema>
+ <xsd:schema targetNamespace="http://services.sopware.org/demos/CarRental/types">
+ <!-- common elements -->
+
+ <xsd:element name="carId" type="pri:carIdType" />
+ <xsd:element name="rentedBy" type="pri:StringType" />
+
+ <!-- common types -->
+
+ <xsd:complexType name="singleCarType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="singleCarRentType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId"/>
+ <xsd:element ref="pri:rentedBy"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="singleCarInfoType">
+ <xsd:sequence>
+ <xsd:element ref="pri:carId"/>
+ <xsd:element ref="pri:rentedBy" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="changeType">
+ <xsd:complexContent>
+ <xsd:extension base="pri:singleCarInfoType">
+ <xsd:attribute name="action" type="pri:changeActionType"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="listCarInfoType">
+ <xsd:sequence>
+ <xsd:element name="entry" minOccurs="0"
+ maxOccurs="unbounded" type="pri:singleCarInfoType">
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="faultType">
+ <xsd:sequence>
+ <xsd:element name="code" type="xsd:string"/>
+ <xsd:element name="message" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="emptyType" />
+
+ <!-- simple types -->
+
+ <xsd:simpleType name="carIdType" >
+ <xsd:restriction base="pri:StringType"/>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="StringType">
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="26"/>
+ <xsd:pattern value="\w+[A-Z]+[a-z]+"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="changeActionType">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="add" />
+ <xsd:enumeration value="modify" />
+ <xsd:enumeration value="delete" />
+ <xsd:enumeration value="rent" />
+ <xsd:enumeration value="return" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ </xsd:schema>
+ </types>
+ <wsdl:message name="RentCarRequestMessage">
+ <wsdl:part name="RentCarRequest" element="tns:RentCarRequest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentCarResponseMessage">
+ <wsdl:part name="RentCarResponse" element="tns:RentCarResponseA">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentCarFaultMessage">
+ <wsdl:part name="RentCarFault" element="tns:RentCarFault">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarRequestMessage">
+ <wsdl:part name="ReturnCarRequest" element="tns:ReturnCarRequest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarResponseMessage">
+ <wsdl:part name="ReturnCarResponse" element="tns:ReturnCarResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="ReturnCarFaultMessage">
+ <wsdl:part name="ReturnCarFault" element="tns:ReturnCarFault">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="RentalChangeNotificationMessage">
+ <wsdl:part name="RentalChangeNotification" element="tns:RentalChangeNotification"/>
+ </wsdl:message>
+ <portType name="CarRental" sdx:domain="demo" sdx:status="design" sdx:version="1.0">
+ <wsdl:operation name="rentCar">
+ <wsdl:input message="tns:RentCarRequestMessage"/>
+ <wsdl:output message="tns:RentCarResponseMessage"/>
+ <wsdl:fault name="fault" message="tns:RentCarFaultMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="returnCar">
+ <wsdl:input message="tns:ReturnCarRequestMessage"/>
+ <wsdl:output message="tns:ReturnCarResponseMessage"/>
+ <wsdl:fault name="fault" message="tns:ReturnCarFaultMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="rentalChange">
+ <wsdl:output message="tns:RentalChangeNotificationMessage" />
+ </wsdl:operation>
+ </portType>
+</definitions>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRentalProvider.spdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRentalProvider.spdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/CarRentalProvider.spdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://services.sopware.org/demos/CarRentalProvider/1.0"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:port_type="http://services.sopware.org/demos/CarRental/1.0"
+ targetNamespace="http://services.sopware.org/demos/CarRentalProvider/1.0">
+ <import namespace="http://services.sopware.org/demos/CarRental/1.0" location="./carrental.sdx"/>
+ <binding name="CarRental_httpSoap" type="port_type:CarRental">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="getCarInfo">
+ <soap:operation soapAction="getCarInfo"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="getCarInfoFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="listAllCars">
+ <soap:operation soapAction="listAllCars"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="listAllCarsFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="deleteCar">
+ <soap:operation soapAction="deleteCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="deleteCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addCar">
+ <soap:operation soapAction="addCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="addCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="rentCar">
+ <soap:operation soapAction="rentCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="rentCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+
+ <operation name="returnCar2">
+ <soap:operation soapAction="returnCar"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="returnCarFault">
+ <soap:fault name="error" use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+ <binding name="Notification_jmsSoap" type="port_type:CarRental2">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
+ <operation name="noticeBoardMessage">
+ <soap:operation soapAction="noticeBoardMessage"/>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="CarRentalProvider">
+ <port name="CarRental_WS-I" binding="tns:CarRental_httpSoap">
+ <!-- End point that provides a WS-I basig profile 1.1 conformant implementation of the service. -->
+ <soap:address location="http://127.0.0.1:8102/soap/CarRentalProvider"/>
+ </port>
+ <port name="NotificationProvider_jmsPort" binding="tns:Notification_jmsSoap2">
+ <jms:address jndiProviderURL="scn://127.0.0.1:16400" initialContextFactory="fr.dyade.aaa.jndi2.client.NamingContextFactory" jndiConnectionFactoryName="CarRentalTopicConnectionFactory" jndiDestinationName="CarRentalTopic" destinationStyle="topic"/>
+ </port>
+ </service>
+</definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/Library.sdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/Library.sdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/genericwsdl/Library.sdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,319 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sdx="http://types.sopware.org/service/ServiceDescription/2.0" xmlns:doc="http://types.sopware.org/service/Documentation/1.0" xmlns:err="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0" xmlns:svn="http://types.sopware.org/demos/Library/Common/1.0" xmlns:dpag="http://services.sopware.org/demos/Library/1.0" targetNamespace="http://services.sopware.org/demos/Library/1.0">
+ <documentation>
+ <doc:revisionHistory current="rev_02">
+ <doc:revision revisionNumber="0" id="rev_00" status="open">
+ Document creation
+ </doc:revision>
+ <doc:revision revisionNumber="1" id="rev_01" status="open">
+ Changed format to be SOP 2.0 compliant.
+ </doc:revision>
+ <doc:revision revisionNumber="2" id="rev_02" status="open">
+ Fixed some bugs concerning namespaces, message formats, and documentation.
+ </doc:revision>
+ </doc:revisionHistory>
+ </documentation>
+ <types>
+ <xsd:schema xmlns="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0" targetNamespace="http://types.sopware.org/demos/GeneralObjects/ErrorHandling/1.0" elementFormDefault="unqualified">
+ <xsd:annotation>
+ <xsd:documentation>
+ <creation date="2005-03-17"/>
+ <Service Designer="TSD"/>
+ <revision history=""/>
+ <description>
+ </description>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!-- Response in case of BadRequest: -->
+ <xsd:element name="Exceptions" type="ExceptionFrame"/>
+ <xsd:complexType name="ExceptionFrame">
+ <xsd:sequence>
+ <xsd:element name="Exception" type="ExceptionType" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute name="success" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+ <!-- ExceptionType Definition -->
+ <xsd:complexType name="ExceptionType">
+ <xsd:sequence>
+ <xsd:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute name="ServiceParticipant" type="ServiceParticipantType" use="required"/>
+ <xsd:attribute name="DomainName" type="xsd:string" use="required"/>
+ <xsd:attribute name="ServiceName" type="xsd:string" use="required"/>
+ <xsd:attribute name="Version" type="xsd:string" use="required"/>
+ <xsd:attribute name="Operation" type="xsd:string" use="required"/>
+ <xsd:attribute name="ExceptionClass" type="ExceptionClassType" use="required"/>
+ <xsd:attribute name="ExceptionID" type="ExceptionIDType" use="required"/>
+ <xsd:attribute name="ExceptionText" type="ExceptionTextType" use="required"/>
+ <xsd:attribute name="CAT_Severity" type="CAT_ITOLogLevel" use="required"/>
+ <xsd:attribute name="hasBeenLogged" type="xsd:boolean" use="required"/>
+ <xsd:attribute name="LogTargetList" type="xsd:string" use="optional"/>
+ <!-- A comma seperated list of protocol locations, i.e.: 'ITO, file://c:/myapplication/application.log' -->
+ </xsd:complexType>
+ <xsd:simpleType name="ExceptionClassType">
+ <xsd:restriction base="xsd:string">
+ <xsd:pattern value="[A-Z]{1}[a-zA-Z0-9_]*Exception"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ExceptionIDType">
+ <xsd:restriction base="xsd:decimal">
+ <xsd:totalDigits value="5" fixed="true"/>
+ <xsd:minInclusive value="10000"/>
+ <xsd:maxInclusive value="99999"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ExceptionTextType">
+ <xsd:restriction base="xsd:string">
+ <xsd:maxLength value="256" fixed="false"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ServiceParticipantType">
+ <xsd:restriction base="xsd:string">
+ <xsd:length value="9"/>
+ <xsd:pattern value="[0-9]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CAT_ITOLogLevel">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="NORM"/>
+ <xsd:enumeration value="WARN"/>
+ <xsd:enumeration value="MINO"/>
+ <xsd:enumeration value="MAJO"/>
+ <xsd:enumeration value="CRIT"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="ParameterType">
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="value" type="xsd:string" use="required"/>
+ <xsd:attribute name="comment" type="xsd:string" use="optional"/>
+ <!-- Name of parameter -->
+ <!-- Value of parameter -->
+ <!-- Comment of parameter (optional) -->
+ </xsd:complexType>
+ </xsd:schema>
+ <xsd:schema xmlns="http://types.sopware.org/demos/Library/Common/1.0" targetNamespace="http://types.sopware.org/demos/Library/Common/1.0" elementFormDefault="unqualified">
+ <xsd:annotation>
+ <xsd:documentation>
+ <service name="Library"/>
+ <creation date="2005-03-17"/>
+ <Service Designer="TSD"/>
+ <revision history=""/>
+ <description>
+ <!--Definition of common business objects of testdomain Library. It is used by test operations of the SBB DevBox; 2003-06-30-->
+ </description>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!--operation related complex types: -->
+ <xsd:element name="ListOfBooks">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="Book" type="BookType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="SearchFor">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="Publisher" type="LongNameType" minOccurs="0"/>
+ <xsd:element name="AuthorLastName" type="NameType" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="ISBNNumber" type="ISBNType" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="createLending">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="ISBNNumber" type="ISBNType"/>
+ <xsd:element name="DateOfBirth" type="DateType"/>
+ <xsd:element name="ZIP" type="ZIPType"/>
+ <xsd:element name="Borrowed" type="DateType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <!--complex types of business objects: -->
+ <xsd:complexType name="StreetAddressType">
+ <xsd:sequence>
+ <xsd:element name="Street" type="StreetType" minOccurs="0"/>
+ <xsd:element name="HouseNumber" type="HouseNumberType" minOccurs="0"/>
+ <xsd:element name="ZIP" type="ZIPType"/>
+ <xsd:element name="City" type="CityType" minOccurs="0"/>
+ <xsd:element name="CountryID" type="IDType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="PersonType">
+ <xsd:sequence>
+ <xsd:element name="PersonID" type="IDType"/>
+ <xsd:element name="LastName" type="NameType"/>
+ <xsd:element name="FirstName" type="NameType"/>
+ <xsd:element name="TitleID" type="IDType" minOccurs="0"/>
+ <xsd:element name="SalutationID" type="IDType" minOccurs="0"/>
+ <xsd:element name="DateOfBirth" type="DateType"/>
+ <xsd:element name="EMail" type="MailToType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="BookType">
+ <xsd:sequence>
+ <xsd:element name="Title" type="LongNameType" maxOccurs="3"/>
+ <xsd:element name="Author" type="PersonType" maxOccurs="unbounded"/>
+ <xsd:element name="ISBN" type="ISBNType"/>
+ <xsd:element name="Publisher" type="LongNameType" maxOccurs="unbounded"/>
+ <xsd:element name="Year_published">
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:string">
+ <xsd:length value="4"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:element>
+ <!-- for simplification only lastname of author-->
+ </xsd:sequence>
+ </xsd:complexType>
+ <!--simple types of business objects: -->
+ <xsd:simpleType name="ZIPType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for ZIP codes</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="10"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CityType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for cities</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="StreetType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for streets</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="HouseNumberType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for house numbers</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="10"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="NameType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for names (firstname, lastname, ...)</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:whiteSpace value="collapse"/>
+ <xsd:maxLength value="35"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="LongNameType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for long names (titles, publisher, ...)</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:whiteSpace value="collapse"/>
+ <xsd:maxLength value="200"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="MailToType">
+ <xsd:annotation>
+ <xsd:documentation>Basistype for email-accounts</xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="200"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="IDType">
+ <xsd:restriction base="xsd:string">
+ <xsd:maxLength value="11"/>
+ <xsd:pattern value="[0-9]{1}[0-9]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="DateType">
+ <xsd:restriction base="xsd:date"/>
+ </xsd:simpleType>
+ <xsd:simpleType name="ISBNType">
+ <xsd:restriction base="xsd:string">
+ <xsd:minLength value="1"/>
+ <xsd:maxLength value="15"/>
+ <xsd:pattern value="[0-9\-]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:element name="newBooks">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="ListDate" type="svn:DateType"/>
+ <xsd:element maxOccurs="unbounded" name="Book" type="svn:BookType"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </types>
+ <message name="seekBookRequest">
+ <part name="body" element="svn:SearchFor"/>
+ </message>
+ <message name="seekBookResponse">
+ <part name="body" element="svn:ListOfBooks"/>
+ </message>
+ <message name="newBooksNotification">
+ <part name="ListOfBooks" element="svn:newBooks"/>
+ </message>
+ <message name="createLendingRequest">
+ <part name="Lending" element="svn:createLending"/>
+ </message>
+ <message name="seekBookError">
+ <part name="Exception" element="err:Exceptions"/>
+ </message>
+ <portType name="Library" sdx:status="design">
+ <operation name="seekBook">
+ <input message="dpag:seekBookRequest"/>
+ <output message="dpag:seekBookResponse"/>
+ <fault name="error" message="dpag:seekBookError"/>
+ </operation>
+ <operation name="newBooks">
+ <output message="dpag:newBooksNotification"/>
+ </operation>
+ <operation name="createLending">
+ <input message="dpag:createLendingRequest"/>
+ </operation>
+ <operation name="seekBookInBasement">
+ <input message="dpag:seekBookRequest"/>
+ </operation>
+ </portType>
+ <portType name="LibraryConsumer" sdx:status="design">
+ <operation name="seekBookInBasementResponse" sdx:partnerOperation="seekBookInBasement">
+ <input message="dpag:seekBookResponse"/>
+ </operation>
+ <operation name="seekBookInBasementFault" sdx:partnerOperation="seekBookInBasement" sdx:faultOperation="true">
+ <input message="dpag:seekBookError"/>
+ </operation>
+ </portType>
+ <plnk:partnerLinkType name="CallbackPartnerLink" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
+ <plnk:role name="service">
+ <plnk:portType name="dpag:LibraryConsumer"/>
+ </plnk:role>
+ <plnk:role name="callback">
+ <plnk:portType name="dpag:LibraryConsumerA"/>
+ </plnk:role>
+ </plnk:partnerLinkType>
+</definitions>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/AllAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/AllAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/AllAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="name" wsu:Id="id"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1"
+ xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+
+ <wsp:ExactlyOne>
+
+ <sopa:HttpTransport></sopa:HttpTransport>
+ <sopa:HttpsTransport></sopa:HttpsTransport>
+ <sopa:JmsTransport></sopa:JmsTransport>
+ <sopa:Authentication type=""></sopa:Authentication>
+ <sopa:Authorization></sopa:Authorization>
+ <sopa:Encryption></sopa:Encryption>
+ <sopa:Signature></sopa:Signature>
+ <sopa:SDXValidation></sopa:SDXValidation>
+ <sopa:CustomValidation message="" schemaSourcePath=""
+ schemaId="">
+ </sopa:CustomValidation>
+ <sopa:Compression></sopa:Compression>
+ <sopa:MaxResponseTime value="detail" location="consumer"></sopa:MaxResponseTime>
+ <sopa:Transformation ruleSourcePath="" ruleId=""
+ destination="local" message="">
+ </sopa:Transformation>
+ <sopa:TrackingLevel></sopa:TrackingLevel>
+ <sopa:Correlation name="">
+ <sopa:Part name="FILL_IN" xpath="/"></sopa:Part>
+ </sopa:Correlation>
+ <sopa:Priority min="" max=""></sopa:Priority>
+ <sopa:Subscription type=""></sopa:Subscription>
+ <sopa:ConversationalBinding></sopa:ConversationalBinding>
+ <sopa:Extension name=""></sopa:Extension>
+ </wsp:ExactlyOne>
+ </wsp:All>
+
+
+
+ </wsp:ExactlyOne>
+</wsp:Policy>
+
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ sopwsp:shortname="human-readable-name" Name="http://policies.test.orgoperation/TestServiceproviderhttpTransport" wsu:Id="http://dede">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport wsp:Optional="true"/>
+ <sopa:JmsTransport />
+ <sopa:Correlation name=""><sopa:Part name="FILL_IN" xpath="/"></sopa:Part></sopa:Correlation>
+ <sopa:MaxResponseTime value="" location="consumer"></sopa:MaxResponseTime>
+ <sopa:TrackingLevel value="detail" max="summary" wsp:Optional="true"></sopa:TrackingLevel>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Encryption wsp:Optional="true"/>
+ <sopa:Priority min="5" max="2"></sopa:Priority>
+ <sopa:TrackingLevel min="trace" max="operation"></sopa:TrackingLevel>
+ </wsp:ExactlyOne>
+
+ <wsp:ExactlyOne>
+ <sopa:Authentication type=""></sopa:Authentication>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Extension name="PayloadHandling" value="attached" wsp:Optional="true"/>
+ <sopa:Extension name="PayloadHandling" value="inline" wsp:Optional="true"/>
+ </wsp:ExactlyOne>
+
+ <wsp:ExactlyOne>
+ <sopa:Transformation destination="local" message="request"
+ ruleId="migrationRequest.xslt" ruleSourcePath="Location=Bonn/Application=LibraryServiceConsumerAPP"/>
+ </wsp:ExactlyOne>
+
+ <wsp:All>
+ <sopa:Transformation destination="local" message="request"
+ ruleId="migrationRequest.xslt" ruleSourcePath="Location=Bonn/Application=LibraryServiceConsumerAPP"/>
+ <sopa:Transformation destination="local" message="request"
+ ruleId="migrationResponse.xslt" ruleSourcePath="Location=Bonn/Application=LibraryServiceConsumerAPP"/>
+ </wsp:All>
+ <wsp:All>
+ <sopa:CustomValidation message="response"
+ schemaId="migrationRequest.xsd" schemaSourcePath="Location=Bonn/Application=LibraryServiceConsumerAPP"/>
+ <sopa:CustomValidation message="response"
+ schemaId="migrationResponse.xsd" schemaSourcePath="Location=Bonn/Application=LibraryServiceConsumerAPP"/>
+ </wsp:All>
+ </wsp:All>
+ <wsp:All2>
+ <wsp:ExactlyOne>
+ <sopa:Extension name="PayloadHandling" value="attached"/>
+ </wsp:ExactlyOne>
+ </wsp:All2>
+ </wsp:ExactlyOne>
+</wsp:Policy>
+
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/CarRental.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy
+ id="http://some.service.ns/participantpolicies/someId"
+ name="shortUnderstandableName" role="provider"
+ service="{http://services.sopware.org/demos/CarRental/1.0}CarRental"
+ serviceLocation="CarRental.sdx" version="0.1"
+ xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+
+ <DefaultOperation>
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </DefaultOperation>
+
+ <Operation name="rentCar">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="returnCar">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="noticeBoardMessage">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="addCar">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="deleteCar2">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="listAllCars">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+ <Operation name="getCarInfo">
+ <wsp:PolicyReference URI="CarRental" location="CarRental.opdx"/>
+ </Operation>
+</ParticipantPolicy>
+
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://types.sopware.org/qos/ParticipantPolicy/1.1/DefaultConsumerPolicy"
+ name="default consumer policy" role="consumer"
+ version="1.0">
+ <DefaultOperation>
+ <wsp:PolicyReference
+ URI="http://types.sopware.org/qos/ParticipantPolicy/1.1/DefaultConsumerPolicy_defaultOperation"/>
+ </DefaultOperation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer__default.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer__default.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer__default.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://types.sopware.org/qos/ParticipantPolicy/1.1/DefaultConsumerPolicy_defaultOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken" wsp:Optional="true"/>
+ <sopa:Authentication type="SAMLToken" wsp:Optional="true"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer_default.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer_default.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/defaultconsumer_default.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="defaultConsumerOperation"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://types.sopware.org/qos/ParticipantPolicy/1.1/DefaultConsumerPolicy_defaultOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumer.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumer.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumer.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://types.sopware.org/qos/ParticipantPolicy/1.1/StandardSecureConsumer"
+ name="standard policy for a consumer who support authentication/authorization via Http/Jms" role="consumer"
+ version="1.0">
+ <DefaultOperation>
+ <wsp:PolicyReference
+ URI="http://types.sopware.org/qos/ParticipantPolicy/1.1/SecureConsumerOperation"/>
+ </DefaultOperation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumerOperation.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumerOperation.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureConsumerOperation.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="secureConsumerOperation"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://types.sopware.org/qos/ParticipantPolicy/1.1/SecureConsumerOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken" wsp:Optional="true"/>
+ <sopa:Authentication type="SAMLToken" wsp:Optional="true"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureTspConsumerOperation.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureTspConsumerOperation.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/secureTspConsumerOperation.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="secureTspConsumerOperation"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://types.sopware.org/qos/ParticipantPolicy/1.1/SecureTspConsumerOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken" wsp:Optional="true"/>
+ <sopa:Authentication type="SAMLToken" wsp:Optional="true"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
\ No newline at end of file
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/standardTspConsumer.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/standardTspConsumer.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/consumer/standardTspConsumer.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://types.sopware.org/qos/ParticipantPolicy/1.1/StandardTspConsumer"
+ name="default tsp consumer policy" role="consumer"
+ version="1.0">
+ <DefaultOperation>
+ <wsp:PolicyReference
+ URI="http://types.sopware.org/qos/ParticipantPolicy/1.1/SecureTspConsumerOperation"/>
+ </DefaultOperation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthenticationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthenticationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthenticationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken" message="response"></sopa:Authentication>
+ <sopa:Authentication type="UsernameToken"></sopa:Authentication>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Authentication type="UsernameToken"></sopa:Authentication>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthorizationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthorizationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/AuthorizationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Authorization wsp:Optional="true" location="provider"></sopa:Authorization>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Authorization></sopa:Authorization>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CompressionAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CompressionAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CompressionAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Compression size="222" message="response"></sopa:Compression>
+ </wsp:ExactlyOne>
+ </wsp:All>
+
+ <wsp:All>
+ <wsp:All>
+ <sopa:Compression size="222" message="response" wsp:Optional="true"></sopa:Compression>
+ </wsp:All>
+ </wsp:All>
+
+ <wsp:All>
+ <wsp:All>
+ <sopa:Compression size="222" message="none" wsp:Optional="true"></sopa:Compression>
+ <sopa:Compression size="222" message="none" wsp:Optional="true"></sopa:Compression>
+ </wsp:All>
+ </wsp:All>
+
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ConversationalBindingAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ConversationalBindingAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ConversationalBindingAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:ConversationalBinding></sopa:ConversationalBinding>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:ConversationalBinding></sopa:ConversationalBinding>
+ <sopa:ConversationalBinding></sopa:ConversationalBinding>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CorrelationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CorrelationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CorrelationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Correlation name="Corr1" message="request"
+ location="sender" expose="true">
+ <sopa:Part name="FILL_INA" xpath="/"></sopa:Part>
+ <sopa:Part name="FILL_INA" xpath="/"></sopa:Part>
+ </sopa:Correlation>
+ </wsp:ExactlyOne>
+ <wsp:All>
+ <sopa:Correlation name="Corr2" message="request"
+ location="sender" expose="true">
+ <sopa:Namespace prefix="ipo"
+ uri="opopopopopopopol"/>
+ <sopa:Namespace prefix="ipo"
+ uri="opopopopopopopol2"/>
+ <sopa:Part name="FILL_INA" xpath="/"></sopa:Part>
+ <sopa:Part name="FILL_INA" xpath="/"></sopa:Part>
+ </sopa:Correlation>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CustomValidationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CustomValidationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/CustomValidationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:All>
+ <sopa:CustomValidation message="request" schemaSourcePath="sc"
+ schemaId="scrrrR" wsp:Optional="true" ></sopa:CustomValidation>
+ </wsp:All>
+ <wsp:All>
+ <sopa:CustomValidation message="request" schemaSourcePath="sc"
+ schemaId="scrrrR"></sopa:CustomValidation>
+ <sopa:CustomValidation message="request" schemaSourcePath="sc"
+ schemaId="scrrrR" location="provider"></sopa:CustomValidation>
+ </wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:CustomValidation message="request" schemaSourcePath="sc"
+ schemaId="scrrrR"></sopa:CustomValidation>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/EncryptionAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/EncryptionAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/EncryptionAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Encryption message="response"></sopa:Encryption>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Encryption message="response"></sopa:Encryption>
+ <sopa:Encryption message="response"></sopa:Encryption>
+ <sopa:Encryption message="response"></sopa:Encryption>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ExtensionAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ExtensionAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/ExtensionAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Extension name="eee" value="erer"></sopa:Extension>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Extension name="eee" value="erer"></sopa:Extension>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/MaxResponseTimeAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/MaxResponseTimeAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/MaxResponseTimeAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:MaxResponseTime value="23" location="consumer"></sopa:MaxResponseTime>
+ <sopa:MaxResponseTime value="3" location="provider"></sopa:MaxResponseTime>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:MaxResponseTime value="23" location="consumer"></sopa:MaxResponseTime>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/PriorityAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/PriorityAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/PriorityAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Priority min="8" max="6"></sopa:Priority>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Priority min="2" value="5"></sopa:Priority>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SDXValidationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SDXValidationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SDXValidationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:SDXValidation></sopa:SDXValidation>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:SDXValidation message="request" location="consumer"></sopa:SDXValidation>
+ <sopa:SDXValidation message="request" location="consumer"></sopa:SDXValidation>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SignatureAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SignatureAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SignatureAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sopa:Signature message="request" verify="true" />
+ <sopa:Signature message="request" />
+ <sopa:Signature message="request" />
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SubscriptionAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SubscriptionAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/SubscriptionAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Subscription type="durable"></sopa:Subscription>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Subscription type="durable"></sopa:Subscription>
+ <sopa:Subscription type="durable"></sopa:Subscription>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TrackingLevelAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TrackingLevelAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TrackingLevelAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:TrackingLevel min="summary" max="operation" value="operation"></sopa:TrackingLevel>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:TrackingLevel min="trace" max="summary"></sopa:TrackingLevel>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransformationAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransformationAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransformationAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:All>
+ <sopa:Transformation ruleSourcePath="er" ruleId="ere" message="request" wsp:Optional="true"></sopa:Transformation>
+ <sopa:Transformation ruleSourcePath="er" ruleId="ere" message="request"></sopa:Transformation>
+ </wsp:All>
+ <wsp:All>
+ <sopa:Transformation ruleSourcePath="er" ruleId="ere" message="request"></sopa:Transformation>
+ <sopa:Transformation ruleSourcePath="er" ruleId="ere" message="response"></sopa:Transformation>
+ </wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:Transformation ruleSourcePath="er" ruleId="ere" message="request"></sopa:Transformation>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransportAssertions.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransportAssertions.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/fault/TransportAssertions.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy sopwsp:name="simple WS-Policy test" wsu:Id="uniquePolicyId2" xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1" xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport wsp:Optional="true"/>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ <sopa:JmsTransport/>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticatedSyncOperation.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticatedSyncOperation.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticatedSyncOperation.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="http(s) authenticated"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="AuthenticatedSyncOperation">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/security/AuthenticationProvider/1.0/AuthenticationProvider/anonymousAccess"
+ name="AuthenticationProviderPolicy (anonymous)"
+ role="provider" service="{http://services.sopware.org/security/Authentication/1.0}Authentication"
+ version="">
+ <Operation name="authenticate">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/SyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthenticationProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/AuthenticationProvider/1.0/AuthenticationProvider/anonymousAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/security/AuthorizationProvider/1.0/AuthorizationProvider/secureAccess"
+ name="AuthorizationProviderPolicy (authenticated)"
+ role="provider" service="{http://services.sopware.org/security/Authorization/1.0}Authorization"
+ version="">
+ <Operation name="authorize">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizationProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/AuthorizationProvider/1.0/AuthorizationProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizedSyncOperation.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizedSyncOperation.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/AuthorizedSyncOperation.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="http(s) authorized"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="AuthorizedSyncOperation">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/configuration/ConfigurationAdminProvider/1.0/ConfigurationAdminProvider/authentOnly"
+ name="ConfigurationAdmin Provider (authenticated read, authorized write)"
+ role="provider"
+ service="{http://services.sopware.org/configuration/ConfigurationAdmin/1.0}ConfigurationAdmin"
+ version="">
+ <Operation name="getResourceIds">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="mergeAllConfigurations">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getSchemaCatalog">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getConfigurationTree">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getTreeNames">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getComponentConfiguration">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getConfigurationIds">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteComponentScope">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createComponentScope">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="addConfigurationId">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="mergeComponentConfiguration">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createScope">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getComponentNames">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="setResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getConfigurationSchema">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="removeConfigurationId">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="setSchemaCatalog">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteScope">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="setConfigurationSchema">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="setAllConfigurations">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="setComponentConfiguration">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getAllConfigurations">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getScopeChildNames">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="copyComponentConfiguration">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="removeResourceId">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationAdminProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/configuration/ConfigurationAdminProvider/1.0/ConfigurationAdminProvider/authentOnly#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/configuration/ConfigurationRuntimeProvider/1.0/ConfigurationRuntimeProvider/anonymousAccess"
+ name="ConfigurationRuntime Provider (anonymous sync access)"
+ role="provider"
+ service="{http://services.sopware.org/configuration/ConfigurationRuntime/1.0}ConfigurationRuntime"
+ version="">
+ <Operation name="getResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/SyncOperation"
+ />
+ </Operation>
+ <Operation name="getConfiguration">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/SyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ConfigurationRuntimeProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/configuration/ConfigurationRuntimeProvider/1.0/ConfigurationRuntimeProvider/anonymousAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess"
+ name="Library Demo Provider (secure)"
+ role="provider" service="{http://services.sopware.org/demos/Library/1.0}Library" version="">
+ <Operation name="seekBook">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+ <Operation name="seekBookInBasement">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+ <Operation name="newBooks">
+ <!--
+ The following policy reference is ONLY for development purposes to enable matching of this
+ provider policy with the standard consumer policy.
+ For production purposes, you MUST replace the reverence with a reference to
+ http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1 (if
+ a JMS transport is available in your installation) or mark the operation as unused.
+ <unused/>
+ -->
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+ <Operation name="createLending">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="http authorized"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_1.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_1.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/LibraryProvider_1.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="JMS only"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:JmsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/management/ManagementNotificationProvider/1.0/ManagementNotificationProvider/anonymousAccess"
+ name="ManagementNotification Provider (sync)"
+ role="provider" service="{http://services.sopware.org/management/ManagementNotification/1.0}ManagementNotification"
+ version="">
+ <Operation name="publish">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/SyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ManagementNotificationProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/management/ManagementNotificationProvider/1.0/ManagementNotificationProvider/anonymousAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/security/PrivilegeManagementProvider/1.0/PrivilegeManagementProvider/secureAccess"
+ name="PrivilegeManagement Provider (authorized)"
+ role="provider"
+ service="{http://services.sopware.org/security/PrivilegeManagement/1.0}PrivilegeManagement"
+ version="">
+ <Operation name="createRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findPrivileges">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="addAccountToRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findResources">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteMemberFromRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findAccounts">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findRolesOfActor">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyPrivilege">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="removeAccountFromRealm">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="addMemberToRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findMembersInRole">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getPrivilege">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deletePrivilege">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findRealms">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getResource">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findRoles">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createPrivilege">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/PrivilegeManagementProvider/1.0/PrivilegeManagementProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_1.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_1.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/PrivilegeManagementProvider_1.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/PrivilegeManagementProvider/1.0/PrivilegeManagementProvider/secureAccess#1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess"
+ name="ServiceRegistry Provider"
+ role="provider"
+ service="{http://services.sopware.org/registry/ServiceRegistry/1.0}ServiceRegistry" version="">
+ <Operation name="xfind_and_get_annotation">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_get_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_get_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_get_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_get_wsPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_annotation">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_wsPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_annotation">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_annotations">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_wsPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xget_wsdl">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xbind_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xunbind_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_annotation">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_annotations">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_wsdl">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xdelete_wsPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_delete_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xfind_and_delete_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xsave_annotation">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#2"
+ />
+ </Operation>
+ <Operation name="xsave_participantPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xsave_serviceDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#2"
+ />
+ </Operation>
+ <Operation name="xsave_serviceProviderDescription">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#2"
+ />
+ </Operation>
+ <Operation name="xsave_wsPolicy">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xsave_wsdl">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#2"
+ />
+ </Operation>
+ <Operation name="xlookUp_serviceProvider">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="xlookUp_serviceProviders">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="cleanup">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_1.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_1.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_1.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:All>
+ <sopa:SDXValidation message="response" wsp:Optional="true"/>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_2.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_2.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/ServiceRegistryProvider_2.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ Name="http://policies.sopware.org/registry/ServiceRegistryProvider/1.0/ServiceRegistryProvider/secureAccess#2"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1"
+ sopwsp:shortname="Authorize_ValidateRequest">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpsTransport/>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ <wsp:All>
+ <sopa:SDXValidation message="request"/>
+ <sopa:SDXValidation wsp:Optional="true" message="response"/>
+ </wsp:All>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/SyncOperation.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/SyncOperation.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/SyncOperation.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/TechnicalServiceProvider/1.0/SyncOperation"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:shortname="SyncOperation">
+ <!-- Simple operation policy - intended for sync only providers with no special requirements/capabilities -->
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ <sopa:HttpsTransport/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/security/UserAccountManagementProvider/1.0/UserAccountManagementProvider/secureAccess"
+ name="UserAccount Provider (authorized)"
+ role="provider"
+ service="{http://services.sopware.org/security/UserAccountManagement/1.0}UserAccountManagement"
+ version="">
+ <Operation name="createEntity">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="addCredential">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="createAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyEntity">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getEntity">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findEntities">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="resetCredential">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyAccount">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="modifyCredential">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="findAccounts">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="deleteEntity">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="removeCredential">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+ <Operation name="getMetaData">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthorizedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/UserAccountManagementProvider/1.0/UserAccountManagementProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_1.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_1.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/UserAccountManagementProvider_1.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/UserAccountManagementProvider/1.0/UserAccountManagementProvider/secureAccess#1"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authorization/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider.ppdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider.ppdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider.ppdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<ParticipantPolicy xmlns="http://types.sopware.org/qos/ParticipantPolicy/1.1"
+ xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
+ id="http://policies.sopware.org/security/XkmsProvider/1.0/XkmsProvider/secureAccess"
+ name="XKMS Provider (authorized)"
+ role="provider" service="{http://services.sopware.org/security/Xkms/1.0}Xkms" version="">
+ <Operation name="locate">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+ <Operation name="validate">
+ <wsp:PolicyReference
+ URI="http://policies.sopware.org/TechnicalServiceProvider/1.0/AuthenticatedSyncOperation"
+ />
+ </Operation>
+</ParticipantPolicy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider_0.opdx
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider_0.opdx (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/conf/testcases/msv/sr/policy/standard/XkmsProvider_0.opdx 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007 SOPERA GmbH
+ 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:
+ SOPERA GmbH - initial API and implementation
+-->
+<wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" sopwsp:shortname="auto-converted"
+ xmlns:sopa="http://types.sopware.org/qos/SOPAssertions/1.1"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ Name="http://policies.sopware.org/security/XkmsProvider/1.0/XkmsProvider/secureAccess#0"
+ xmlns:sopwsp="http://types.sopware.org/qos/WS-PolicyExtensions/1.1" sopwsp:name="">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wsp:ExactlyOne>
+ <sopa:HttpTransport/>
+ </wsp:ExactlyOne>
+ <wsp:ExactlyOne>
+ <sopa:Authentication type="UsernameToken"/>
+ <sopa:Authentication type="SAMLToken"/>
+ </wsp:ExactlyOne>
+ </wsp:All>
+ </wsp:ExactlyOne>
+</wsp:Policy>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/AllTests.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/AllTests.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/AllTests.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.test;
+
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.log4j.BasicConfigurator;
+import org.apache.log4j.PropertyConfigurator;
+
+/**
+ * The Class AllTests.
+ */
+public class AllTests {
+
+ /**
+ * Suite.
+ *
+ * @return the test
+ */
+ public static Test suite() {
+ configureLog();
+ TestSuite suite = new TestSuite(
+ "Test for org.eclipse.stp.common.validator.test");
+ suite.addTestSuite(GenericWSDLValidatorTest.class);
+ suite.addTestSuite(SchemaTypeValidatorTest.class);
+ suite.addTestSuite(MultiSchemaValidatorTest.class);
+ suite.addTestSuite(ConsistencyValidatorTest.class);
+ return suite;
+ }
+
+ /**
+ * Configure log.
+ */
+ private static void configureLog() {
+ try {
+ InputStream inputStream = new FileInputStream("./conf/log4j.properties");
+ Properties settings = new Properties();
+ settings.load(inputStream);
+ inputStream.close();
+ PropertyConfigurator.configure(settings);
+ } catch (IOException e) {
+ BasicConfigurator.configure();
+ } finally {
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/AllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/ConsistencyValidatorTest.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/ConsistencyValidatorTest.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/ConsistencyValidatorTest.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,116 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.stp.common.validator.base.FSValidationContextFactory;
+import org.eclipse.stp.common.validator.base.SimpleFileReporter;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.ValidatorTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.ValidatorFactoryDefImpl;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+/**
+ * The Class ConsistencyValidatorTest.
+ */
+public class ConsistencyValidatorTest extends TestCase {
+
+ private final static String inputFilesValid[] = {
+ "conf/testcases/consistency/LibraryProvider.spdx",
+ "conf/testcases/consistency/LibraryProviderNormal1.ppdx",
+ "conf/testcases/consistency/LibraryProviderNormal2.ppdx"
+ };
+
+ private final static String inputFilesInvalid[] = {
+ "conf/testcases/consistency/LibraryProvider.ppdx", // "serviceLocation" and "location" attributes missing
+ "conf/testcases/consistency/Library.sdx", // wrong document type
+ "conf/testcases/consistency/MissingFile", // missing file
+ "conf/testcases/consistency/LibraryProviderFail1.ppdx", // The notification operation newBooks must be assigned to the JMS or SBB2 based transport binding
+ "conf/testcases/consistency/LibraryProviderFail2.ppdx", // There was no explicit declaration or default operation element found for createLending
+ "conf/testcases/consistency/LibraryProviderFail3.ppdx", // The Service Description Document cannot be resolved and loaded for consistency check
+ "conf/testcases/consistency/LibraryProviderFail4.ppdx", // The Participant Policy contains reference to an undefined Port Type http://services.sopware.org/demos/Library/2.0:Library
+ "conf/testcases/consistency/LibraryProviderFail5.ppdx", // Unable to load the OPDX document [URI: http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0, location: LibraryProvider.opdx] for Participant Policy consistency check
+ "conf/testcases/consistency/LibraryProviderFail6.ppdx", // The operation createLending declared in Participant Policy more than one time
+ "conf/testcases/consistency/LibraryProviderFail7.ppdx" // Reference in operation seekBookInBasement [URI: XXX] doesn't match OPDX document [URI: http://policies.sopware.org/demos/LibraryProvider/1.0/LibraryProvider/secureAccess#0, location: LibraryProvider_0.opdx]
+ };
+
+ private FSValidationContextFactory contextFactory = null;
+ private IValidator consistencyValidator = null;
+ private IReporter reporterObj = null;
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ contextFactory = FSValidationContextFactory.getInstance();
+
+ consistencyValidator =
+ ValidatorFactoryDefImpl.getInstance().getValidator(ValidatorTypeEnum.CONSISTENCY_VALIDATOR);
+ assertNotNull("Unable to create the Consistency validator", consistencyValidator);
+ System.out.println("Consistency Validator Instance Created");
+
+ reporterObj = new SimpleFileReporter("target/consistency-report.txt");
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+
+ contextFactory = null;
+ consistencyValidator = null;
+ reporterObj = null;
+ }
+
+ /**
+ * Test consistency validation.
+ */
+ public void testConsistencyValidation() throws Exception {
+ for (String filePath : inputFilesValid) {
+ System.out.println("Processing valid file [" + filePath + "]");
+
+ reporterObj.removeAllMessages();
+ IValidationContext context = contextFactory.createContext(filePath);
+ consistencyValidator.validate(context, reporterObj);
+ assertTrue("Validation Error during processing '" + filePath + "'", 0 == reporterObj.getErrorsCount());
+ }
+ for (String filePath : inputFilesInvalid) {
+ System.out.println("Processing invalid file [" + filePath + "]");
+
+ reporterObj.removeAllMessages();
+ assertTrue("Reporter object must be empty", 0 == reporterObj.getErrorsCount());
+
+ boolean failed = false;
+ try {
+ IValidationContext context = contextFactory.createContext(filePath);
+ consistencyValidator.validate(context, reporterObj);
+ failed = (0 != reporterObj.getErrorsCount());
+ } catch (SOPValidationException e) {
+ // expected exception
+ failed = true;
+ } catch (ContextInitializationException e) {
+ // expected exception
+ failed = true;
+ }
+ assertTrue("Validation Success during processing '" + filePath + "'", failed);
+ }
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/ConsistencyValidatorTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/GenericWSDLValidatorTest.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/GenericWSDLValidatorTest.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/GenericWSDLValidatorTest.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,141 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.test;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+
+import junit.framework.TestCase;
+
+import org.eclipse.stp.common.validator.base.FSValidationContextFactory;
+import org.eclipse.stp.common.validator.base.SimpleFileReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.ValidatorTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.ValidatorFactoryDefImpl;
+import org.eclipse.stp.common.validator.exception.ConfigurationException;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+/**
+ * The Class GenericWSDLValidatorTest.
+ */
+public class GenericWSDLValidatorTest extends TestCase {
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ *
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ /**
+ * Test generic WSDL validation.
+ */
+ public void testGenericWSDLValidation() {
+ IValidationContext context = null;
+ FSValidationContextFactory contextFactory = null;
+ contextFactory = FSValidationContextFactory.getInstance();
+
+ IValidator wsdlGenericValidator = null;
+ try {
+ wsdlGenericValidator =
+ ValidatorFactoryDefImpl.getInstance().getValidator(ValidatorTypeEnum.GENERIC_VALIDATOR);
+ } catch (ConfigurationException e) {
+ e.printStackTrace();
+ }
+
+ assertNotNull("Unable to create the WSDL Generic validator", wsdlGenericValidator);
+
+ SimpleFileReporter reporterObj = null;
+ try {
+ reporterObj = new SimpleFileReporter("target/generic-wsdl-report.txt");
+ } catch (FileNotFoundException e) {
+ System.out.println("Unable to open the Reporter object: " + e.toString());
+ }
+
+ String inputDirs[] = { "conf/testcases/msv/sr/", "conf/testcases/msv/sr/service-providers/" };
+ for (int i = 0; i < inputDirs.length; i++) {
+ File dir = new File(inputDirs[i]);
+ if (dir.isDirectory()) {
+ System.out.println("Processing directory [" + dir.getPath() + "]");
+ File[] files = dir.listFiles();
+ for (int j = 0; j < files.length; j++) {
+ File objFile = files[j];
+ if (objFile.isFile()) {
+ System.out.println("Processing sample file [" + objFile.getPath() + "]");
+ String filePath = objFile.getPath();
+ try {
+ context = contextFactory.createContext(filePath);
+ } catch (ContextInitializationException e) {
+ e.printStackTrace();
+ }
+ assertNotNull("Unable to create the context for validation [" + filePath + "]", context);
+
+ try {
+ System.out.println("Validating using Generic validator");
+ wsdlGenericValidator.validate(context, reporterObj);
+ assertTrue("Validation Error during processing standard Documents", 0 == reporterObj.getErrorsCount());
+ } catch (SOPValidationException e) {
+ e.printStackTrace();
+ assertNotNull("Validation failure", null);
+ }
+ }
+ }
+ }
+ }
+
+ // fault sample documents
+ // String faultInputDirs [] = {"conf/testcases/genericwsdl/"};
+ // for (int i = 0; i < faultInputDirs.length; i++) {
+ // File dir = new File (faultInputDirs[i]);
+ // if (dir.isDirectory()) {
+ // System.out.println("Processing directory with faults [" +
+ // dir.getPath() + "]");
+ // File [] files = dir.listFiles();
+ // for (int j = 0; j<files.length; j++) {
+ // File objFile = files[j];
+ // if (objFile.isFile()) {
+ // System.out.println("Processing sample fault file [" +
+ // objFile.getPath() + "]");
+ // String filePath = objFile.getPath();
+ // try {
+ // context = contextFactory.createContext(filePath);
+ // } catch (ContextInitializationException e) {
+ // e.printStackTrace();
+ // }
+ //
+ // assertNotNull ("Unable to create the Validation context", context);
+ //
+ // int prevErrors = reporterObj.getErrorsCount();
+ // try {
+ // wsdlGenericValidator.validate(context, reporterObj);
+ // } catch (SOPValidationException e) {
+ // e.printStackTrace();
+ // }
+ // assertTrue("Validation passed without detecting errors", prevErrors
+ // != reporterObj.getErrorsCount());
+ // }
+ // }
+ // }
+ // }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/GenericWSDLValidatorTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/MultiSchemaValidatorTest.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/MultiSchemaValidatorTest.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/MultiSchemaValidatorTest.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,147 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.eclipse.stp.common.validator.base.FSValidationContextFactory;
+import org.eclipse.stp.common.validator.base.SimpleFileReporter;
+import org.eclipse.stp.common.validator.core.IReporter;
+import org.eclipse.stp.common.validator.core.IValidationContext;
+import org.eclipse.stp.common.validator.core.IValidator;
+import org.eclipse.stp.common.validator.core.ValidatorTypeEnum;
+import org.eclipse.stp.common.validator.core.impl.ValidatorFactoryDefImpl;
+import org.eclipse.stp.common.validator.exception.ContextInitializationException;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+/**
+ * The Class MultiSchemaValidatorTest.
+ */
+public class MultiSchemaValidatorTest extends TestCase {
+
+ private final static String inputDirs[] = {
+ "conf/testcases/msv/sr",
+ "conf/testcases/msv/sr/policy/consumer",
+ "conf/testcases/msv/sr/policy/standard",
+ "conf/testcases/msv/sr/service-providers"
+ };
+
+
+ private final static String faultInputDirs[] = { "conf/testcases/msv/sr/policy/fault" };
+
+ private FSValidationContextFactory contextFactory = null;
+ private IValidator msvValidator = null;
+ private IReporter reporterObj = null;
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ contextFactory = FSValidationContextFactory.getInstance();
+
+ msvValidator =
+ ValidatorFactoryDefImpl.getInstance().getValidator(ValidatorTypeEnum.MULTISCHEMA_VALIDATOR);
+ assertNotNull("Unable to create the Multi Schema Validator validator", msvValidator);
+ System.out.println("Multi Schema Validator Instance created");
+
+ reporterObj = new SimpleFileReporter("target/multischema-report.txt");
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+
+ contextFactory = null;
+ msvValidator = null;
+ reporterObj = null;
+ }
+
+ /**
+ * Test multi schema validation.
+ */
+ public void testMultiSchemaValidation() {
+
+ IValidationContext context = null;
+
+ for (int i = 0; i < inputDirs.length; i++) {
+ File dir = new File(inputDirs[i]);
+ if (dir.isDirectory()) {
+ System.out.println("Processing directory [" + dir.getPath() + "]");
+ File[] files = dir.listFiles();
+ for (int j = 0; j < files.length; j++) {
+ File objFile = files[j];
+ if (objFile.isFile()) {
+ System.out.println("Processing sample file [" + objFile.getPath() + "]");
+ String filePath = objFile.getPath();
+ try {
+ context = contextFactory.createContext(filePath);
+ } catch (ContextInitializationException e) {
+ e.printStackTrace();
+ }
+ assertNotNull("Unable to create the context for validation [" + filePath + "]", context);
+
+ try {
+ System.out.println("Validating using MSV validator");
+ msvValidator.validate(context, reporterObj);
+ assertTrue("Validation Error during processing standard Documents", 0 == reporterObj.getErrorsCount());
+ } catch (SOPValidationException e) {
+ e.printStackTrace();
+ assertNotNull("Validation failure", null);
+ }
+
+ }
+ }
+ }
+ }
+
+ for (int i = 0; i < faultInputDirs.length; i++) {
+ File dir = new File(faultInputDirs[i]);
+ if (dir.isDirectory()) {
+ System.out.println("Processing directory [" + dir.getPath() + "]");
+ File[] files = dir.listFiles();
+ for (int j = 0; j < files.length; j++) {
+ File objFile = files[j];
+ if (objFile.isFile()) {
+ System.out.println("Processing sample file [" + objFile.getPath() + "]");
+ String filePath = objFile.getPath();
+ try {
+ context = contextFactory.createContext(filePath);
+ } catch (ContextInitializationException e) {
+ e.printStackTrace();
+ }
+ assertNotNull("Unable to create the context for validation [" + filePath + "]", context);
+
+ try {
+ System.out.println("Validating using MSV validator");
+ int prevErrors = reporterObj.getErrorsCount();
+
+ msvValidator.validate(context, reporterObj);
+
+ assertTrue("Validation passed without detecting errors", prevErrors != reporterObj.getErrorsCount());
+ } catch (SOPValidationException e) {
+ e.printStackTrace();
+ assertNotNull("Validation failure", null);
+ }
+ }
+ }
+ }
+ }
+ }
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/MultiSchemaValidatorTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/SchemaTypeValidatorTest.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/SchemaTypeValidatorTest.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/SchemaTypeValidatorTest.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,74 @@
+/*******************************************************************************
+ * Copyright (c) 2008 SOPERA GmbH
+ * 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
+ ******************************************************************************/
+package org.eclipse.stp.common.validator.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.stp.common.validator.core.impl.SchemaTypeValidator;
+import org.eclipse.stp.common.validator.core.impl.service.URIConstants;
+import org.eclipse.stp.common.validator.exception.SOPValidationException;
+
+/**
+ * The Class SchemaTypeValidatorTest.
+ */
+public class SchemaTypeValidatorTest extends TestCase {
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ /**
+ * Test schema type validation.
+ */
+ public void testSchemaTypeValidation() {
+ SchemaTypeValidator validator = SchemaTypeValidator.getInstance();
+ assertNotNull("Unable to create the Schema Type validator", validator);
+
+ System.out.println("Schema Type Validator Instance Created");
+ try {
+ String errMsg = validator.validateSimpleType(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "VersionType", "aaa");
+ if (null == errMsg) {
+ System.out.println("Validation succeeded");
+ } else {
+ System.out.println("Validation error: " + errMsg);
+ }
+
+ errMsg = validator.validateAttrib(URIConstants.SOPWARE_SDX20_SCHEMA_URI, "version", "aaad");
+ if (null == errMsg) {
+ System.out.println("Validation succeeded");
+ } else {
+ System.out.println("Validation error: " + errMsg);
+ }
+
+ errMsg = validator.validateSimpleType(URIConstants.XSD_SCHEMA_2001_URI, "NCName", "12Jd");
+ if (null == errMsg) {
+ System.out.println("Validation succeeded");
+ } else {
+ System.out.println("Validation error: " + errMsg);
+ }
+
+ } catch (SOPValidationException e) {
+ e.printStackTrace();
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.common.validator.test/src/java/org/eclipse/stp/common/validator/test/SchemaTypeValidatorTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.classpath
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.classpath (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.classpath 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.dosgi.editors</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/META-INF/MANIFEST.MF
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/META-INF/MANIFEST.MF (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/META-INF/MANIFEST.MF 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.stp.dosgi.editors;singleton:=true
+Bundle-Version: 0.0.1.qualifier
+Require-Bundle: org.eclipse.core.resources,
+ org.eclipse.core.runtime,
+ org.eclipse.ui,
+ org.eclipse.ui.ide,
+ org.eclipse.stp.xef,
+ org.jdom
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %pluginProvider
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ schemas/
+
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,2 @@
+pluginName=Distributed OSGi Tools
+pluginProvider=Eclipse STP
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ class="org.eclipse.stp.dosgi.editors.RemoteServicesEditor"
+ default="true"
+ filenames="remote-services.xml"
+ id="org.eclipse.stp.dosgi.remoteserviceseditor"
+ name="Remote Services Editor">
+ </editor>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ class="org.eclipse.stp.dosgi.editors.IntentsEditorForRI"
+ default="true"
+ filenames="intent-map.xml"
+ id="org.eclipse.stp.dosgi.ri.intentmapeditor"
+ name="RI Intent Map Editor">
+ </editor>
+ </extension>
+
+ <extension
+ point="org.eclipse.stp.xef.xefExtension">
+ <selectionDialog
+ class="org.eclipse.stp.dosgi.editors.ServiceDescriptionSchemaProvider"
+ selectionDialogId="org.eclipse.stp.dosgi.serviceDescriptionSD">
+ </selectionDialog>
+ <selectionDialog
+ class="org.eclipse.stp.dosgi.editors.IntentSelectionDialog"
+ selectionDialogId="org.eclipse.stp.dosgi.editors.ri.intentMapSD">
+ </selectionDialog>
+ <xmlTransformer
+ class="org.eclipse.stp.dosgi.editors.IntentMapXMLTransformer"
+ xmlTransformerId="org.eclipse.stp.dosgi.editors.intentMapXMLTransformer">
+ </xmlTransformer>
+ </extension>
+
+</plugin>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+Copyright (C) OASIS Open 2002-2004. All Rights Reserved.
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+-->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" version="0.2">
+ <xsd:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="oasis-200401-wss-wssecurity-utility-1.0.xsd"/>
+ <!--xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/-->
+ <!--xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/-->
+ <xsd:complexType name="AttributedString">
+ <xsd:annotation>
+ <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="PasswordString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="Type" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="EncodedString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="EncodingType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="Username" type="wsse:AttributedString"/>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>A security token that is encoded in binary</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>A security token key identifier</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:simpleType name="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
+ </xsd:annotation>
+ <xsd:list itemType="xsd:anyURI"/>
+ </xsd:simpleType>
+ <xsd:attribute name="Usage" type="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:complexType name="ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="URI" type="xsd:anyURI"/>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type is used reference a security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:attribute ref="wsse:Usage"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Reference" type="wsse:ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Embedded" type="wsse:EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a key identifier reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Security" type="wsse:SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Password" type="wsse:PasswordString"/>
+ <xsd:element name="Nonce" type="wsse:EncodedString"/>
+ <xsd:simpleType name="FaultcodeEnum">
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
+ <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
+ <xsd:enumeration value="wsse:InvalidSecurity"/>
+ <xsd:enumeration value="wsse:InvalidSecurityToken"/>
+ <xsd:enumeration value="wsse:FailedAuthentication"/>
+ <xsd:enumeration value="wsse:FailedCheck"/>
+ <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+Copyright (C) OASIS Open 2002-2004. All Rights Reserved.
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+-->
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
+
+
+xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
+ <!-- // Fault Codes /////////////////////////////////////////// -->
+ <xsd:simpleType name="tTimestampFault">
+ <xsd:annotation>
+ <xsd:documentation>
+This type defines the fault code value for Timestamp message expiration.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsu:MessageExpired"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <!-- // Global attributes //////////////////////////////////// -->
+ <xsd:attribute name="Id" type="xsd:ID">
+ <xsd:annotation>
+ <xsd:documentation>
+This global attribute supports annotating arbitrary elements with an ID.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attributeGroup name="commonAtts">
+ <xsd:annotation>
+ <xsd:documentation>
+Convenience attribute group used to simplify this schema.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute ref="wsu:Id" use="optional"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:attributeGroup>
+ <!-- // Utility types //////////////////////////////////////// -->
+ <xsd:complexType name="AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="AttributedURI">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:anyURI">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <!-- // Timestamp header components /////////////////////////// -->
+ <xsd:complexType name="TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This complex type ties together the timestamp related elements into a composite type.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element ref="wsu:Created" minOccurs="0"/>
+ <xsd:element ref="wsu:Expires" minOccurs="0"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any namespace="##other" processContents="lax"/>
+ </xsd:choice>
+ </xsd:sequence>
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:complexType>
+ <xsd:element name="Timestamp" type="wsu:TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows Timestamps to be applied anywhere element wildcards are present,
+including as a SOAP header.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <!-- global element decls to allow individual elements to appear anywhere -->
+ <xsd:element name="Expires" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows an expiration time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Created" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows a creation time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+</xsd:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/service-descriptions.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/service-descriptions.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/service-descriptions.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ /*
+ * $Revision: 2864 $
+ *
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+ <schema xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:sd="http://www.osgi.org/xmlns/sd/v1.0.0"
+ xmlns:xef="http://schemas.eclipse.org/stp/xsd/2006/05/xef"
+ xmlns:xefgui="http://schemas.eclipse.org/stp/xsd/2006/05/xef/gui"
+ targetNamespace="http://www.osgi.org/xmlns/sd/v1.0.0"
+ elementFormDefault="qualified"
+ version="1.0.0">
+
+ <annotation>
+ <documentation xml:lang="en">
+ This is the XML Schema for service descriptions used by
+ Distributed OSGi. Service descriptions are used to describe
+ remote services to a client. An extender, such as a local
+ Discovery Service can look for service descriptions in
+ installed bundles and then a Distribution Software can
+ create proxies to the remote services based on the service
+ descriptions.
+ </documentation>
+ </annotation>
+
+ <element name="service-descriptions"
+ type="sd:Tservice-descriptions"/>
+
+ <complexType name="Tservice-descriptions">
+ <sequence>
+ <element name="service-description"
+ type="sd:Tservice-description" minOccurs="1" maxOccurs="unbounded" >
+ <annotation>
+ <appinfo>
+ <xef:displayName>Remote OSGi Service</xef:displayName>
+ </appinfo>
+ </annotation>
+ </element>
+ <!-- It is non-deterministic, per W3C XML Schema 1.0: http://www.w3.org/TR/xmlschema-1/#cos-nonambig
+ to use namespace="##any" below. -->
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </sequence>
+ <anyAttribute />
+ </complexType>
+
+ <complexType name="Tservice-description">
+ <annotation>
+ <documentation xml:lang="en">
+ A Distribution Software is required to register a proxy
+ with the interface(s) and any properties provided. If
+ any 'intents' properties are specified then the
+ Distribution Software should only register a proxy if it
+ cann support those intents.
+ </documentation>
+ </annotation>
+ <sequence>
+ <element name="provide" type="sd:Tprovide" minOccurs="1"
+ maxOccurs="unbounded" >
+ <annotation>
+ <appinfo>
+ <xef:displayName>Provides Interface</xef:displayName>
+ </appinfo>
+ </annotation>
+ </element>
+ <element name="property" type="sd:Tproperty" minOccurs="0"
+ maxOccurs="unbounded" >
+ <annotation>
+ <appinfo>
+ <xef:displayName>Property</xef:displayName>
+ </appinfo>
+ </annotation>
+ </element>
+ <!-- It is non-deterministic, per W3C XML Schema 1.0: http://www.w3.org/TR/xmlschema-1/#cos-nonambig
+ to use namespace="##any" below. -->
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </sequence>
+ <anyAttribute />
+ </complexType>
+
+ <complexType name="Tprovide">
+ <sequence>
+ <any namespace="##any" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded" />
+ </sequence>
+ <attribute name="interface" type="token" use="required" />
+ <anyAttribute />
+ </complexType>
+
+ <complexType name="Tproperty">
+ <simpleContent>
+ <extension base="string">
+ <attribute name="name" type="string" use="required" />
+ <attribute name="type" type="sd:Tjava-types"
+ default="String" use="optional" />
+ <anyAttribute />
+ </extension>
+ </simpleContent>
+ </complexType>
+
+ <simpleType name="Tjava-types">
+ <restriction base="string">
+ <enumeration value="String" />
+ <enumeration value="Long" />
+ <enumeration value="Double" />
+ <enumeration value="Float" />
+ <enumeration value="Integer" />
+ <enumeration value="Byte" />
+ <enumeration value="Character" />
+ <enumeration value="Boolean" />
+ <enumeration value="Short" />
+ </restriction>
+ </simpleType>
+
+ <attribute name="must-understand" type="boolean" default="false">
+ <annotation>
+ <documentation xml:lang="en">
+ This attribute should be used by extensions to documents
+ to require that the document consumer understand the
+ extension.
+ </documentation>
+ </annotation>
+ </attribute>
+ </schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/ws-policy.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/ws-policy.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/ws-policy.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,141 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!--
+
+ W3C XML Schema defined in the Web Services Policy 1.5
+ Framework specification
+
+ http://www.w3.org/TR/ws-policy-framework
+
+ Copyright  2006 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3CÂ Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: ws-policy.xsd,v 1.2 2007/02/14 16:38:37 fsasaki Exp $
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://www.w3.org/ns/ws-policy"
+ xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ targetNamespace="http://www.w3.org/ns/ws-policy" blockDefault="#all"
+ elementFormDefault="qualified">
+
+ <xs:import
+ namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+ schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" />
+
+ <xs:import
+ namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" />
+
+ <xs:import
+ namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/xml.xsd" />
+
+ <!-- Constructs from the Web Services Policy 1.5 Framework -->
+
+ <xs:element name="Policy" >
+ <xs:complexType>
+
+ <xs:complexContent>
+ <xs:extension base="tns:OperatorContentType" >
+ <xs:attribute name="Name" type="xs:anyURI" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="All" type="tns:OperatorContentType" />
+ <xs:element name="ExactlyOne" type="tns:OperatorContentType" />
+
+ <xs:complexType name="OperatorContentType" >
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded" >
+ <xs:element ref="tns:Policy" />
+ <xs:element ref="tns:All" />
+ <xs:element ref="tns:ExactlyOne" />
+
+ <xs:element ref="tns:PolicyReference" />
+ <xs:any namespace="##other" processContents="lax" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="PolicyReference" >
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="URI" type="xs:anyURI" use="required" />
+
+ <xs:attribute name="Digest" type="xs:base64Binary" />
+ <xs:attribute name="DigestAlgorithm"
+ type="xs:anyURI"
+ default="http://www.w3.org/ns/ws-policy/Sha1Exc"
+ />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attribute name="Optional" type="xs:boolean" default="false" />
+ <xs:attribute name="Ignorable" type="xs:boolean" default="false" />
+
+ <!-- Constructs from the Web Services Policy 1.5 Attachment -->
+
+ <xs:attribute name="PolicyURIs" >
+ <xs:simpleType>
+ <xs:list itemType="xs:anyURI" />
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:element name="PolicyAttachment" >
+ <xs:complexType>
+ <xs:sequence>
+
+ <xs:element ref="tns:AppliesTo" />
+ <xs:choice maxOccurs="unbounded" >
+ <xs:element ref="tns:Policy" />
+ <xs:element ref="tns:PolicyReference" />
+ </xs:choice>
+ <!-- omitted only because it causes the content model to be non-determistic
+ <xs:element ref="wsse:Security" minOccurs="0" />
+-->
+ <xs:any namespace="##other"
+ processContents="lax"
+ minOccurs="0"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="AppliesTo" >
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##any"
+ processContents="lax"
+ maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="URI">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:anyURI">
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/xmldsig-core-schema.xsd
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/xmldsig-core-schema.xsd (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/schemas/xmldsig-core-schema.xsd 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--!DOCTYPE schema
+ PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
+ [
+ <!ATTLIST schema
+ xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
+ <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
+ <!ENTITY % p ''>
+ <!ENTITY % s ''>
+ ]-->
+
+<!-- Schema for XML Signatures
+ http://www.w3.org/2000/09/xmldsig#
+ $Revision: 2875 $ on $Date: 2009-02-26 15:14:59 +0100 (Do, 26 Feb 2009) $ by $Author: reagle $
+
+ Copyright 2001 The Internet Society and W3C (Massachusetts Institute
+ of Technology, Institut National de Recherche en Informatique et en
+ Automatique, Keio University). All Rights Reserved.
+ http://www.w3.org/Consortium/Legal/
+
+ This document is governed by the W3C Software License [1] as described
+ in the FAQ [2].
+
+ [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+-->
+
+
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ targetNamespace="http://www.w3.org/2000/09/xmldsig#"
+ version="0.1" elementFormDefault="qualified">
+
+<!-- Basic Types Defined for Signatures -->
+
+<simpleType name="CryptoBinary">
+ <restriction base="base64Binary">
+ </restriction>
+</simpleType>
+
+<!-- Start Signature -->
+
+<element name="Signature" type="ds:SignatureType"/>
+<complexType name="SignatureType">
+ <sequence>
+ <element ref="ds:SignedInfo"/>
+ <element ref="ds:SignatureValue"/>
+ <element ref="ds:KeyInfo" minOccurs="0"/>
+ <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="SignatureValue" type="ds:SignatureValueType"/>
+ <complexType name="SignatureValueType">
+ <simpleContent>
+ <extension base="base64Binary">
+ <attribute name="Id" type="ID" use="optional"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+
+<!-- Start SignedInfo -->
+
+<element name="SignedInfo" type="ds:SignedInfoType"/>
+<complexType name="SignedInfoType">
+ <sequence>
+ <element ref="ds:CanonicalizationMethod"/>
+ <element ref="ds:SignatureMethod"/>
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
+ <complexType name="CanonicalizationMethodType" mixed="true">
+ <sequence>
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- (0,unbounded) elements from (1,1) namespace -->
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+ <element name="SignatureMethod" type="ds:SignatureMethodType"/>
+ <complexType name="SignatureMethodType" mixed="true">
+ <sequence>
+ <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- (0,unbounded) elements from (1,1) external namespace -->
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+<!-- Start Reference -->
+
+<element name="Reference" type="ds:ReferenceType"/>
+<complexType name="ReferenceType">
+ <sequence>
+ <element ref="ds:Transforms" minOccurs="0"/>
+ <element ref="ds:DigestMethod"/>
+ <element ref="ds:DigestValue"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+ <attribute name="URI" type="anyURI" use="optional"/>
+ <attribute name="Type" type="anyURI" use="optional"/>
+</complexType>
+
+ <element name="Transforms" type="ds:TransformsType"/>
+ <complexType name="TransformsType">
+ <sequence>
+ <element ref="ds:Transform" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="Transform" type="ds:TransformType"/>
+ <complexType name="TransformType" mixed="true">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <any namespace="##other" processContents="lax"/>
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
+ <element name="XPath" type="string"/>
+ </choice>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+<!-- End Reference -->
+
+<element name="DigestMethod" type="ds:DigestMethodType"/>
+<complexType name="DigestMethodType" mixed="true">
+ <sequence>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+</complexType>
+
+<element name="DigestValue" type="ds:DigestValueType"/>
+<simpleType name="DigestValueType">
+ <restriction base="base64Binary"/>
+</simpleType>
+
+<!-- End SignedInfo -->
+
+<!-- Start KeyInfo -->
+
+<element name="KeyInfo" type="ds:KeyInfoType"/>
+<complexType name="KeyInfoType" mixed="true">
+ <choice maxOccurs="unbounded">
+ <element ref="ds:KeyName"/>
+ <element ref="ds:KeyValue"/>
+ <element ref="ds:RetrievalMethod"/>
+ <element ref="ds:X509Data"/>
+ <element ref="ds:PGPData"/>
+ <element ref="ds:SPKIData"/>
+ <element ref="ds:MgmtData"/>
+ <any processContents="lax" namespace="##other"/>
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
+ </choice>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="KeyName" type="string"/>
+ <element name="MgmtData" type="string"/>
+
+ <element name="KeyValue" type="ds:KeyValueType"/>
+ <complexType name="KeyValueType" mixed="true">
+ <choice>
+ <element ref="ds:DSAKeyValue"/>
+ <element ref="ds:RSAKeyValue"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+
+ <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
+ <complexType name="RetrievalMethodType">
+ <sequence>
+ <element ref="ds:Transforms" minOccurs="0"/>
+ </sequence>
+ <attribute name="URI" type="anyURI"/>
+ <attribute name="Type" type="anyURI" use="optional"/>
+ </complexType>
+
+<!-- Start X509Data -->
+
+<element name="X509Data" type="ds:X509DataType"/>
+<complexType name="X509DataType">
+ <sequence maxOccurs="unbounded">
+ <choice>
+ <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
+ <element name="X509SKI" type="base64Binary"/>
+ <element name="X509SubjectName" type="string"/>
+ <element name="X509Certificate" type="base64Binary"/>
+ <element name="X509CRL" type="base64Binary"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </sequence>
+</complexType>
+
+<complexType name="X509IssuerSerialType">
+ <sequence>
+ <element name="X509IssuerName" type="string"/>
+ <element name="X509SerialNumber" type="integer"/>
+ </sequence>
+</complexType>
+
+<!-- End X509Data -->
+
+<!-- Begin PGPData -->
+
+<element name="PGPData" type="ds:PGPDataType"/>
+<complexType name="PGPDataType">
+ <choice>
+ <sequence>
+ <element name="PGPKeyID" type="base64Binary"/>
+ <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </sequence>
+ <sequence>
+ <element name="PGPKeyPacket" type="base64Binary"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"
+ maxOccurs="unbounded"/>
+ </sequence>
+ </choice>
+</complexType>
+
+<!-- End PGPData -->
+
+<!-- Begin SPKIData -->
+
+<element name="SPKIData" type="ds:SPKIDataType"/>
+<complexType name="SPKIDataType">
+ <sequence maxOccurs="unbounded">
+ <element name="SPKISexp" type="base64Binary"/>
+ <any namespace="##other" processContents="lax" minOccurs="0"/>
+ </sequence>
+</complexType>
+
+<!-- End SPKIData -->
+
+<!-- End KeyInfo -->
+
+<!-- Start Object (Manifest, SignatureProperty) -->
+
+<element name="Object" type="ds:ObjectType"/>
+<complexType name="ObjectType" mixed="true">
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <any namespace="##any" processContents="lax"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+ <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
+ <attribute name="Encoding" type="anyURI" use="optional"/>
+</complexType>
+
+<element name="Manifest" type="ds:ManifestType"/>
+<complexType name="ManifestType">
+ <sequence>
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+<element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
+<complexType name="SignaturePropertiesType">
+ <sequence>
+ <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Id" type="ID" use="optional"/>
+</complexType>
+
+ <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
+ <complexType name="SignaturePropertyType" mixed="true">
+ <choice maxOccurs="unbounded">
+ <any namespace="##other" processContents="lax"/>
+ <!-- (1,1) elements from (1,unbounded) namespaces -->
+ </choice>
+ <attribute name="Target" type="anyURI" use="required"/>
+ <attribute name="Id" type="ID" use="optional"/>
+ </complexType>
+
+<!-- End Object (Manifest, SignatureProperty) -->
+
+<!-- Start Algorithm Parameters -->
+
+<simpleType name="HMACOutputLengthType">
+ <restriction base="integer"/>
+</simpleType>
+
+<!-- Start KeyValue Element-types -->
+
+<element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
+<complexType name="DSAKeyValueType">
+ <sequence>
+ <sequence minOccurs="0">
+ <element name="P" type="ds:CryptoBinary"/>
+ <element name="Q" type="ds:CryptoBinary"/>
+ </sequence>
+ <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
+ <element name="Y" type="ds:CryptoBinary"/>
+ <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
+ <sequence minOccurs="0">
+ <element name="Seed" type="ds:CryptoBinary"/>
+ <element name="PgenCounter" type="ds:CryptoBinary"/>
+ </sequence>
+ </sequence>
+</complexType>
+
+<element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
+<complexType name="RSAKeyValueType">
+ <sequence>
+ <element name="Modulus" type="ds:CryptoBinary"/>
+ <element name="Exponent" type="ds:CryptoBinary"/>
+ </sequence>
+</complexType>
+
+<!-- End KeyValue Element-types -->
+
+<!-- End Signature -->
+
+</schema>
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformer.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformer.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformer.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,355 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Progress Software.
+ *
+ * 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:
+ * Progress Software - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.stp.dosgi.editors;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.stp.xef.IXMLTransformer;
+import org.jdom.Attribute;
+import org.jdom.Comment;
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.Namespace;
+import org.jdom.filter.Filter;
+import org.jdom.input.SAXBuilder;
+import org.jdom.output.Format;
+import org.jdom.output.XMLOutputter;
+
+public class IntentMapXMLTransformer implements IXMLTransformer {
+ private static final Namespace CXF_POLICY_NAMESPACE =
+ Namespace.getNamespace("http://cxf.apache.org/policy");
+ private static final Namespace SPRING_NAMESPACE =
+ Namespace.getNamespace("http://www.springframework.org/schema/beans");
+ private static final Namespace WSP_NAMESPACE =
+ Namespace.getNamespace("http://www.w3.org/ns/ws-policy");
+ private static final Namespace WSU_NAMESPACE =
+ Namespace.getNamespace("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd");
+
+ private final SAXBuilder builder = new SAXBuilder();
+ private final XMLOutputter formatter = new XMLOutputter(Format.getPrettyFormat());
+ final List<String> providedIntents = new ArrayList<String>();
+
+ public InputStream preEditTransform(InputStream xmlIS) throws IOException {
+ try {
+ providedIntents.clear();
+ return getXML(xmlIS);
+ } catch (Exception e) {
+ IOException ioe = new IOException(e.getMessage());
+ ioe.initCause(e);
+ throw ioe;
+ }
+ }
+
+ private InputStream getXML(InputStream is) throws Exception {
+ Document doc = builder.build(is);
+
+ Element root = doc.getRootElement();
+ Map<String, String> intentNames = getIntentNames(root);
+ markPolicies(intentNames, root);
+ removeIntentMap(root);
+ removeCXFPoliciesList(root);
+ return new ByteArrayInputStream(formatter.outputString(doc).getBytes());
+ }
+
+ @SuppressWarnings("unchecked")
+ private Map<String, String> getIntentNames(Element root) {
+ Map<String, String> intentMap = new HashMap<String, String>();
+ Element el = getIntentMapBean(root);
+ Element intents = getIntentsProperty(el);
+ Element map = intents.getChild("map", SPRING_NAMESPACE);
+ for (Element entry : (List<Element>) map.getChildren("entry", SPRING_NAMESPACE)) {
+ if ("PROVIDED".equals(entry.getAttributeValue("value"))) {
+ providedIntents.add(entry.getAttributeValue("key"));
+ } else {
+ String key = entry.getAttributeValue("key");
+ String valueRef = entry.getAttributeValue("value-ref");
+ if (intentMap.containsKey(valueRef)) {
+ String ref = key + "Ref";
+ intentMap.put(ref, key);
+
+ EmbeddedPolicy policy = findPolicy(root, valueRef);
+ Element copiedPolicy = (Element) policy.policy.clone();
+ copiedPolicy.setAttribute("id", ref);
+ root.addContent(policy.location, copiedPolicy);
+ } else {
+ intentMap.put(valueRef, key);
+ }
+ }
+ }
+
+ return intentMap;
+ }
+
+ @SuppressWarnings("unchecked")
+ static private Element getIntentMapBean(Element root) {
+ for (Element el : (List<Element>) root.getChildren("bean", SPRING_NAMESPACE)) {
+ if ("intentMap".equals(el.getAttributeValue("id"))) {
+ return el;
+ }
+ }
+ return null;
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Element getIntentsProperty(Element base) {
+ for (Element el : (List<Element>) base.getChildren("property", SPRING_NAMESPACE)) {
+ if ("intents".equals(el.getAttributeValue("name"))) {
+ return el;
+ }
+ }
+ return null;
+ }
+
+ private static EmbeddedPolicy findPolicy(Element root, String id) {
+ int i=0;
+ for (Object c : root.getContent()) {
+ i++;
+ if (c instanceof Element) {
+ Element el = (Element) c;
+ if (SPRING_NAMESPACE.equals(el.getNamespace())) {
+ continue;
+ }
+
+ if (CXF_POLICY_NAMESPACE.equals(el.getNamespace())) {
+ continue;
+ }
+
+ if (id.equals(getID(el))) {
+ return new EmbeddedPolicy(el, i);
+ }
+ }
+ }
+ return null;
+ }
+
+ private static void addMarker(Element el, String intentName) {
+ Comment marker = new Comment("#" + intentName + "#");
+ el.addContent(0, marker);
+ }
+
+ static private String getID(Element el) {
+ String wsuID = el.getAttributeValue("Id", WSU_NAMESPACE);
+ if (wsuID != null) {
+ return wsuID;
+ }
+
+ return el.getAttributeValue("id");
+ }
+
+ @SuppressWarnings("unchecked")
+ static private void markPolicies(Map<String, String> intents, Element root) {
+ for (Element el : (List<Element>) root.getChildren()) {
+ if (SPRING_NAMESPACE.equals(el.getNamespace())) {
+ continue;
+ }
+
+ if (CXF_POLICY_NAMESPACE.equals(el.getNamespace())) {
+ handleCXFPolicies(intents, el, root);
+ }
+
+ String intentName = intents.get(getID(el));
+ if (intentName != null) {
+ addMarker(el, intentName);
+
+ // We'll add these back in when serializing back
+ el.removeAttribute("id");
+ el.removeAttribute("Id", WSU_NAMESPACE);
+ }
+ }
+ }
+
+ static private void removeIntentMap(Element root) {
+ Element el = getIntentMapBean(root);
+ el.detach();
+ }
+
+ @SuppressWarnings("unchecked")
+ static private void removeCXFPoliciesList(Element root) {
+ for (Element el : new ArrayList<Element>(root.getChildren("policies", CXF_POLICY_NAMESPACE))) {
+ el.detach();
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ private static void handleCXFPolicies(Map<String, String> intents, Element el, Element root) {
+ String name = intents.get(el.getAttributeValue("id"));
+ if (name != null) {
+ for (Element ref : (List<Element>) el.getChildren("PolicyReference", WSP_NAMESPACE)) {
+ String id = ref.getAttributeValue("URI");
+ if (id == null) {
+ continue;
+ }
+
+ if (id.startsWith("#")) {
+ id = id.substring(1);
+ }
+ EmbeddedPolicy policy = findPolicy(root, id);
+ if (policy != null) {
+ addMarker(policy.policy, name);
+ }
+ }
+ }
+ }
+
+ public InputStream postEditTransform(InputStream xmlIS) throws IOException {
+ try {
+ Document doc = builder.build(xmlIS);
+ Element root = doc.getRootElement();
+ Collection<String> intents = createCXFPolicies(root);
+ createIntentMap(root, intents);
+
+ return new ByteArrayInputStream(formatter.outputString(doc).getBytes());
+ } catch (Exception e) {
+ IOException ioe = new IOException(e.getMessage());
+ ioe.initCause(e);
+ throw ioe;
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Collection<String> createCXFPolicies(Element root) {
+ Map<Element, String> cxfPolicies = new LinkedHashMap<Element, String>();
+
+ for (Element el : (List<Element>) root.getChildren()) {
+ for(Comment c : new ArrayList<Comment>(el.getContent(new CommentFilter()))) {
+ String comment = c.getText().trim();
+ if (comment.startsWith("#") && comment.endsWith("#")) {
+ String intentName = comment.substring(1, comment.length()-1);
+ cxfPolicies.put(el, intentName);
+ c.detach();
+ }
+ }
+ }
+
+ Set<String> intentNames = new LinkedHashSet<String>(cxfPolicies.values());
+ for (String intentName : intentNames) {
+ boolean isWSPolicy = true;
+ Element policyEl = new Element("policies", lookupNamespace(root, CXF_POLICY_NAMESPACE));
+ policyEl.setAttribute("id", intentName + "Ref");
+
+ List<Element> policyElements = reverseGet(cxfPolicies, intentName);
+ for (int i=0; i < policyElements.size(); i++) {
+ Element policy = policyElements.get(i);
+ if (!policy.getNamespace().equals(WSP_NAMESPACE)) {
+ isWSPolicy = false;
+ }
+
+ if (isWSPolicy) {
+ String id = intentName + "Policy";
+ if (policyElements.size() > 1) {
+ id += "_" + (i+1);
+ }
+ policy.setAttribute("Id", id, lookupNamespace(root, WSU_NAMESPACE));
+
+ Element el = new Element("PolicyReference", lookupNamespace(root, WSP_NAMESPACE));
+ el.setAttribute("URI", "#" + id);
+ policyEl.addContent(el);
+ } else {
+ List attrs = policy.getAttributes();
+ attrs.add(0, new Attribute("id", intentName + "Ref"));
+ }
+ }
+
+ if (isWSPolicy) {
+ root.addContent(0, policyEl);
+ }
+ }
+
+ return intentNames;
+ }
+
+ private void createIntentMap(Element root, Collection<String> intents) {
+ Namespace springNS = lookupNamespace(root, SPRING_NAMESPACE);
+ Element beanEl = new Element("bean", springNS);
+ beanEl.setAttribute("id", "intentMap");
+ beanEl.setAttribute("class", "org.apache.cxf.dosgi.dsw.qos.IntentMap");
+
+ Element propEl = new Element("property", springNS);
+ propEl.setAttribute("name", "intents");
+ beanEl.addContent(propEl);
+
+ Element mapEl = new Element("map", springNS);
+ propEl.addContent(mapEl);
+
+ for (String intent : intents) {
+ Element entryEl = new Element("entry", springNS);
+ entryEl.setAttribute("key", intent);
+ entryEl.setAttribute("value-ref", intent + "Ref");
+ mapEl.addContent(entryEl);
+ }
+
+ for (String intent : providedIntents) {
+ Element entryEl = new Element("entry", springNS);
+ entryEl.setAttribute("key", intent);
+ entryEl.setAttribute("value", "PROVIDED");
+ mapEl.addContent(entryEl);
+ }
+
+ root.addContent(0, beanEl);
+ }
+
+ private static Namespace lookupNamespace(Element el, Namespace ns) {
+ return lookupNamespace(el, ns.getURI());
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Namespace lookupNamespace(Element el, String nsURI) {
+ if (el.getNamespace().getURI().equals(nsURI)) {
+ return el.getNamespace();
+ }
+
+ for (Namespace ns : (List<Namespace>) el.getAdditionalNamespaces()) {
+ if (ns.getURI().equals(nsURI)) {
+ return ns;
+ }
+ }
+
+ return null;
+ }
+
+ private static List<Element> reverseGet(Map<Element, String> policies, String value) {
+ List<Element> elements = new ArrayList<Element>();
+ for (Map.Entry<Element, String> entry : policies.entrySet()) {
+ if (value.equals(entry.getValue())) {
+ elements.add(entry.getKey());
+ }
+ }
+
+ return elements;
+ }
+
+ @SuppressWarnings("serial")
+ private static class CommentFilter implements Filter {
+ public boolean matches(Object content) {
+ return content instanceof Comment;
+ }
+ }
+
+ private static class EmbeddedPolicy {
+ private final Element policy;
+ private final int location;
+ private EmbeddedPolicy(Element p, int l) {
+ policy = p;
+ location = l;
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentSelectionDialog.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentSelectionDialog.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentSelectionDialog.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,457 @@
+/*******************************************************************************
+ * Copyright (c) 2006-2009 IONA Technologies 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:
+ * IONA Technologies - initial API and implementation
+ * Progress Software
+ *******************************************************************************/
+package org.eclipse.stp.dosgi.editors;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.viewers.DoubleClickEvent;
+import org.eclipse.jface.viewers.IColorProvider;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.stp.ui.xef.XefPlugin;
+import org.eclipse.stp.ui.xef.editor.ISchemaSelector;
+import org.eclipse.stp.ui.xef.editor.SelectionCategory;
+import org.eclipse.stp.ui.xef.editor.ShadowEntry;
+import org.eclipse.stp.ui.xef.schema.SchemaElement;
+import org.eclipse.stp.ui.xef.schema.SchemaRegistry;
+import org.eclipse.stp.xef.ISchemaProviderExt;
+import org.eclipse.stp.xef.IShadowProvider;
+import org.eclipse.stp.xef.XMLInstanceElement;
+import org.eclipse.stp.xef.XMLSnippet;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.swt.widgets.ToolBar;
+import org.eclipse.swt.widgets.ToolItem;
+import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
+import org.eclipse.ui.dialogs.ISelectionStatusValidator;
+import org.jdom.output.Format;
+import org.jdom.output.XMLOutputter;
+
+public class IntentSelectionDialog extends ElementTreeSelectionDialog implements ISchemaSelector {
+ public static final String OTHER_CATEGORY_NAME = "Uncategorized";
+
+ Map<String, SelectionCategory> categories = new TreeMap<String, SelectionCategory>(new Comparator<String>() {
+ // puts "Other" and "Predefined" at the end of the (otherwise sorted) list
+ public int compare(String o1, String o2) {
+ if (OTHER_CATEGORY_NAME.equals(o1)) {
+ return OTHER_CATEGORY_NAME.equals(o2) ? 0 : 1;
+ } else {
+ return o1.compareTo(o2);
+ }
+ }
+ });
+ ISchemaProviderExt schemaProvider;
+ IShadowProvider [] shadowProviders;
+ private final ContentProviderDelegate contentProviderDelegate;
+ private boolean initialized = false;
+
+ private String intentName;
+ private Text intentNameText;
+
+ public IntentSelectionDialog() {
+ this(new ContentProviderDelegate());
+ }
+
+ private IntentSelectionDialog(ContentProviderDelegate cp) {
+ super(null, getLabelProvider(), cp);
+ contentProviderDelegate = cp;
+ }
+
+ public void init(Shell parent, ISchemaProviderExt sp, IShadowProvider... shadowed) {
+ setParentShell(parent);
+ contentProviderDelegate.setDelegate(getContentProvider());
+
+ setTitle("Create Intent");
+
+ schemaProvider = sp;
+ shadowProviders = shadowed;
+ setInput(categories);
+
+ setMessage("Available policies:");
+ setAllowMultiple(true);
+ setDoubleClickSelects(false);
+ setEmptyListMessage("No policy found that satisfies the criteria");
+ setStatusLineAboveButtons(true);
+
+ setValidator(new ISelectionStatusValidator() {
+ public IStatus validate(Object[] selection) {
+ intentName = intentNameText.getText();
+ if (intentName.length() < 1) {
+ return new Status(IStatus.ERROR, XefPlugin.getDefault().getBundle().getSymbolicName(),
+ 0, "Please enter a name for the Intent", null);
+ }
+
+ if (selection.length > 0) {
+ if (selection[0] instanceof SchemaElement) {
+ String doc = ((SchemaElement) selection[0]).getDocShort();
+ if (doc == null) {
+ doc = "";
+ }
+
+ return new Status(IStatus.INFO, XefPlugin.getDefault().getBundle().getSymbolicName(),
+ 0, doc, null);
+ } else if (selection[0] instanceof XMLSnippet) {
+ return Status.OK_STATUS;
+ }
+ }
+ return new Status(IStatus.ERROR, XefPlugin.getDefault().getBundle().getSymbolicName(),
+ 1, "Please select one or more policies", null);
+ }
+ });
+ }
+
+ @Override
+ protected Point getInitialSize() {
+ Point result = super.getInitialSize();
+ result.x = (int) (result.x * 1.7);
+ return result;
+ }
+
+ @Override
+ protected Label createMessageArea(Composite composite) {
+ Composite titleComposite = new Composite(composite, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
+ layout.marginBottom = 0;
+ layout.marginTop = 0;
+ layout.marginLeft = 0;
+ layout.marginRight = 0;
+ layout.marginHeight = 0;
+ layout.marginWidth =0;
+ titleComposite.setLayout(layout);
+ GridData cgd = new GridData();
+ cgd.grabExcessHorizontalSpace = true;
+ cgd.horizontalAlignment = SWT.FILL;
+ titleComposite.setLayoutData(cgd);
+
+ Composite intentComposite = new Composite(titleComposite, SWT.NONE);
+ intentComposite.setLayout(new GridLayout(2, false));
+
+ Label intentNameLB = new Label(intentComposite, SWT.NONE);
+ intentNameLB.setText("Intent name:");
+ intentNameText = new Text(intentComposite, SWT.BORDER);
+ GridData gd0 = new GridData();
+ gd0.grabExcessHorizontalSpace = true;
+ gd0.minimumWidth = 250;
+ intentNameText.setLayoutData(gd0);
+
+ intentNameText.addModifyListener(new ModifyListener(){
+ public void modifyText(ModifyEvent e) {
+ updateOKStatus();
+ }
+ });
+
+ Composite toolbarComposite = new Composite(titleComposite, SWT.NONE);
+ GridLayout toolbarGrid = new GridLayout();
+ toolbarGrid.numColumns = 1;
+ toolbarComposite.setLayout(toolbarGrid);
+ GridData gd = new GridData();
+ gd.grabExcessHorizontalSpace = false;
+ gd.horizontalAlignment = SWT.END;
+ toolbarComposite.setLayoutData(gd);
+
+ ToolBar tb = new ToolBar(toolbarComposite, SWT.FLAT);
+ tb.setBackground(toolbarComposite.getBackground());
+ tb.setForeground(toolbarComposite.getForeground());
+
+ ToolItem ti = new ToolItem(tb, SWT.PUSH);
+ ti.setToolTipText("Refresh");
+ ti.setImage(XefPlugin.getDefault().getImageRegistry().get(XefPlugin.IMG_REFRESH));
+ ti.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ refreshContents();
+ }
+ });
+
+ Label message = super.createMessageArea(titleComposite);
+ gd = new GridData();
+ gd.grabExcessHorizontalSpace = true;
+ gd.horizontalAlignment = SWT.BEGINNING;
+ gd.horizontalIndent = 3;
+ message.setLayoutData(gd);
+ return message;
+ }
+
+ @Override
+ protected TreeViewer createTreeViewer(Composite parent) {
+ TreeViewer tv = super.createTreeViewer(parent);
+ tv.addDoubleClickListener(new IDoubleClickListener() {
+ public void doubleClick(DoubleClickEvent event) {
+ treeDoubleClicked(event);
+ }
+ });
+ return tv;
+ }
+
+ void treeDoubleClicked(DoubleClickEvent event) {
+ ISelection sel = event.getSelection();
+ if (sel instanceof IStructuredSelection) {
+ Object item = ((IStructuredSelection) sel).getFirstElement();
+ if (getOkButton().isEnabled() && !(item instanceof SelectionCategory)) {
+ okPressed();
+ }
+ }
+ }
+
+ @Override
+ public int open() {
+ fillContents();
+ return super.open();
+ }
+
+ private void fillContents() {
+ if (initialized) {
+ return;
+ }
+ initialized = true;
+
+ // Uncategorized policy templates appear under this category.
+ // The category is only added to the view *if* there are policies
+ // that are uncategorized, i.e. there is never an *empty* category
+ // in the view.
+ SelectionCategory otherCategory = null;
+
+ categories.clear();
+ SchemaRegistry sr = XefPlugin.getDefault().getSchemaRegistry();
+ for (String ns : schemaProvider.listSchemaNamespaces(null)) {
+ List<SchemaElement> elements = null;
+ try {
+ if (ns == null) {
+ continue;
+ } else {
+ elements = sr.resolveSchemaFromXML(
+ schemaProvider.getSchema(ns), true, schemaProvider);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ if (elements == null) {
+ continue;
+ }
+
+ List<SchemaElement> allowed = new ArrayList<SchemaElement>(elements.size());
+ Collection<String> allowedNames = schemaProvider.listElements(ns);
+ for (SchemaElement el : elements) {
+ if (allowedNames.contains(el.getName())) {
+ allowed.add(el);
+ }
+ }
+
+ for (SchemaElement se : allowed) {
+ String categoryPath = se.getCategory();
+ SelectionCategory dialogCategory = null;
+ if (categoryPath != null && categoryPath.length() > 0) {
+ dialogCategory = categories.get(categoryPath);
+ if (dialogCategory == null) {
+ dialogCategory = new SelectionCategory(categoryPath);
+ categories.put(categoryPath, dialogCategory);
+ }
+ } else {
+ if (otherCategory == null) {
+ otherCategory = new SelectionCategory(OTHER_CATEGORY_NAME);
+ categories.put(OTHER_CATEGORY_NAME, otherCategory);
+ }
+ dialogCategory = otherCategory;
+ }
+ dialogCategory.addEntry(se);
+ }
+ }
+
+ for (IShadowProvider shp : shadowProviders) {
+ for (String category : shp.getShadowCategories()) {
+ SelectionCategory cat = categories.get(category);
+ if (cat == null) {
+ cat = new SelectionCategory(category);
+ categories.put(category, cat);
+ }
+
+ for (Object shadowed : shp.getShadowed(category)) {
+ if (shadowed instanceof SchemaElement) {
+ cat.addEntry(new ShadowEntry(((SchemaElement) shadowed).getDisplayName()
+ + " (" + shp.getReason(shadowed) + ")", false));
+ } else if (shadowed instanceof XMLSnippet) {
+ cat.addEntry(new ShadowEntry(((XMLSnippet) shadowed).toString(), true));
+ }
+ }
+ }
+ }
+ }
+
+ private void refreshContents() {
+ initialized = false;
+ XefPlugin.getDefault().getSchemaRegistry().clear();
+ schemaProvider.refresh();
+ fillContents();
+ setInput(categories);
+ getTreeViewer().setInput(categories);
+ }
+
+
+ public void setSchemaProvider(ISchemaProviderExt sp) {
+ schemaProvider = sp;
+ initialized = false;
+ }
+
+ public void setShadowProviders(IShadowProvider... s) {
+ shadowProviders = s;
+ initialized = false;
+ }
+
+ public Object getSelection() {
+ StringBuilder snippetXML = new StringBuilder();
+ for (Object r : getResult()) {
+ if (r instanceof SchemaElement) {
+ XMLInstanceElement ie = new XMLInstanceElement((SchemaElement) r);
+ ie.addMinimalSubElements();
+
+ snippetXML.append(
+ new XMLOutputter(Format.getPrettyFormat()).outputString(ie.getJDOMElement()));
+ }
+ }
+
+ XMLSnippet snippet = new XMLSnippet(intentName, snippetXML.toString());
+ return snippet;
+ }
+
+ private static ILabelProvider getLabelProvider() {
+ class CatalogLabelProvider implements ILabelProvider, IColorProvider {
+ public Image getImage(Object element) {
+ if (element instanceof SelectionCategory) {
+ return XefPlugin.getDefault().getImageRegistry().get(XefPlugin.IMG_GROUP);
+ } else if (element instanceof ShadowEntry) {
+ return XefPlugin.getDefault().getImageRegistry().get(XefPlugin.IMG_INSTANCE_GREY);
+ } else {
+ return XefPlugin.getDefault().getImageRegistry().get(XefPlugin.IMG_INSTANCE);
+ }
+ }
+
+ public String getText(Object element) {
+ return element.toString();
+ }
+
+ public boolean isLabelProperty(Object element, String property) {
+ return false;
+ }
+
+ public void addListener(ILabelProviderListener listener) {}
+ public void dispose() {}
+ public void removeListener(ILabelProviderListener listener) {}
+
+ public Color getBackground(Object element) {
+ return null;
+ }
+
+ public Color getForeground(Object element) {
+ if (element instanceof ShadowEntry) {
+ return Display.getDefault().getSystemColor(SWT.COLOR_GRAY);
+ } else {
+ return null;
+ }
+ }
+ };
+
+ return new CatalogLabelProvider();
+ }
+
+ private ITreeContentProvider getContentProvider() {
+ return new ITreeContentProvider() {
+
+ public Object[] getChildren(Object parentElement) {
+ if (parentElement instanceof SelectionCategory) {
+ return ((SelectionCategory) parentElement).getEntries().toArray();
+ } else {
+ return new Object [] {};
+ }
+ }
+
+ public Object getParent(Object element) {
+ return null;
+ }
+
+ public boolean hasChildren(Object element) {
+ return element instanceof SelectionCategory;
+ }
+
+ @SuppressWarnings("unchecked")
+ public Object[] getElements(Object inputElement) {
+ if (inputElement instanceof Map) {
+ return ((Map) inputElement).values().toArray();
+ } else {
+ return new Object []{};
+ }
+ }
+
+ public void dispose() {}
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}
+ };
+ }
+
+ private static class ContentProviderDelegate implements ITreeContentProvider {
+ private ITreeContentProvider delegate;
+
+ public void setDelegate(ITreeContentProvider d) {
+ delegate = d;
+ }
+
+ public void dispose() {
+ delegate.dispose();
+ }
+
+ public Object[] getChildren(Object parentElement) {
+ return delegate.getChildren(parentElement);
+ }
+
+ public Object[] getElements(Object inputElement) {
+ return delegate.getElements(inputElement);
+ }
+
+ public Object getParent(Object element) {
+ return delegate.getParent(element);
+ }
+
+ public boolean hasChildren(Object element) {
+ return delegate.hasChildren(element);
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ delegate.inputChanged(viewer, oldInput, newInput);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentSelectionDialog.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentsEditorForRI.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentsEditorForRI.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentsEditorForRI.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Progress Software.
+ *
+ * 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:
+ * Progress Software - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.stp.dosgi.editors;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.stp.ui.xef.editor.Setting;
+import org.eclipse.stp.ui.xef.editor.XMLProviderEditorInput;
+import org.eclipse.stp.ui.xef.editor.XefEditor;
+import org.eclipse.stp.xef.ISchemaProvider;
+import org.eclipse.stp.xef.IXMLProvider;
+import org.eclipse.stp.xef.URLSchemaProvider;
+import org.eclipse.stp.xef.XPathXMLProvider;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.PartInitException;
+
+public class IntentsEditorForRI extends XefEditor {
+ @Override
+ public void init(IEditorSite site, IEditorInput input) throws PartInitException {
+ super.init(site, createXMLProviderEditorInput(input));
+ }
+
+ private static XMLProviderEditorInput createXMLProviderEditorInput(IEditorInput input) {
+ if (!(input instanceof IFileEditorInput)) {
+ throw new RuntimeException("Editor input should implement IFileEditorInput: " + input);
+ }
+
+ try {
+ IFileEditorInput fei = (IFileEditorInput) input;
+ IFile file = fei.getFile();
+
+ IXMLProvider xmlProvider = new XPathXMLProvider(file, "/*", "{http://www.springframework.org/schema/beans}beans");
+ URL schema1 = IntentsEditorForRI.class.getResource("/schemas/core.xsd");
+ URL schema2 = IntentsEditorForRI.class.getResource("/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd");
+ URL schema3 = IntentsEditorForRI.class.getResource("/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd");
+ URL schema4 = IntentsEditorForRI.class.getResource("/schemas/policy.xsd");
+ URL schema5 = IntentsEditorForRI.class.getResource("/schemas/soap.xsd");
+ URL schema6 = IntentsEditorForRI.class.getResource("/schemas/ws-addr-metadata.xsd");
+ URL schema7 = IntentsEditorForRI.class.getResource("/schemas/ws-policy.xsd");
+ URL schema8 = IntentsEditorForRI.class.getResource("/schemas/xmldsig-core-schema.xsd");
+ ISchemaProvider schemaProvider = new URLSchemaProvider(new URL [] {schema1, schema2, schema3, schema4, schema5, schema6, schema7, schema8});
+ Map<Setting, String> settings = new HashMap<Setting, String>();
+
+ String tooltip = file.getFullPath().toString();
+ if (tooltip.startsWith("/") && tooltip.length() > 1) {
+ tooltip = tooltip.substring(1);
+ }
+
+ settings.put(Setting.TITLE, file.getName());
+ settings.put(Setting.TOOLTIP, tooltip);
+ settings.put(Setting.HEADING, "Intents");
+ settings.put(Setting.SUB_HEADING, "Defined Intents");
+ settings.put(Setting.ADD_BUTTON_LABEL, "Add Intent");
+ settings.put(Setting.DETAILS_HEADING, "Details");
+ settings.put(Setting.TAB_LABEL, "Intents");
+ settings.put(Setting.POLICIES_UNIQUE, "false");
+ settings.put(Setting.SCHEMA_SELECTOR, "org.eclipse.stp.dosgi.editors.ri.intentMapSD");
+ settings.put(Setting.XML_TRANSFORMER, "org.eclipse.stp.dosgi.editors.intentMapXMLTransformer");
+
+ return new XMLProviderEditorInput(settings, file.getProject(), xmlProvider, schemaProvider, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/IntentsEditorForRI.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/RemoteServicesEditor.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/RemoteServicesEditor.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/RemoteServicesEditor.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,72 @@
+package org.eclipse.stp.dosgi.editors;
+
+import java.io.ByteArrayInputStream;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.stp.ui.xef.editor.Setting;
+import org.eclipse.stp.ui.xef.editor.XMLProviderEditorInput;
+import org.eclipse.stp.ui.xef.editor.XefEditor;
+import org.eclipse.stp.xef.ISchemaProvider;
+import org.eclipse.stp.xef.SimpleSchemaProvider;
+import org.eclipse.stp.xef.XPathXMLProvider;
+import org.eclipse.stp.xef.util.InputStreamHelper;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.PartInitException;
+
+public class RemoteServicesEditor extends XefEditor {
+ private static final String EMPTY_FILE_CONTENTS =
+ "<service-descriptions xmlns='http://www.osgi.org/xmlns/sd/v1.0.0' />";
+
+ @Override
+ public void init(IEditorSite site, IEditorInput input) throws PartInitException {
+ super.init(site, createXMLProviderEditorInput(input));
+ }
+
+ private static XMLProviderEditorInput createXMLProviderEditorInput(IEditorInput input) {
+ if (!(input instanceof IFileEditorInput)) {
+ throw new RuntimeException("Editor input should implement IFileEditorInput: " + input);
+ }
+
+ try {
+ IFileEditorInput fei = (IFileEditorInput) input;
+ IFile file = fei.getFile();
+ if (!file.exists() ||
+ file.getRawLocation().toFile().length() == 0) {
+ file.setContents(new ByteArrayInputStream(EMPTY_FILE_CONTENTS.getBytes()), false, false, new NullProgressMonitor());
+ file.getParent().refreshLocal(IContainer.DEPTH_ZERO, new NullProgressMonitor());
+ }
+
+ XPathXMLProvider xmlProvider = new XPathXMLProvider(file, "/*", "{http://www.osgi.org/xmlns/sd/v1.0.0}service-descriptions");
+ URL schemaURL = RemoteServicesEditor.class.getResource("/schemas/service-descriptions.xsd");
+ String schema = new String(InputStreamHelper.drain(schemaURL.openStream()));
+ ISchemaProvider schemaProvider2 = new SimpleSchemaProvider("http://www.osgi.org/xmlns/sd/v1.0.0", schema);
+ Map<Setting, String> settings = new HashMap<Setting, String>();
+
+ String tooltip = file.getFullPath().toString();
+ if (tooltip.startsWith("/") && tooltip.length() > 1) {
+ tooltip = tooltip.substring(1);
+ }
+
+ settings.put(Setting.TITLE, file.getName());
+ settings.put(Setting.TOOLTIP, tooltip);
+ settings.put(Setting.HEADING, "Remote OSGi Services");
+ settings.put(Setting.SUB_HEADING, "Declared Remote Services");
+ settings.put(Setting.ADD_BUTTON_LABEL, "Add Entry");
+ settings.put(Setting.DETAILS_HEADING, "Details");
+ settings.put(Setting.TAB_LABEL, "Remote Services");
+ settings.put(Setting.POLICIES_UNIQUE, "false");
+ settings.put(Setting.SCHEMA_SELECTOR, "org.eclipse.stp.dosgi.serviceDescriptionSD");
+
+ return new XMLProviderEditorInput(settings, file.getProject(), xmlProvider, schemaProvider2, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/RemoteServicesEditor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/ServiceDescriptionSchemaProvider.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/ServiceDescriptionSchemaProvider.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/ServiceDescriptionSchemaProvider.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,49 @@
+package org.eclipse.stp.dosgi.editors;
+
+import java.util.List;
+
+import org.eclipse.jface.window.Window;
+import org.eclipse.stp.ui.xef.XefPlugin;
+import org.eclipse.stp.ui.xef.editor.ISchemaSelector;
+import org.eclipse.stp.ui.xef.schema.SchemaElement;
+import org.eclipse.stp.xef.ISchemaProviderExt;
+import org.eclipse.stp.xef.IShadowProvider;
+import org.eclipse.swt.widgets.Shell;
+
+public class ServiceDescriptionSchemaProvider implements ISchemaSelector {
+ ISchemaProviderExt schemaProvider;
+
+ public void init(Shell parentShell, ISchemaProviderExt sp, IShadowProvider... shadowProviders) {
+ schemaProvider = sp;
+ }
+
+ public void setBlockOnOpen(boolean shouldBlock) {}
+
+ public int open() {
+ return Window.OK;
+ }
+
+ public Object getSelection() {
+ try {
+ List<SchemaElement> elements = XefPlugin.getDefault().getSchemaRegistry().resolveSchemaFromXML(
+ schemaProvider.getSchema(schemaProvider.listSchemaNamespaces(null).iterator().next()),
+ true, true, schemaProvider);
+
+ String namespace = "http://www.osgi.org/xmlns/sd/v1.0.0";
+ String name = "service-description";
+ for (SchemaElement el : elements) {
+ if (namespace.equals(el.getNameSpace()) && name.equals(el.getName())) {
+ return el;
+ }
+ }
+ return null;
+ } catch (Exception e) {
+ // TODO Log appropriately
+ throw new RuntimeException(e);
+ }
+ }
+
+ public boolean close() {
+ return true;
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors/src/org/eclipse/stp/dosgi/editors/ServiceDescriptionSchemaProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.classpath
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.classpath (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.classpath 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.dosgi.editors.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/META-INF/MANIFEST.MF
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/META-INF/MANIFEST.MF (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/META-INF/MANIFEST.MF 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test fragment for org.eclipse.stp.dosgi.editors
+Bundle-SymbolicName: org.eclipse.stp.dosgi.editors.test
+Bundle-Version: 1.0.0
+Fragment-Host: org.eclipse.stp.dosgi.editors;bundle-version="0.0.1.qualifier"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: Eclipse
+Require-Bundle: org.junit
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformerTest.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformerTest.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformerTest.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,69 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Progress Software.
+ *
+ * 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:
+ * Progress Software - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.stp.dosgi.editors;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+
+import org.eclipse.stp.xef.util.InputStreamHelper;
+import org.jdom.Document;
+import org.jdom.JDOMException;
+import org.jdom.input.SAXBuilder;
+import org.jdom.output.Format;
+import org.jdom.output.XMLOutputter;
+
+public class IntentMapXMLTransformerTest extends TestCase {
+ public void testConvertToXEFEditorFormat() throws Exception {
+ InputStream is = getClass().getResourceAsStream("test-intent-map1.xml");
+
+ String expected = new String(
+ InputStreamHelper.drain(getClass().getResourceAsStream("test-intent-xef1.xml")));
+ IntentMapXMLTransformer provider = new IntentMapXMLTransformer();
+ assertEquals("Precondition failed", 0, provider.providedIntents.size());
+ assertEquals(normXML(expected), normXML(provider.preEditTransform(is)));
+ assertEquals(1, provider.providedIntents.size());
+ assertTrue(provider.providedIntents.contains("HTTP"));
+ }
+
+ public void testConvertFromXEFEditorFormat() throws Exception {
+ IntentMapXMLTransformer provider = new IntentMapXMLTransformer();
+ provider.providedIntents.add("HTTP");
+
+ InputStream input = getClass().getResourceAsStream("test-intent-xef1.xml");
+ String expected = new String(
+ InputStreamHelper.drain(getClass().getResourceAsStream("test-intent-map1-result.xml")));
+ String result = new String(InputStreamHelper.drain(provider.postEditTransform(input)));
+ assertEquals(normXML(expected), normXML(result.toString()));
+ }
+
+ private static String normXML(InputStream is) throws JDOMException, IOException {
+ try {
+ return normXML(new String(InputStreamHelper.drain(is)));
+ } finally {
+ is.close();
+ }
+ }
+
+ private static String normXML(String s) throws JDOMException, IOException {
+ String s3 = stripProlog(s);
+ Document d = new SAXBuilder().build(new ByteArrayInputStream(s3.getBytes()));
+ XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
+ return outputter.outputString(d);
+ }
+
+ private static String stripProlog(String s) {
+ return s.replaceAll("<\\?(.*?)\\?>", "");
+ }
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/IntentMapXMLTransformerTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1-result.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1-result.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1-result.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:p="http://cxf.apache.org/policy"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ xmlns:core="http://cxf.apache.org/core"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xmlns:soap="http://cxf.apache.org/bindings/soap"
+ xsi:schemaLocation="
+ http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
+ http://www.w3.org/ns/ws-policy http://www.w3.org/2007/02/ws-policy.xsd
+ http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="intentMap" class="org.apache.cxf.dosgi.dsw.qos.IntentMap">
+ <property name="intents">
+ <map>
+ <entry key="decoupled" value-ref="decoupledRef"/>
+ <entry key="logging" value-ref="loggingRef"/>
+ <entry key="SOAP" value-ref="SOAPRef"/>
+ <entry key="SOAP.1_1" value-ref="SOAP.1_1Ref"/>
+ <entry key="SOAP.1_2" value-ref="SOAP.1_2Ref"/>
+ <entry key="HTTP" value="PROVIDED"/>
+ </map>
+ </property>
+ </bean>
+
+ <p:policies id="decoupledRef">
+ <wsp:PolicyReference URI="#decoupledPolicy_1"/>
+ <wsp:PolicyReference URI="#decoupledPolicy_2"/>
+ </p:policies>
+
+ <wsp:Policy wsu:Id="decoupledPolicy_1">
+ <wsp:ExactlyOne>
+ <http:client DecoupledEndpoint="http://localhost:9970/decoupled_endpoint"/>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+
+ <wsp:Policy wsu:Id="decoupledPolicy_2"
+ xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
+ <wsam:Addressing>
+ <wsp:Policy />
+ </wsam:Addressing>
+ </wsp:Policy>
+
+ <core:logging id="loggingRef"/>
+
+ <soap:soapBinding id="SOAPRef" version="1.1"/>
+ <soap:soapBinding id="SOAP.1_1Ref" version="1.1"/>
+ <soap:soapBinding id="SOAP.1_2Ref" version="1.2"/>
+
+</beans>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1-result.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:p="http://cxf.apache.org/policy"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ xmlns:core="http://cxf.apache.org/core"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xmlns:soap="http://cxf.apache.org/bindings/soap"
+ xsi:schemaLocation="
+ http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
+ http://www.w3.org/ns/ws-policy http://www.w3.org/2007/02/ws-policy.xsd
+ http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="intentMap" class="org.apache.cxf.dosgi.dsw.qos.IntentMap">
+ <property name="intents">
+ <map>
+ <entry key="decoupled" value-ref="decoupledAddressing"/>
+ <entry key="logging" value-ref="messageLogging"/>
+ <entry key="SOAP" value-ref="soap11Binding"/>
+ <entry key="SOAP.1_1" value-ref="soap11Binding"/>
+ <entry key="SOAP.1_2" value-ref="soap12Binding"/>
+ <entry key="HTTP" value="PROVIDED"/>
+ </map>
+ </property>
+ </bean>
+
+ <p:policies id="decoupledAddressing">
+ <wsp:PolicyReference URI="#DecoupledPolicy"/>
+ <wsp:PolicyReference URI="#AddressingPolicy"/>
+ </p:policies>
+
+ <wsp:Policy wsu:Id="DecoupledPolicy">
+ <wsp:ExactlyOne>
+ <http:client DecoupledEndpoint="http://localhost:9970/decoupled_endpoint"/>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+
+ <wsp:Policy wsu:Id="AddressingPolicy"
+ xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
+ <wsam:Addressing>
+ <wsp:Policy />
+ </wsam:Addressing>
+ </wsp:Policy>
+
+ <core:logging id="messageLogging"/>
+
+ <soap:soapBinding id="soap11Binding" version="1.1"/>
+ <soap:soapBinding id="soap12Binding" version="1.2"/>
+
+</beans>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-map1.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-xef1.xml
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-xef1.xml (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-xef1.xml 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:p="http://cxf.apache.org/policy"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+ xmlns:core="http://cxf.apache.org/core"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xmlns:soap="http://cxf.apache.org/bindings/soap"
+ xsi:schemaLocation="
+ http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
+ http://www.w3.org/ns/ws-policy http://www.w3.org/2007/02/ws-policy.xsd
+ http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <wsp:Policy wsu:Id="DecoupledPolicy">
+ <!--#decoupled#-->
+ <wsp:ExactlyOne>
+ <http:client DecoupledEndpoint="http://localhost:9970/decoupled_endpoint"/>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+
+ <wsp:Policy wsu:Id="AddressingPolicy"
+ xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
+ <!--#decoupled#-->
+ <wsam:Addressing>
+ <wsp:Policy />
+ </wsam:Addressing>
+ </wsp:Policy>
+
+ <core:logging>
+ <!--#logging#-->
+ </core:logging>
+
+ <soap:soapBinding version="1.1">
+ <!--#SOAP#-->
+ </soap:soapBinding>
+
+ <soap:soapBinding version="1.1">
+ <!--#SOAP.1_1#-->
+ </soap:soapBinding>
+
+ <soap:soapBinding version="1.2">
+ <!--#SOAP.1_2#-->
+ </soap:soapBinding>
+
+</beans>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.dosgi.editors.test/src/org/eclipse/stp/dosgi/editors/test-intent-xef1.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.classpath
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.classpath (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.classpath 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.project
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.project (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.project 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.stp.policy.common</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/META-INF/MANIFEST.MF
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/META-INF/MANIFEST.MF (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/META-INF/MANIFEST.MF 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.stp.policy.common
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: %pluginProvider
+Export-Package: org.eclipse.stp.policy.common.editors,
+ org.eclipse.stp.xef,
+ org.eclipse.stp.xef.util
+Require-Bundle: org.eclipse.core.resources,
+ org.eclipse.core.runtime,
+ org.eclipse.ui
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/about.html
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/about.html (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/about.html 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 27, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/about.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/build.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/build.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/build.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ about.html
+src.includes = about.html
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/plugin.properties
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/plugin.properties (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/plugin.properties 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,2 @@
+pluginName=Policy Editor / XEF Common Interfaces Plug-in (Incubation)
+pluginProvider=Eclipse STP
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailCallback.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailCallback.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailCallback.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2006 Deutsche Post World Net
+ * Deutsche Post AG, SOPSOLUTIONS
+ * All rights reserved.
+ */
+package org.eclipse.stp.policy.common.editors;
+
+import java.io.InputStream;
+
+/**
+ * <b>This interface represents the callbacks of detail policy editor</b><br>
+ * @version $Revision: 1.1 $
+ */
+public interface IPolicyDetailCallback {
+
+ /**
+ * Retrieve context data.
+ *
+ * @param ctxID Context identifier.
+ * @return Context data.
+ */
+ Object getData(String ctxID);
+
+ /**
+ * Called on save event.
+ *
+ * @param source Input stream containing updated policy part.
+ * @throws Exception if any error occurs.
+ */
+ void onSave(final InputStream source) throws Exception;
+
+ /**
+ * Called on close event.
+ */
+ void onClose();
+
+ /**
+ * Called on error event.
+ */
+ void onError();
+
+}
Property changes on: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailCallback.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailEditorInput.java
===================================================================
--- org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailEditorInput.java (rev 0)
+++ org.eclipse.stp.policy/tags/3.6M2/org.eclipse.stp.policy.common/src/org/eclipse/stp/policy/common/editors/IPolicyDetailEditorInput.java 2009-09-23 17:35:38 UTC (rev 2933)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2006 Deutsche Post World Net
+ * Deutsche Post AG, SOPSOLUTIONS
+ * All rights reserved.
+ */
+package org.eclipse.stp.policy.common.editors;
+
+import java.io.InputStream;
+import java.util.Map;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.stp.xef.ISchemaProvider;
+import org.eclipse.ui.IEditorInput;
+
+/**
+ * <b>This interface provides input for detail policy editor</b><br>
+ */
+public interface IPolicyDetailEditorInput extends IEditorInput {
+
+ /**
+ * Retrieve the input stream containing policy part.
+ *
+ * @return Input stream.
+ */