📄 discoveryurl.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: DiscoveryUrl.java
package org.huihoo.openweb.uddi;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
// Referenced classes of package org.huihoo.openweb.uddi:
// UddiObject, UDDIXmlException
public class DiscoveryUrl extends UddiObject
{
public DiscoveryUrl(String useType, URL url)
throws UDDIXmlException
{
super("discoveryURL");
setUseType(useType);
setUrl(url);
}
public DiscoveryUrl(InputStream is)
throws UDDIXmlException, IOException
{
super(is);
}
public DiscoveryUrl(UddiObject o)
{
doc = o.doc;
}
public void setUseType(String useType)
throws UDDIXmlException
{
if(useType.equals("businessEntity") || useType.equals("businessEntityExt"))
setAttribute("useType", useType);
else
throw new UDDIXmlException("Invalid useType");
}
public String getUseType()
{
return getAttribute("useType");
}
public void setUrl(URL url)
{
setValue(url.toString());
}
public void setUrl(String url)
{
setValue(url);
}
public URL getUrl()
throws UDDIXmlException, MalformedURLException
{
String url = getValue();
return new URL(url);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -