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 assert
23 * relationships between businessEntity structures they publish and other
24 * businessEntity structures according to any number of relationship type
25 * schemes. See Appendix A Relationships and Publisher Assertions for more
26 * information. This section defines a tModel representing a relationship type
27 * system for use in describing the way businessEntity structures relate to one
28 * another.
29 * <Br><Br>
30 * While UDDI provides for any number of relationship type system to be used in
31 * relating businessEntity structures to one another, it is useful to define a
32 * "starter set" of relationship types that publishers may use without needing
33 * to define their own. The uddi-org:relationships relationship type system is
34 * such a starter set that covers a number of basic relationships. All three
35 * attributes are significant in keyedReferences that describe relationship
36 * types. The keyValue attributes should contain well known but somewhat broad
37 * versions of the relationship type, like those described in this relationship
38 * type set. The keyName attributes should be used to more explicitly type the
39 * relationship.
40 *
41 * @author Alex O'Ree
42 */
43 public class Uddiuddiorgrelationships extends AbstractSimpleValidator{
44
45 @Override
46 public List<String> getValidValues() {
47 List<String> ret = new ArrayList<String>();
48 ret.add("parent-child");
49 ret.add("identity");
50 ret.add("peer-peer");
51 return ret;
52 }
53
54 @Override
55 public String getMyKey() {
56 return "uddi:uddi.org:relationships";
57 }
58
59
60 }