KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitmodelext > security > proprietary > impl > ValidatorConfigurationImpl


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary.impl;
21
22 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ProprietaryPolicyQName;
23 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ProprietarySecurityPolicyAttribute;
24 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ValidatorConfiguration;
25 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ProprietarySecurityPolicyQName;
26 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
27 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor;
28 import org.w3c.dom.Element JavaDoc;
29
30 /**
31  *
32  * @author Martin Grebac
33  */

34 public class ValidatorConfigurationImpl extends ProprietarySecurityPolicyComponentImpl implements ValidatorConfiguration {
35     
36     /**
37      * Creates a new instance of ValidatorConfigurationImpl
38      */

39     public ValidatorConfigurationImpl(WSDLModel model, Element JavaDoc e) {
40         super(model, e);
41     }
42     
43     public ValidatorConfigurationImpl(WSDLModel model){
44         this(model, createPrefixedElement(ProprietarySecurityPolicyQName.VALIDATORCONFIGURATION.getQName(), model));
45     }
46
47     public void accept(WSDLVisitor visitor) {
48         visitor.visit(this);
49     }
50
51     public void setVisibility(String JavaDoc vis) {
52         setAnyAttribute(ProprietaryPolicyQName.VISIBILITY.getQName(), vis);
53     }
54
55     public String JavaDoc getVisibility() {
56         return getAnyAttribute(ProprietaryPolicyQName.VISIBILITY.getQName());
57     }
58     
59 // public void setMaxClockSkew(String maxClockSkew) {
60
// setAnyAttribute(ProprietarySecurityPolicyQName.MAXCLOCKSKEW.getQName(), maxClockSkew);
61
// setAttribute(MAXCLOCKSKEW, ProprietarySecurityPolicyAttribute.MAXCLOCKSKEW, maxClockSkew);
62
// }
63

64 // public String getMaxClockSkew() {
65
// return getAnyAttribute(ProprietarySecurityPolicyQName.MAXCLOCKSKEW.getQName());
66
// return getAttribute(ProprietarySecurityPolicyAttribute.MAXCLOCKSKEW);
67
// }
68
//
69
// public void setTimestampFreshnessLimit(String limit) {
70
// setAnyAttribute(ProprietarySecurityPolicyQName.TIMESTAMPFRESHNESSLIMIT.getQName(), limit);
71
// setAttribute(TIMESTAMPFRESHNESS, ProprietarySecurityPolicyAttribute.TIMESTAMPFRESHNESSLIMIT, limit);
72
// }
73
//
74
// public String getTimestampFreshnessLimit() {
75
// return getAnyAttribute(ProprietarySecurityPolicyQName.TIMESTAMPFRESHNESSLIMIT.getQName());
76
// return getAttribute(ProprietarySecurityPolicyAttribute.TIMESTAMPFRESHNESSLIMIT);
77
// }
78
//
79
// public void setMaxNonceAge(String maxNonceAge) {
80
// setAttribute(MAXNONCEAGE, ProprietarySecurityPolicyAttribute.MAXNONCEAGE, maxNonceAge);
81
// }
82
//
83
// public String getMaxNonceAge() {
84
// return getAttribute(ProprietarySecurityPolicyAttribute.MAXNONCEAGE);
85
// }
86

87 }
88
Popular Tags