net.zeroinstall.model.impl.ConstraintImpl 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: constraint
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.Constraint
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* An XML constraint(@http://zero-install.sourceforge.net/2004/injector/interface).
*
* This is a complex type.
*/
public class ConstraintImpl extends net.zeroinstall.model.impl.FeedElementImpl implements net.zeroinstall.model.Constraint
{
private static final long serialVersionUID = 1L;
public ConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NOTBEFORE$0 =
new javax.xml.namespace.QName("", "not-before");
private static final javax.xml.namespace.QName BEFORE$2 =
new javax.xml.namespace.QName("", "before");
/**
* Gets the "not-before" attribute
*/
public java.lang.String getNotBefore()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTBEFORE$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "not-before" attribute
*/
public org.apache.xmlbeans.XmlString xgetNotBefore()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTBEFORE$0);
return target;
}
}
/**
* True if has "not-before" attribute
*/
public boolean isSetNotBefore()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(NOTBEFORE$0) != null;
}
}
/**
* Sets the "not-before" attribute
*/
public void setNotBefore(java.lang.String notBefore)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTBEFORE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NOTBEFORE$0);
}
target.setStringValue(notBefore);
}
}
/**
* Sets (as xml) the "not-before" attribute
*/
public void xsetNotBefore(org.apache.xmlbeans.XmlString notBefore)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTBEFORE$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NOTBEFORE$0);
}
target.set(notBefore);
}
}
/**
* Unsets the "not-before" attribute
*/
public void unsetNotBefore()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(NOTBEFORE$0);
}
}
/**
* Gets the "before" attribute
*/
public java.lang.String getBefore()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEFORE$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "before" attribute
*/
public org.apache.xmlbeans.XmlString xgetBefore()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEFORE$2);
return target;
}
}
/**
* True if has "before" attribute
*/
public boolean isSetBefore()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(BEFORE$2) != null;
}
}
/**
* Sets the "before" attribute
*/
public void setBefore(java.lang.String before)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEFORE$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BEFORE$2);
}
target.setStringValue(before);
}
}
/**
* Sets (as xml) the "before" attribute
*/
public void xsetBefore(org.apache.xmlbeans.XmlString before)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEFORE$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BEFORE$2);
}
target.set(before);
}
}
/**
* Unsets the "before" attribute
*/
public void unsetBefore()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(BEFORE$2);
}
}
}