This project has retired. For details please refer to its Attic page.
Uddiuddiorgcategorizationnodes xref
View Javadoc
1   /*
2    * Copyright 2014 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.juddi.validation.vsv;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  /**
22   * UDDI provides a mechanism that may be used by publishers to categorize
23   * businessEntity and tModel elements according to any number of category
24   * systems and by inquirers to discover entities so categorized. See Appendix F
25   * Using Categorization for more information.
26   *
27   * This section defines a tModel used to categorize a businessEntity as
28   * representing a UDDI node in the registry in which the businessEntity appears.
29   * See Section 6.2.2.1 Normative Modeling of Node Business Entity.
30   *
31   * 11.1.3.2 Design Goals Each UDDI registry can be comprised of a number of
32   * nodes. Each UDDI node has a special businessEntity associated with it, called
33   * its Node Business Entity. The businessService elements in this businessEntity
34   * represent Web services that relate to the node's role in the UDDI registry.
35   *
36   * The uddi-org:nodes category system is designed to allow reliable discovery of
37   * the Node Business Entity structures for nodes in a UDDI registry so that UDDI
38   * clients can locate the businessService structures associated with the
39   * operation of the registry.
40   *
41   * Checking of references to this value set consists of ensuring that the
42   * publisher is the UDDI node and the keyValue has the value "node". Each node
43   * allows the use of uddi-org:nodes only by itself, only on its own Node
44   * Business Entity, and only with the value of "node". This value is used in the
45   * keyValue attributes of keyedReference elements that are contained in
46   * categoryBag elements to locate the Node Business Entity elements in the
47   * registry.
48   *
49   *
50   * @author Alex O'Ree
51   */
52  public class Uddiuddiorgcategorizationnodes extends AbstractSimpleValidator {
53  
54          
55          @Override
56          public List<String> getValidValues() {
57                  List<String> ret = new ArrayList<String>();
58                  ret.add("node");
59                  return ret;
60          }
61  
62          @Override
63          public String getMyKey() {
64                  return "uddi:uddi.org:categorization:nodes";
65          }
66  
67  }