📄 interval.java
字号:
/**
* The file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The Interval class represents the element "Interval" with the content
* model defined as follows:
* <p>
* <!ELEMENT Interval EMPTY><br>
*/
public class Interval extends com.borland.xml.toolkit.EmptyElement
{
/** xml tag name of this element. */
public static String _tagName = "Interval";
/** Defines a leftMargin attribute */
public com.borland.xml.toolkit.Attribute leftMargin = new com.borland.xml.toolkit.Attribute("leftMargin", "CDATA", "IMPLIED", "");
/** Defines a rightMargin attribute */
public com.borland.xml.toolkit.Attribute rightMargin = new com.borland.xml.toolkit.Attribute("rightMargin", "CDATA", "IMPLIED", "");
/** Defines a closure attribute */
public com.borland.xml.toolkit.Attribute closure = new com.borland.xml.toolkit.Attribute("closure", "(openClosed | openOpen | closedOpen | closedClosed)", "REQUIRED", "");
/**
* Creates an empty Interval object.
*/
public Interval()
{
super();
}
/**
* Creates a Interval object with the specified state.
* @param state boolean value
*/
public Interval(boolean state)
{
super(state);
}
/**
* Gets the value of "leftMargin" attribute.
*/
public String getLeftMargin()
{
return leftMargin.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setLeftMargin(String value_)
{
leftMargin.setValue(value_ );
}
/**
* Gets the value of "rightMargin" attribute.
*/
public String getRightMargin()
{
return rightMargin.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setRightMargin(String value_)
{
rightMargin.setValue(value_ );
}
/**
* Gets the value of "closure" attribute.
*/
public String getClosure()
{
return closure.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setClosure(String value_)
{
closure.setValue(value_ );
}
/**
* Marshals this object to an element.
*/
public com.borland.xml.toolkit.Element marshal()
{
com.borland.xml.toolkit.Element elem = super.marshal();
/** Marshals "leftMargin" attribute */
elem.addAttribute(leftMargin.marshal());
/** Marshals "rightMargin" attribute */
elem.addAttribute(rightMargin.marshal());
/** Marshals "closure" attribute */
elem.addAttribute(closure.marshal());
return elem;
}
/**
* Unmarshals the specified "Interval" element back to a Interval object.
*/
public static Interval unmarshal(com.borland.xml.toolkit.Element elem)
{
Interval __objInterval = (Interval)com.borland.xml.toolkit.EmptyElement.unmarshal(elem, new Interval());
if( __objInterval != null ) //found the element?
{
/** Unmarshals "leftMargin" attribute */
__objInterval.leftMargin.setValue(elem.getAttribute("leftMargin"));
/** Unmarshals "rightMargin" attribute */
__objInterval.rightMargin.setValue(elem.getAttribute("rightMargin"));
/** Unmarshals "closure" attribute */
__objInterval.closure.setValue(elem.getAttribute("closure"));
}
return __objInterval;
}
/**
* Validates this object. If you pass <code>true</code> to this method, it
* checks for the first error and stops. On the other hand, if you pass
* <code>false</code> to this method, it collects all the errors by
* visiting every available elements.
* @param firstError <code>true</code> to exit this method when the first error
* is found; <code>false</code> to collect all errors.
* @return com.borland.xml.toolkit.ErrorList A list that contains one or more errors.
* @see com.borland.xml.toolkit.XmlObject#validate()
* @see com.borland.xml.toolkit.XmlObject#isValid()
* @see com.borland.xml.toolkit.ErrorList
*/
public com.borland.xml.toolkit.ErrorList validate(boolean firstError)
{
com.borland.xml.toolkit.ErrorList errors = new com.borland.xml.toolkit.ErrorList();
return errors.size()==0 ? null : errors;
}
/**
* Gets the tag name of this element.
*/
public String get_TagName()
{
return _tagName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -