Coverage Report - org.apache.ws.scout.registry.infomodel.ExternalLinkImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ExternalLinkImpl
0%
0/16
N/A
0
 
 1  
 /*
 2  
  * Copyright 2001-2004 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  
 
 17  
 package org.apache.ws.scout.registry.infomodel;
 18  
 
 19  
 import java.util.ArrayList;
 20  
 import java.util.Collection;
 21  
 
 22  
 import javax.xml.registry.JAXRException;
 23  
 import javax.xml.registry.LifeCycleManager;
 24  
 import javax.xml.registry.infomodel.RegistryObject;
 25  
 
 26  
 /**
 27  
  * Implements JAXR Interface.
 28  
  * For futher details, look into the JAXR API Javadoc.
 29  
  *
 30  
  * @author Anil Saldhana  <anil@apache.org>
 31  
  */
 32  
 public class ExternalLinkImpl extends RegistryObjectImpl
 33  
         implements javax.xml.registry.infomodel.ExternalLink
 34  
 {
 35  0
     private String uri = new String();
 36  0
     private boolean validateuri = false;
 37  0
     private Collection<RegistryObject> linkedObj = new ArrayList<RegistryObject>();
 38  
 
 39  
     /**
 40  
      * Creates a new instance of ExternalLinkImpl
 41  
      */
 42  
     public ExternalLinkImpl(LifeCycleManager lifeCycleManager)
 43  
     {
 44  0
         super(lifeCycleManager);
 45  0
     }
 46  
 
 47  
     public String getExternalURI() throws JAXRException
 48  
     {
 49  0
         return uri;
 50  
     }
 51  
 
 52  
     public Collection getLinkedObjects() throws JAXRException
 53  
     {
 54  0
         return linkedObj;
 55  
     }
 56  
 
 57  
     public boolean getValidateURI() throws JAXRException
 58  
     {
 59  0
         return validateuri;
 60  
     }
 61  
 
 62  
     public void setExternalURI(String str) throws JAXRException
 63  
     {
 64  0
         this.uri = str;
 65  0
     }
 66  
 
 67  
     public void setValidateURI(boolean param) throws JAXRException
 68  
     {
 69  0
         this.validateuri = param;
 70  0
     }
 71  
 
 72  
     //Specific API
 73  
     public void addLinkedObject(RegistryObject obj)
 74  
     {
 75  0
         linkedObj.add(obj);
 76  0
     }
 77  
 
 78  
     public void removeLinkedObject(RegistryObject obj)
 79  
     {
 80  0
         linkedObj.remove(obj);
 81  0
     }
 82  
 
 83  
 }