![JAR search and dependency download from the Maven repository](/logo.png)
net.zeroinstall.model.impl.ArchiveImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeroinstall-model Show documentation
Show all versions of zeroinstall-model Show documentation
The Zero Install XSD model transformed by Apache XMLBeans to Java source code.
The newest version!
/*
* XML Type: archive
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.Archive
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* An XML archive(@http://zero-install.sourceforge.net/2004/injector/interface).
*
* This is a complex type.
*/
public class ArchiveImpl extends net.zeroinstall.model.impl.DownloadRetrievalMethodImpl implements net.zeroinstall.model.Archive
{
private static final long serialVersionUID = 1L;
public ArchiveImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TYPE$0 =
new javax.xml.namespace.QName("", "type");
private static final javax.xml.namespace.QName STARTOFFSET$2 =
new javax.xml.namespace.QName("", "start-offset");
private static final javax.xml.namespace.QName EXTRACT$4 =
new javax.xml.namespace.QName("", "extract");
private static final javax.xml.namespace.QName DEST$6 =
new javax.xml.namespace.QName("", "dest");
/**
* Gets the "type" attribute
*/
public java.lang.String getType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "type" attribute
*/
public org.apache.xmlbeans.XmlString xgetType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$0);
return target;
}
}
/**
* True if has "type" attribute
*/
public boolean isSetType()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(TYPE$0) != null;
}
}
/**
* Sets the "type" attribute
*/
public void setType(java.lang.String type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$0);
}
target.setStringValue(type);
}
}
/**
* Sets (as xml) the "type" attribute
*/
public void xsetType(org.apache.xmlbeans.XmlString type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$0);
}
target.set(type);
}
}
/**
* Unsets the "type" attribute
*/
public void unsetType()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(TYPE$0);
}
}
/**
* Gets the "start-offset" attribute
*/
public long getStartOffset()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTOFFSET$2);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "start-offset" attribute
*/
public org.apache.xmlbeans.XmlLong xgetStartOffset()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(STARTOFFSET$2);
return target;
}
}
/**
* True if has "start-offset" attribute
*/
public boolean isSetStartOffset()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(STARTOFFSET$2) != null;
}
}
/**
* Sets the "start-offset" attribute
*/
public void setStartOffset(long startOffset)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTOFFSET$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTOFFSET$2);
}
target.setLongValue(startOffset);
}
}
/**
* Sets (as xml) the "start-offset" attribute
*/
public void xsetStartOffset(org.apache.xmlbeans.XmlLong startOffset)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_attribute_user(STARTOFFSET$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlLong)get_store().add_attribute_user(STARTOFFSET$2);
}
target.set(startOffset);
}
}
/**
* Unsets the "start-offset" attribute
*/
public void unsetStartOffset()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(STARTOFFSET$2);
}
}
/**
* Gets the "extract" attribute
*/
public java.lang.String getExtract()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTRACT$4);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "extract" attribute
*/
public org.apache.xmlbeans.XmlString xgetExtract()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(EXTRACT$4);
return target;
}
}
/**
* True if has "extract" attribute
*/
public boolean isSetExtract()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(EXTRACT$4) != null;
}
}
/**
* Sets the "extract" attribute
*/
public void setExtract(java.lang.String extract)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTRACT$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXTRACT$4);
}
target.setStringValue(extract);
}
}
/**
* Sets (as xml) the "extract" attribute
*/
public void xsetExtract(org.apache.xmlbeans.XmlString extract)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(EXTRACT$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(EXTRACT$4);
}
target.set(extract);
}
}
/**
* Unsets the "extract" attribute
*/
public void unsetExtract()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(EXTRACT$4);
}
}
/**
* Gets the "dest" attribute
*/
public java.lang.String getDest()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEST$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "dest" attribute
*/
public org.apache.xmlbeans.XmlString xgetDest()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEST$6);
return target;
}
}
/**
* True if has "dest" attribute
*/
public boolean isSetDest()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DEST$6) != null;
}
}
/**
* Sets the "dest" attribute
*/
public void setDest(java.lang.String dest)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEST$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEST$6);
}
target.setStringValue(dest);
}
}
/**
* Sets (as xml) the "dest" attribute
*/
public void xsetDest(org.apache.xmlbeans.XmlString dest)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEST$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DEST$6);
}
target.set(dest);
}
}
/**
* Unsets the "dest" attribute
*/
public void unsetDest()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DEST$6);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy