📄 bindingtemplate.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: BindingTemplate.java
package org.huihoo.openweb.uddi;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
// Referenced classes of package org.huihoo.openweb.uddi:
// UddiObject, UDDIXmlException, BindingKey, ServiceKey,
// AccessPoint, HostingRedirector, TModelInstanceDetails
public class BindingTemplate extends UddiObject
{
public BindingTemplate(BindingKey key)
throws UDDIXmlException
{
super("bindingTemplate");
setBindingKey(key);
}
public BindingTemplate(InputStream is)
throws IOException, UDDIXmlException
{
super(is);
}
public BindingTemplate(UddiObject o)
{
doc = o.doc;
}
public void setBindingKey(BindingKey key)
{
setAttribute("bindingKey", key.getValue());
}
public BindingKey getBindingKey()
{
return new BindingKey(getAttribute("bindingKey"));
}
public void setServiceKey(ServiceKey key)
{
setAttribute("serviceKey", key.getValue());
}
public ServiceKey getServiceKey()
{
return new ServiceKey(getAttribute("serviceKey"));
}
public void setAccessPoint(AccessPoint acPt)
throws UDDIXmlException
{
if(getElement("hostingRedirector") != null)
{
String msg = "Can set either a 'hostingRedirector' or an 'accessPoint'. 'hostingRedirector' already exists for this 'bindingTemplate'.";
throw new UDDIXmlException(msg);
} else
{
addElement(acPt);
return;
}
}
public AccessPoint getAccessPoint()
throws UDDIXmlException
{
return new AccessPoint(getElement("accessPoint"));
}
public void setHostingRedirector(HostingRedirector hr)
throws UDDIXmlException
{
if(getElement("accessPoint") != null)
{
String msg = "Can set either a 'hostingRedirector' or an 'accessPoint'. 'hostingRedirector' already exists for this 'bindingTemplate'.";
throw new UDDIXmlException(msg);
} else
{
addElement(hr);
return;
}
}
public HostingRedirector getHostingRedirector()
throws UDDIXmlException
{
UddiObject udd = getElement("hostingRedirector");
if(udd == null)
{
return null;
} else
{
HostingRedirector hst = new HostingRedirector(udd);
return hst;
}
}
public void setTModelInstanceDetails(TModelInstanceDetails tmid)
{
addElement(tmid);
}
public TModelInstanceDetails getTModelInstanceDetails()
throws UDDIXmlException
{
return new TModelInstanceDetails(getElement("tModelInstanceDetails"));
}
public void setDescription(String desc)
{
UddiObject d = new UddiObject("description");
d.setValue(desc);
addElement(d);
}
public Enumeration getDescription()
{
return getElementsNamed("description", "bindingTemplate");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -