home *** CD-ROM | disk | FTP | other *** search
- public class JScriptAbstractLinkObject extends JSbxObject implements JSbxPropertyInterface {
- private static final String NAME = "abstractlink";
- private static final int ABSLINK_ID_HASH = 1;
- private static final int ABSLINK_ID_HOST = 2;
- private static final int ABSLINK_ID_HOSTNAME = 3;
- private static final int ABSLINK_ID_HREF = 4;
- private static final int ABSLINK_ID_PATHNAME = 5;
- private static final int ABSLINK_ID_PORT = 6;
- private static final int ABSLINK_ID_PROTOCOL = 7;
- private static final int ABSLINK_ID_SEARCH = 8;
-
- protected JScriptAbstractLinkObject(long var1) {
- super(var1, JScriptManager.GetConstructorObjectForMe("DefaultConstructor"));
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("href", this, this, 4));
- ((JSbxObject)this).Put(new JSbxObjectProperty("protocol", this, this, 7));
- ((JSbxObject)this).Put(new JSbxObjectProperty("host", this, this, 2));
- ((JSbxObject)this).Put(new JSbxObjectProperty("hostname", this, this, 3));
- ((JSbxObject)this).Put(new JSbxObjectProperty("port", this, this, 6));
- ((JSbxObject)this).Put(new JSbxObjectProperty("pathname", this, this, 5));
- ((JSbxObject)this).Put(new JSbxObjectProperty("hash", this, this, 1));
- ((JSbxObject)this).Put(new JSbxObjectProperty("search", this, this, 8));
- } catch (JSbxException var3) {
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- throw new JSbxException(0, "no such method in abstractlink");
- }
-
- public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 1:
- var2.Put(new JSbxValue(this.getHash()));
- return;
- case 2:
- var2.Put(new JSbxValue(this.getHost()));
- return;
- case 3:
- var2.Put(new JSbxValue(this.getHostname()));
- return;
- case 4:
- var2.Put(new JSbxValue(this.getHref()));
- return;
- case 5:
- var2.Put(new JSbxValue(this.getPathname()));
- return;
- case 6:
- var2.Put(new JSbxValue(this.getPort()));
- return;
- case 7:
- var2.Put(new JSbxValue(this.getProtocol()));
- return;
- case 8:
- var2.Put(new JSbxValue(this.getSearch()));
- return;
- default:
- throw new JSbxException(0, "no such property in abstractlink (ID=" + var3 + ")");
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 1:
- this.setHash(var2.GetString());
- return;
- case 2:
- this.setHost(var2.GetString());
- return;
- case 3:
- this.setHostname(var2.GetString());
- return;
- case 4:
- this.setHref(var2.GetString());
- return;
- case 5:
- this.setPathname(var2.GetString());
- return;
- case 6:
- this.setPort(var2.GetString());
- return;
- case 7:
- this.setProtocol(var2.GetString());
- return;
- case 8:
- this.setSearch(var2.GetString());
- return;
- default:
- throw new JSbxException(0, "no such property in abstractlink (ID=" + var3 + ")");
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
- return "object";
- }
-
- public String GetJScriptString(boolean var1) {
- return this.getHref();
- }
-
- protected String getHash() {
- return null;
- }
-
- protected void setHash(String var1) {
- }
-
- protected String getHost() {
- return null;
- }
-
- protected void setHost(String var1) {
- }
-
- protected String getHostname() {
- return null;
- }
-
- protected void setHostname(String var1) {
- }
-
- protected String getHref() {
- return null;
- }
-
- protected void setHref(String var1) {
- }
-
- protected String getPathname() {
- return null;
- }
-
- protected void setPathname(String var1) {
- }
-
- protected String getPort() {
- return null;
- }
-
- protected void setPort(String var1) {
- }
-
- protected String getProtocol() {
- return null;
- }
-
- protected void setProtocol(String var1) {
- }
-
- protected String getSearch() {
- return null;
- }
-
- protected void setSearch(String var1) {
- }
- }
-