You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by sv...@apache.org on 2003/11/11 14:09:29 UTC
cvs commit: ws-juddi/src/java/org/apache/juddi/datatype Address.java AddressLine.java BindingKey.java BusinessKey.java CategoryBag.java Description.java DiscoveryURL.java DiscoveryURLs.java Email.java IdentifierBag.java KeyedReference.java Name.java OverviewDoc.java OverviewURL.java PersonName.java Phone.java RegistryObject.java ServiceKey.java SharedRelationships.java TModelBag.java TModelKey.java UploadRegister.java
sviens 2003/11/11 05:09:29
Added: src/java/org/apache/juddi/datatype Address.java
AddressLine.java BindingKey.java BusinessKey.java
CategoryBag.java Description.java DiscoveryURL.java
DiscoveryURLs.java Email.java IdentifierBag.java
KeyedReference.java Name.java OverviewDoc.java
OverviewURL.java PersonName.java Phone.java
RegistryObject.java ServiceKey.java
SharedRelationships.java TModelBag.java
TModelKey.java UploadRegister.java
Log:
Moved from jUDDI CVS at SourceForge
Revision Changes Path
1.1 ws-juddi/src/java/org/apache/juddi/datatype/Address.java
Index: Address.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* Represents a postal address. Essentially holds a simple set of AddressLines,
* but can be adorned with an optional useType attribute and sortcode. The
* useType attribute is used to describe the type of the address in
* freeform text. Examples are "headquarters", "billing department", etc.
* The sortCode values are not significant, but can be used by user-interfaces
* that present contact information in some ordered fashion, thereby using the
* sortCode values.
*
* @author Steve Viens (sviens@apache.org)
*/
public class Address implements RegistryObject
{
String useType;
String sortCode;
String tModelKey;
Vector addressLineVector;
/**
* Constructs a new Address with no address-lines and no useType or sortCode
* attribute.
*/
public Address()
{
}
/**
* Constructs a new Address with no address-lines, but with the given useType
* and sortCode attributes.
*
* @param type The usetype of the new address, or null if the address
* doesn't have a usetype.
* @param sort The sortcode of the new address, or null if the address
* doesn't have a sortcode.
*/
public Address(String type,String sort)
{
this.useType = type;
this.sortCode = sort;
}
/**
* Sets the usetype of this address to the given usetype. If the new usetype
* is null, this address doesn't have a usetype anymore.
*
* @param type The new usetype of this address, or null if the address
* doesn't have an usetype anymore.
*/
public void setUseType(String type)
{
this.useType = type;
}
/**
* Returns the usetype of this address.
*
* @return The usetype of this address, or null if this address doesn't have
* an usetype.
*/
public String getUseType()
{
return this.useType;
}
/**
* Sets the sortcode of this address to the given sortcode. If the new
* sortcode is null, this address doesn't have a sortcode anymore.
*
* @param sort The new sortcode of this address, or null if the address
* doesn't have a sortcode anymore.
*/
public void setSortCode(String sort)
{
this.sortCode = sort;
}
/**
* Returns the sortcode of this address.
*
* @return The sortcode of this address, or null if the address doesn't
* have a sortcode.
*/
public String getSortCode()
{
return this.sortCode;
}
/**
* Sets the key of this tModel to the given key.
*
* @param key The new key of this tModel.
*/
public void setTModelKey(String key)
{
this.tModelKey = key;
}
/**
* Returns the String of this Address.
*
* @return The key of this tModel.
*/
public String getTModelKey()
{
return this.tModelKey;
}
/**
* Add a new addressline to this address. The addressline is added at the
* end of the already existing set of addresslines.
*
* @param line The addressline to be added to this address.
*/
public void addAddressLine(AddressLine line)
{
if (this.addressLineVector == null)
this.addressLineVector = new Vector();
this.addressLineVector.add(line);
}
/**
* Add a collection of new addresslines to this address. The new
* addresslines are added at the end of the set of the already existing
* addresslines.
*
* @param lines The collection of addresslines to add.
*/
public void setAddressLineVector(Vector lines)
{
if (this.addressLineVector == null)
this.addressLineVector = new Vector();
this.addressLineVector = lines;
}
/**
* Returns the addresslines of this address.
*
* @return The addresslines of this address. If this address doesn't have
* any addresslines, an empty enumeration of addresslines is returned.
*/
public Vector getAddressLineVector()
{
return this.addressLineVector;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/AddressLine.java
Index: AddressLine.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* The address structure is a simple list of AddressLine elements within
* the address container. AddressLine elements contain string data with a
* suggested line length of max. 40 chars.
*
* @author Steve Viens (sviens@apache.org)
*/
public class AddressLine implements RegistryObject
{
String lineValue;
String keyName;
String keyValue;
/**
* Constructs a new initialized Addressline instance.
*/
public AddressLine()
{
}
/**
* Constructs a new addressline with the given data.
*
* @param line The data of the addressline.
*/
public AddressLine(String line)
{
this.lineValue = line;
}
/**
* Constructs a new addressline with the given data.
*
* @param line The data of the addressline.
* @param name ...
* @param value ...
*/
public AddressLine(String line,String name,String value)
{
this.lineValue = line;
this.keyName = name;
this.keyValue = value;
}
/**
* Sets the data of this addressline to the given data.
*
* @param line The new data of this addressline.
*/
public void setLineValue(String line)
{
this.lineValue = line;
}
/**
* Returns the data of the addressline.
*
* @return The data of the addressline.
*/
public String getLineValue()
{
return this.lineValue;
}
/**
* Sets ...
*
* @param name
*/
public void setKeyName(String name)
{
this.keyName = name;
}
/**
* Returns ...
*
* @return the key name
*/
public String getKeyName()
{
return this.keyName;
}
/**
* Sets ...
*
* @param value
*/
public void setKeyValue(String value)
{
this.keyValue = value;
}
/**
* Returns ...
*
* @return the key value
*/
public String getKeyValue()
{
return this.keyValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/BindingKey.java
Index: BindingKey.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class BindingKey implements RegistryObject
{
String keyValue;
/**
* Construct a new initialized bindingKey instance.
*/
public BindingKey()
{
}
/**
* Construct a new BindingKey with a given key value.
*
* @param keyValue The BindingKey of the new key value.
*/
public BindingKey(String keyValue)
{
setValue(keyValue);
}
/**
* Sets the value of this BindingKey to the new key value.
*
* @param newValue The new key value for this BindingKey.
*/
public void setValue(String newValue)
{
this.keyValue = newValue;
}
/**
* Returns the key value of this BindingKey.
*
* @return The key value of this BindingKey.
*/
public String getValue()
{
return this.keyValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/BusinessKey.java
Index: BusinessKey.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class BusinessKey implements RegistryObject
{
String keyValue;
/**
* Construct a new initialized businessKey instance.
*/
public BusinessKey()
{
}
/**
* Construct a new BusinessKey with a given key value.
*
* @param keyValue The BusinessKey of the new key value.
*/
public BusinessKey(String keyValue)
{
setValue(keyValue);
}
/**
* Sets the value of this BusinessKey to the new key value.
*
* @param newValue The new key value for this BusinessKey.
*/
public void setValue(String newValue)
{
this.keyValue = newValue;
}
/**
* Returns the key value of this BusinessKey.
*
* @return The key value of this BusinessKey.
*/
public String getValue()
{
return this.keyValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/CategoryBag.java
Index: CategoryBag.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class CategoryBag implements RegistryObject
{
Vector keyedReferenceVector;
/**
*
*/
public CategoryBag()
{
}
/**
*
*/
public CategoryBag(int size)
{
this.keyedReferenceVector = new Vector(size);
}
/**
*
*/
public void addKeyedReference(KeyedReference keyedRef)
{
if (this.keyedReferenceVector == null)
this.keyedReferenceVector = new Vector();
this.keyedReferenceVector.add(keyedRef);
}
/**
*
*/
public void setKeyedReferenceVector(Vector keyedRefVector)
{
this.keyedReferenceVector = keyedRefVector;
}
/**
*
*/
public Vector getKeyedReferenceVector()
{
return this.keyedReferenceVector;
}
/**
*
*/
public int size()
{
if (this.keyedReferenceVector != null)
return this.keyedReferenceVector.size();
else
return 0;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/Description.java
Index: Description.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* A Description object contains a textual description and an optional
* language code.<p>
*
* A default ISO language code will be determined for a publisher at the time
* that a party establishes permissions to publish at a given operator site
* or implementation. This default language code will be applied to any
* description values that are provided with no language code.<p>
*
* @author Steve Viens (sviens@apache.org)
*/
public class Description implements RegistryObject
{
String descValue;
String langCode; // ISO language code
/**
* Construct a new initialized Description instance.
*/
public Description()
{
}
/**
* Construct a new initialized Description instance.
*/
public Description(String descValue)
{
this.setValue(descValue);
}
/**
* Construct a new initialized Description instance.
*/
public Description(String descValue,String langCode)
{
this.setValue(descValue);
this.setLanguageCode(langCode);
}
/**
* Sets the LanguageCode of this Description.
*
* @param langCode The new LanguageCode.
*/
public void setLanguageCode(String langCode)
{
this.langCode = langCode;
}
/**
* Returns the LanguageCode of this Description.
*
* @return The LanguageCode of this Description, or null if this
* description doesn't have a LanguageCode.
*/
public String getLanguageCode()
{
return this.langCode;
}
/**
* Sets the text of this Description to the given text. If the
* Description has more than 255 characters, it will be trunctated.
*
* @param newDesc The new text of this Description.
*/
public void setValue(String newDesc)
{
this.descValue = newDesc;
}
/**
* Returns the text of this Description.
*
* @return The text of this Description.
*/
public String getValue()
{
return this.descValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/DiscoveryURL.java
Index: DiscoveryURL.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* A businessEntity has a "discoveryURLs" attribute which is a collection of these.
* Consists of an attribute whose value designates the URL use type convention
* and a string found within the body of the element. The use type will be
* "businessEntity" or "businessEntityExt" according to the containing object being
* saved. Each time a businessEntity object is saved this collection is augmented
* with the new URL identifying the newly saved object. The useType can be an
* empty string ("") if the discoveryURL is used in a find_business message.
*
* @author Steve Viens (sviens@apache.org)
*/
public class DiscoveryURL implements RegistryObject
{
String useType;
String urlValue;
/**
* Construct a new discoveryURL with null usetype and url values.
*/
public DiscoveryURL()
{
}
/**
* Construct a new discoveryURL with the given usetype and url.
* @param type The usetype of this discoveryURL.
* @param url The url of this discoveryURL
*/
public DiscoveryURL(String type,String url)
{
this.useType = type;
this.urlValue = url;
}
/**
* Sets the usetype of this discoveryURL to the given usetype.
* @param useType The new usetype of this discoveryURL.
*/
public void setUseType(String useType)
{
this.useType = useType;
}
/**
* Returns the usetype of this discoveryURL.
* @return The usetype of this discoveryURL.
*/
public String getUseType()
{
return this.useType;
}
/**
* Sets the url of this discoveryURL to the given url.
*
* @param url The new url of this discoveryURL.
*/
public void setValue(String url)
{
this.urlValue = url;
}
/**
* Returns the url of this discoveryURL.
* @return The url of this discoveryURL.
*/
public String getValue()
{
return this.urlValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/DiscoveryURLs.java
Index: DiscoveryURLs.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class DiscoveryURLs implements RegistryObject
{
Vector discoveryURLVector;
/**
*
*/
public DiscoveryURLs()
{
}
/**
*
*/
public DiscoveryURLs(int size)
{
this.discoveryURLVector = new Vector(size);
}
/**
*
*/
public void addDiscoveryURL(DiscoveryURL url)
{
if (this.discoveryURLVector == null)
this.discoveryURLVector = new Vector();
this.discoveryURLVector.add(url);
}
/**
*
*/
public void setDiscoveryURLVector(Vector urls)
{
this.discoveryURLVector = urls;
}
/**
*
*/
public Vector getDiscoveryURLVector()
{
return this.discoveryURLVector;
}
/**
*
*/
public int size()
{
if (this.discoveryURLVector != null)
return this.discoveryURLVector.size();
else
return 0;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/Email.java
Index: Email.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Holds email address, can be adorned with an optinal useType attribute. If more than
* one Email element is saved within the same contact then the useType must be supplied.
*
* The useType attribute is used to describe the type of the email address in freeform text.
* Examples are "technical questions", "sales contact", etc.
*
* @author Steve Viens (sviens@apache.org)
*/
public class Email implements RegistryObject
{
String emailAddress;
String useType;
/**
* Construct a new initialized Email instance.
*/
public Email()
{
}
/**
* Construct a new Email with a given address.
*
* @param email The address of the email.
*/
public Email(String email)
{
this.emailAddress = email;
}
/**
* Construct a new Email with a given address and given usetype.
*
* @param email The address of the email.
* @param type The usetype of the email.
*/
public Email(String email, String type)
{
this.emailAddress = email;
this.useType = type;
}
/**
* Sets the emailAddress of the Email to the given address.
*
* @param email The new address of this email.
*/
public void setValue(String email)
{
this.emailAddress = email;
}
/**
* Returns the emailAddress of this Email.
*
* @return The emailAddress of this Email.
*/
public String getValue()
{
return this.emailAddress;
}
/**
* Sets the usetype of this Email to the given usetype. If the new usetype is
* null, this Email doesn't have a usetype anymore.
*
* @param type The new usetype of this Email, or null if this Email doesn't
* have an usetype anymore.
*/
public void setUseType(String type)
{
this.useType = type;
}
/**
* Returns the usetype of this Email.
*
* @return The usetype of this Email, or null if this Email doesn't have
* an usetype.
*/
public String getUseType()
{
return this.useType;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/IdentifierBag.java
Index: IdentifierBag.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class IdentifierBag implements RegistryObject
{
Vector keyedReferenceVector;
/**
*
*/
public IdentifierBag()
{
}
/**
*
*/
public IdentifierBag(int size)
{
this.keyedReferenceVector = new Vector(size);
}
/**
*
*/
public void addKeyedReference(KeyedReference keyedRef)
{
if (this.keyedReferenceVector == null)
this.keyedReferenceVector = new Vector();
this.keyedReferenceVector.add(keyedRef);
}
/**
*
*/
public void setKeyedReferenceVector(Vector keyedRefVector)
{
this.keyedReferenceVector = keyedRefVector;
}
/**
*
*/
public Vector getKeyedReferenceVector()
{
return this.keyedReferenceVector;
}
/**
*
*/
public int size()
{
if (this.keyedReferenceVector != null)
return this.keyedReferenceVector.size();
else
return 0;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/KeyedReference.java
Index: KeyedReference.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Not just name / value. Also contains a tModel reference. This makes the
* identifier scheme extensible by allowing tModels to be used as conceptual
* namespace qualifiers.
*
* @author Steve Viens (sviens@apache.org)
*/
public class KeyedReference implements RegistryObject
{
String tModelKey;
String keyName;
String keyValue;
/**
* Construct a new initialized keyedReference instance.
*/
public KeyedReference()
{
}
/**
* Construct a new KeyedReference with a name and value.
*
* @param name The name of the name-value pair.
* @param value The value of the name-value pair.
*/
public KeyedReference(String name,String value)
{
this.keyName = name;
this.keyValue = value;
}
/**
* Construct a new KeyedReference with a given TModel String, key
* name and key value.
*
* @param tModelKey The optional TModelKey String.
* @param name The name of the name-value pair.
* @param value The value of the name-value pair.
*/
public KeyedReference(String tModelKey,String name,String value)
{
this.tModelKey = tModelKey;
this.keyName = name;
this.keyValue = value;
}
/**
* Construct a new KeyedReference with a given TModelKey, key name
* and key value.
*
* @param tModelKey The optional TModelKey.
* @param name The name of the name-value pair.
* @param value The value of the name-value pair.
*/
public KeyedReference(TModelKey tModelKey,String name,String value)
{
this.setTModelKey(tModelKey);
this.keyName = name;
this.keyValue = value;
}
/**
* Sets the name of this keyedReference.
*
* @param name The new name of this keyedReference
*/
public void setKeyName(String name)
{
this.keyName = name;
}
/**
* Returns the name of this keyedReference.
*
* @return The name of this keyedReference.
*/
public String getKeyName()
{
return this.keyName;
}
/**
* Sets the value of this keyedReference.
*
* @param value The new value of this keyedReference
*/
public void setKeyValue(String value)
{
this.keyValue = value;
}
/**
* Returns the value of this keyedReference.
*
* @return The value of this keyedReference.
*/
public String getKeyValue()
{
return this.keyValue;
}
/**
* Sets the reference to the tModel to the given reference. The reference is
* represented by the key of the tModel. If this keyedReference doesn't point
* to a tModel anymore, the new reference must be null.
*
* @param key The key of the tModel to reference to.
*/
public void setTModelKey(TModelKey key)
{
if ((key != null) && (key.getValue() != null))
setTModelKey(key.getValue());
}
/**
* Sets the reference to the tModel to the given reference. The reference is
* represented by the key of the tModel. If this keyedReference doesn't point
* to a tModel anymore, the new reference must be null.
*
* @param key The key of the tModel to reference to.
*/
public void setTModelKey(String key)
{
this.tModelKey = key;
}
/**
* Returns the reference to the tModel. Null is returned if this
* KeyedReference doesn't point to a tModel.
*
* @return The reference to the tModel.
*/
public String getTModelKey()
{
return this.tModelKey;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/Name.java
Index: Name.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Used in BusinessEntity as the Name of the BusinessEntity, in BusinessService
* as the name of the BusinessService and in TModel as the name of the TModel.
*
* @author Steve Viens (sviens@apache.org)
*/
public class Name implements RegistryObject
{
String nameValue;
String langCode; // ISO language code
/**
* Construct a new initialized name instance.
*/
public Name()
{
}
/**
* Construct a new name from a String.
*
* @param name The name of the new name-object.
*/
public Name(String name)
{
setValue(name);
}
/**
* Construct a new name with a given name.
*
* @param name The name of the new name-object.
* @param lang The language of the new name-object.
*/
public Name(String name,String lang)
{
setValue(name);
setLanguageCode(lang);
}
/**
* Sets the name of this name-object to the new given name.
*
* @param newName The new name for this name-object.
*/
public void setValue(String newName)
{
this.nameValue = newName;
}
/**
* Returns the name of this name-object.
*
* @return The name of this name-object.
*/
public String getValue()
{
return this.nameValue;
}
/**
* Sets the name of this name-object to the new given name.
*
* @param newLang The new name for this name-object.
*/
public void setLanguageCode(String newLang)
{
this.langCode = newLang;
}
/**
* Returns the LanguageCode of this Name object.
*
* @return The LanguageCode of this name-object.
*/
public String getLanguageCode()
{
return this.langCode;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/OverviewDoc.java
Index: OverviewDoc.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* Optional structure in InstanceDetails used for overview information about
* a particular TModel use within a BindingTemplate.
*
* @author Steve Viens (sviens@apache.org)
*/
public class OverviewDoc implements RegistryObject
{
Vector descVector;
String overviewURL;
/**
* Construct a new emtpy overviewDoc instance.
*/
public OverviewDoc()
{
}
/**
* Construct a new overviewDoc with a given overviewURL.
*
* @param url The overviewURL of this overviewDoc
*/
public OverviewDoc(String url)
{
this.overviewURL = url;
}
/**
* Construct a new overviewDoc with a given overviewURL.
*
* @param url The overviewURL of this overviewDoc
*/
public OverviewDoc(OverviewURL url)
{
setOverviewURL(url);
}
/**
* Adds the given description. If there was already a description with the
* same language-code as the new description, an exception will be thrown.
*
* @param desc The description to add.
*/
public void addDescription(Description desc)
{
if (this.descVector == null)
this.descVector = new Vector();
this.descVector.add(desc);
}
/**
* Sets the description list to the current one. Ignores any object in the
* collection that is not an "instanceof" the Description class.
*
* @param descs Descriptions of Description objects to set
*/
public void setDescriptionVector(Vector descs)
{
this.descVector = descs;
}
/**
* Returns the descriptions.
*
* @return the descriptions instance.
*/
public Vector getDescriptionVector()
{
return this.descVector;
}
/**
* Sets the overviewURL to the String value of the given URL.
*
* @param url The new overviewURL.
*/
public void setOverviewURL(OverviewURL url)
{
if ((url != null) && (url.getValue() != null))
this.setOverviewURL(url.getValue());
}
/**
* Sets the overviewURL to the given URL.
*
* @param url The new overviewURL.
*/
public void setOverviewURL(String url)
{
this.overviewURL = url;
}
/**
* Returns the overviewURL of this overviewDoc.
*
* @return The overviewURL of this overviewDoc, or null if there is no
* overviewURL.
*/
public OverviewURL getOverviewURL()
{
if (this.overviewURL != null)
return new OverviewURL(this.overviewURL);
else
return null;
}
/**
* Returns the overviewURL of this overviewDoc.
*
* @return The overviewURL of this overviewDoc as a String, or null if
* there is no overviewURL.
*/
public String getOverviewURLString()
{
return this.overviewURL;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/OverviewURL.java
Index: OverviewURL.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Used in BusinessEntity as the Name of the BusinessEntity, in BusinessService
* as the name of the BusinessService and in TModel as the name of the TModel.
*
* @author Steve Viens (sviens@apache.org)
*/
public class OverviewURL implements RegistryObject
{
String urlValue;
/**
* Construct a new initialized name instance.
*/
public OverviewURL()
{
}
/**
* Construct a new name with a given name.
*
* @param url The name of the new name-object.
*/
public OverviewURL(String url)
{
this.urlValue = url;
}
/**
* Sets the name of this name-object to the new given name.
*
* @param url The new name for this name-object.
*/
public void setValue(String url)
{
this.urlValue = url;
}
/**
* Returns the overviewURL value as a String.
*
* @return The overviewURL as a String.
*/
public String getValue()
{
return this.urlValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/PersonName.java
Index: PersonName.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class PersonName implements RegistryObject
{
String nameValue;
/**
* Construct a new initialized PersonName instance.
*/
public PersonName()
{
}
/**
* Construct a new PersonName with a given name value.
*
* @param nameValue The value of the new PersonName.
*/
public PersonName(String nameValue)
{
setValue(nameValue);
}
/**
* Sets the value of this PersonName to the new name value.
*
* @param newValue The new name value for this PersonName.
*/
public void setValue(String newValue)
{
this.nameValue = newValue;
}
/**
* Returns the key value of this PersonName.
*
* @return The key value of this PersonName.
*/
public String getValue()
{
return this.nameValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/Phone.java
Index: Phone.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Holds telephone nbrs, can be adorned with an optinal useType attribute. If
* more than one Phone element is saved (in a Contacts.Phone[] ) then the
* useType must be supplied.
*
* @author Steve Viens (sviens@apache.org)
*/
public class Phone implements RegistryObject
{
String phoneNumber;
String useType;
/**
* Construct a new initialized Phone instance.
*/
public Phone()
{
}
/**
* Construct a new phone with a given phone-number.
*
* @param number The number of the new phone.
*/
public Phone(String number)
{
this.phoneNumber = number;
}
/**
* Construct a new phone with a given phone-number and usetype.
*
* @param number The number of the new phone.
* @param useType The usetype of the new phone.
*/
public Phone(String number, String useType)
{
this.phoneNumber = number;
this.useType = useType;
}
/**
* Sets the number of this Phone to the given number.
*
* @param number The new number of this phone.
*/
public void setValue(String number)
{
this.phoneNumber = number;
}
/**
* Returns the number of this Phone.
*
* @return The number of this Phone.
*/
public String getValue()
{
return this.phoneNumber;
}
/**
* Sets the UseType of this Phone to the given UseType. If this Phone
* doesn't have a UseType anymore, then the new usetype must be null.
*
* @param type The new UseType of this Phone.
*/
public void setUseType(String type)
{
this.useType = type;
}
/**
* Returns the UseType of this Phone.
*
* @return The UseType of this Phone, or null if this Phone doesn't have
* an UseType.
*/
public String getUseType()
{
return this.useType;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/RegistryObject.java
Index: RegistryObject.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.io.Serializable;
/**
* @author Steve Viens (sviens@apache.org)
*/
public interface RegistryObject extends Serializable
{
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/ServiceKey.java
Index: ServiceKey.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* @author Steve Viens (sviens@apache.org)
*/
public class ServiceKey implements RegistryObject
{
String keyValue;
/**
* Construct a new initialized serviceKey instance.
*/
public ServiceKey()
{
}
/**
* Construct a new ServiceKey with a given key value.
*
* @param keyValue The ServiceKey of the new key value.
*/
public ServiceKey(String keyValue)
{
setValue(keyValue);
}
/**
* Sets the value of this ServiceKey to the new key value.
*
* @param newValue The new key value for this ServiceKey.
*/
public void setValue(String newValue)
{
this.keyValue = newValue;
}
/**
* Returns the key value of this ServiceKey.
*
* @return The key value of this ServiceKey.
*/
public String getValue()
{
return this.keyValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/SharedRelationships.java
Index: SharedRelationships.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* @author Anou Manavalan
*/
public class SharedRelationships implements RegistryObject
{
Vector keyedReferenceVector;
// TODO (anou) need to add direction
// <xsd:attribute name="direction" type="uddi:direction" use="required" />
/**
*
*/
public SharedRelationships()
{
}
/**
*
*/
public SharedRelationships(Vector refs)
{
this.keyedReferenceVector = refs;
}
/**
*
*/
public void addKeyedReference(KeyedReference ref)
{
if (this.keyedReferenceVector == null)
this.keyedReferenceVector = new Vector();
this.keyedReferenceVector.add(ref);
}
/**
*
*/
public Vector getKeyedReferenceVector()
{
return this.keyedReferenceVector;
}
/**
*
*/
public void setKeyedReferenceVector(Vector refs)
{
this.keyedReferenceVector = refs;
}
/**
*
*/
public int size()
{
if (this.keyedReferenceVector != null)
return this.keyedReferenceVector.size();
else
return 0;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/TModelBag.java
Index: TModelBag.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
import java.util.Vector;
/**
* "Knows about the creation and populating of TModelBag objects.
* Returns TModelBag."
*
* @author Steve Viens (sviens@apache.org)
*/
public class TModelBag implements RegistryObject
{
Vector tModelKeyVector;
/**
*
*/
public TModelBag()
{
}
/**
*
*/
public TModelBag(int size)
{
this.tModelKeyVector = new Vector(size);
}
/**
*
*/
public void addTModelKey(TModelKey key)
{
if ((key != null) && (key.getValue() != null))
this.addTModelKey(key.getValue());
}
/**
*
*/
public void addTModelKey(String key)
{
if (this.tModelKeyVector == null)
this.tModelKeyVector = new Vector();
this.tModelKeyVector.add(key);
}
/**
*
*/
public void setTModelKeyVector(Vector keyVector)
{
this.tModelKeyVector = keyVector;
}
/**
*
*/
public Vector getTModelKeyVector()
{
return this.tModelKeyVector;
}
/**
*
*/
public int size()
{
if (this.tModelKeyVector != null)
return this.tModelKeyVector.size();
else
return 0;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/TModelKey.java
Index: TModelKey.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* Used in BusinessEntity as the Name of the BusinessEntity, in BusinessService
* as the name of the BusinessService and in TModel as the name of the TModel.
*
* @author Steve Viens (sviens@apache.org)
*/
public class TModelKey implements RegistryObject
{
String keyValue;
/**
* Construct a new initialized name instance.
*/
public TModelKey()
{
}
/**
* Construct a new name with a given name.
*
* @param keyValue The name of the new name-object.
*/
public TModelKey(String keyValue)
{
setValue(keyValue);
}
/**
* Sets the name of this name-object to the new given name.
*
* @param newValue The new name for this name-object.
*/
public void setValue(String newValue)
{
this.keyValue = newValue;
}
/**
* Returns the name of this name-object.
*
* @return The name of this name-object.
*/
public String getValue()
{
return this.keyValue;
}
}
1.1 ws-juddi/src/java/org/apache/juddi/datatype/UploadRegister.java
Index: UploadRegister.java
===================================================================
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "jUDDI" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.juddi.datatype;
/**
* The UploadRegister type has been depricated in the UDDI version 2.0
* specification but it remains because it is still found in the UDDI
* version 2.0 XML schema.
*
* @author Steve Viens (sviens@apache.org)
*/
public class UploadRegister implements RegistryObject
{
String value = null;
/**
*
*/
public UploadRegister()
{
}
/**
*
*/
public UploadRegister(String newValue)
{
this.value = newValue;
}
/**
*
*/
public void setValue(String newValue)
{
this.value = newValue;
}
/**
*
*/
public String getValue()
{
return this.value;
}
}