📄 newssearchresult.java
字号:
* @return true if SubmittedToDate is set, false if not
*/
public boolean hasSubmittedToDate () {
return (_submittedToDate != null);
}
/**
* Discards SubmittedToDate's value.
*/
public void deleteSubmittedToDate () {
_submittedToDate = null;
}
/**
* Get the submittedBy property.
*
*
*/
public String getSubmittedBy () {
return (_submittedBy);
}
/**
* Set the submittedBy property.
*
*
*/
public void setSubmittedBy (String newValue) {
_submittedBy = newValue;
}
/**
* Checks for whether SubmittedBy is set or not.
*
* @return true if SubmittedBy is set, false if not
*/
public boolean hasSubmittedBy () {
return (_submittedBy != null);
}
/**
* Discards SubmittedBy's value.
*/
public void deleteSubmittedBy () {
_submittedBy = null;
}
/**
* Get the approvedDate property.
*/
public String getApprovedDate () {
return (_approvedDate);
}
/**
* Set the approvedDate property.
*/
public void setApprovedDate (String newValue) {
_approvedDate = newValue;
}
/**
* Checks for whether ApprovedDate is set or not.
*
* @return true if ApprovedDate is set, false if not
*/
public boolean hasApprovedDate () {
return (_approvedDate != null);
}
/**
* Discards ApprovedDate's value.
*/
public void deleteApprovedDate () {
_approvedDate = null;
}
/**
* Get the submittedDate property.
*/
public String getSubmittedDate () {
return (_submittedDate);
}
/**
* Set the submittedDate property.
*/
public void setSubmittedDate (String newValue) {
_submittedDate = newValue;
}
/**
* Checks for whether SubmittedDate is set or not.
*
* @return true if SubmittedDate is set, false if not
*/
public boolean hasSubmittedDate () {
return (_submittedDate != null);
}
/**
* Discards SubmittedDate's value.
*/
public void deleteSubmittedDate () {
_submittedDate = null;
}
/**
* Get the notes property.
*/
public String getNotes () {
return (_notes);
}
/**
* Set the notes property.
*/
public void setNotes (String newValue) {
_notes = newValue;
}
/**
* Checks for whether Notes is set or not.
*
* @return true if Notes is set, false if not
*/
public boolean hasNotes () {
return (_notes != null);
}
/**
* Discards Notes's value.
*/
public void deleteNotes () {
_notes = null;
}
/**
* Get the newsContent property.
*/
public String getNewsContent () {
return (_newsContent);
}
/**
* Set the newsContent property.
*/
public void setNewsContent (String newValue) {
_newsContent = newValue;
}
/**
* Checks for whether NewsContent is set or not.
*
* @return true if NewsContent is set, false if not
*/
public boolean hasNewsContent () {
return (_newsContent != null);
}
/**
* Discards NewsContent's value.
*/
public void deleteNewsContent () {
_newsContent = null;
}
/**
* Get the newsTypeOther property.
*/
public String getNewsTypeOther () {
return (_newsTypeOther);
}
/**
* Set the newsTypeOther property.
*/
public void setNewsTypeOther (String newValue) {
_newsTypeOther = newValue;
}
/**
* Checks for whether NewsTypeOther is set or not.
*
* @return true if NewsTypeOther is set, false if not
*/
public boolean hasNewsTypeOther () {
return (_newsTypeOther != null);
}
/**
* Discards NewsTypeOther's value.
*/
public void deleteNewsTypeOther () {
_newsTypeOther = null;
}
/**
* Get the newsId property.
*/
public String getNewsId () {
return (_newsId);
}
/**
* Set the newsId property.
*/
public void setNewsId (String newValue) {
_newsId = newValue;
}
/**
* Checks for whether NewsId is set or not.
*
* @return true if NewsId is set, false if not
*/
public boolean hasNewsId () {
return (_newsId != null);
}
/**
* Discards NewsId's value.
*/
public void deleteNewsId () {
_newsId = null;
}
/**
* Gets the XML tag name for this object.
*/
public String getXmlTagName () {
return ($NEWS_SEARCH);
}
/**
* Gets the XML tag name for this class.
*/
public static String getClassXmlTagName () {
return ($NEWS_SEARCH);
}
/**
* Checks this object to see if it will produce valid XML.
*/
public boolean isValid () {
return (true);
}
/**
* Checks the XML to see whether it matches the
* XML contents of this class.
*/
public static boolean matches (XmlElement xml, XmlObject parent) {
if (xml == null) {
return (false);
}
return (xml.matches($NEWS_SEARCH, _nsm_, parent));
}
/**
* This method unmarshals an XML document instance
* into an instance of this class.
*/
public static NewsSearchResult unmarshal (
InputStream in) throws Exception {
NewsSearchResult obj = new NewsSearchResult();
ObjectFactory.unmarshal(obj, in);
return (obj);
}
/**
* Populates this object with the values from the
* parsed XML.
* @deprecated will be removed in a future release.
* Use {@link #unmarshal(XmlElement)}.
*/
public void fromXml (XmlElement xml) {
unmarshal(xml);
}
/**
* Populates this object with the values from the
* parsed XML.
*
* @since 2.5
*/
public void unmarshal (XmlElement xml) {
if (xml == null) {
return;
}
if (!xml.matches($NEWS_SEARCH, this)) {
return;
}
Vector doc_namespaces = xml.getDeclaredNamespaces();
if (doc_namespaces != null) {
_doc_declared_namespaces_ = (Vector)doc_namespaces.clone();
}
/*
* Get the contained XmlElement, this is what we process
*/
xml = xml.getChildAt(0);
if (xml == null) {
return;
}
if (xml.matches($APPROVED_FROM_DATE, this)) {
setApprovedFromDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($APPROVED_TO_DATE, this)) {
setApprovedToDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($ORDER_BY, this)) {
setOrderBy(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($COLUMN_NO, this)) {
setColumnNo(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($APPROVED_BY, this)) {
setApprovedBy(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($ACTIVE_CD, this)) {
setActiveCD(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($APPROVED_CD, this)) {
setApprovedCD(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($DURATION_CD, this)) {
setDurationCD(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($CONTENT_TYPE_CD, this)) {
setContentTypeCD(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NEWS_TYPE_CD, this)) {
setNewsTypeCD(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($USER_NAME, this)) {
setUserName(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NEWS_HEADING, this)) {
setNewsHeading(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($SUBMITTED_FROM_DATE, this)) {
setSubmittedFromDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($SUBMITTED_TO_DATE, this)) {
setSubmittedToDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($SUBMITTED_BY, this)) {
setSubmittedBy(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($APPROVED_DATE, this)) {
setApprovedDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($SUBMITTED_DATE, this)) {
setSubmittedDate(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NOTES, this)) {
setNotes(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NEWS_CONTENT, this)) {
setNewsContent(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NEWS_TYPE_OTHER, this)) {
setNewsTypeOther(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
if (xml.matches($NEWS_ID, this)) {
setNewsId(xml.getData());
xml = xml.next();
if (xml == null) {
return;
}
}
}
/**
* Unmarshal any attributes.
*
* @param xml the XmlElement holding the parsed XML
* @since 2.5
*/
protected void unmarshalAttributes (XmlElement xml) {
}
/**
* Writes this instance to a stream.
*
* @param stream the OutputStream to write the XML object to
* @deprecated This method will be removed in a future release.
* Use {@link #marshal(XmlOutputStream)} or {@link #marshal(OutputStream)}.
*/
public void toXml (OutputStream stream) {
marshal(stream);
}
/**
* Writes this instance to a stream.
*
* @param stream the OutputStream to write the XML object to
* @param embed_files set to true to embed files in the XML
* @deprecated This method will be removed in a future release.
* Use {@link #marshal(XmlOutputStream)} or {@link #marshal(OutputStream)}.
*/
public void toXml (OutputStream stream, boolean embed_files) {
XmlOutputStream out = new FormattedOutputStream(stream);
out.setEmbedFiles(embed_files);
marshal(out);
}
/**
* Writes this instance to a stream.
*
* @param stream the OutputStream to write the XML object to
* @param embed_files set to true to embed files in the XML
* @deprecated This method will be removed in a future release.
* Use {@link #marshal(XmlOutputStream)} or {@link #marshal(OutputStream)}.
*/
public void toXml (
OutputStream stream, String indent, boolean embed_files) {
FormattedOutputStream out = new FormattedOutputStream(stream);
out.setIndentString(indent);
out.setEmbedFiles(embed_files);
marshal(out);
}
/**
* Writes this instance to a stream. If the OutputStream is not an
* instance of XmlOutputStream then a FormattedOutputStream
* will be created which wraps the OutputStream.
*
* @param stream the OutputStream to write the XML object to
* @see #marshal(XmlOutputStream)
* @since 2.5
*/
public void marshal (OutputStream stream) {
XmlOutputStream out = new FormattedOutputStream(stream);
marshal(out);
}
/**
* Writes this instance to an XmlOutputStream.
*
* @param out the XmlOutputStream to write the XML object to
* @see #marshal(OutputStream)
* @since 2.5
*/
public void marshal (XmlOutputStream out) {
out.writeStartTag(getXmlTagName(), false);
out.incrementIndent();
out.write($APPROVED_FROM_DATE,
_approvedFromDate);
out.write($APPROVED_TO_DATE,
_approvedToDate);
out.write($ORDER_BY,
_orderBy);
out.write($COLUMN_NO,
_columnNo);
out.write($APPROVED_BY,
_approvedBy);
out.write($ACTIVE_CD,
_activeCD);
out.write($APPROVED_CD,
_approvedCD);
out.write($DURATION_CD,
_durationCD);
out.write($CONTENT_TYPE_CD,
_contentTypeCD);
out.write($NEWS_TYPE_CD,
_newsTypeCD);
out.write($USER_NAME,
_userName);
out.write($NEWS_HEADING,
_newsHeading);
out.write($SUBMITTED_FROM_DATE,
_submittedFromDate);
out.write($SUBMITTED_TO_DATE,
_submittedToDate);
out.write($SUBMITTED_BY,
_submittedBy);
out.write($APPROVED_DATE,
_approvedDate);
out.write($SUBMITTED_DATE,
_submittedDate);
out.write($NOTES,
_notes);
out.write($NEWS_CONTENT,
_newsContent);
out.write($NEWS_TYPE_OTHER,
_newsTypeOther);
out.write($NEWS_ID,
_newsId);
out.decrementIndent();
out.writeEndTag(getXmlTagName());
}
/**
* Get the XmlAttributeList for marshalling.
*
* @param attrs the currently populated XmlAttributeList.
* @return a populated XmlAttributeList
* @since 2.5
*/
protected XmlAttributeList marshalAttributes (XmlAttributeList attrs) {
return (attrs);
}
/**
* Get this object's parent object.
*/
public XmlObject get$Parent () {
return (_parent_);
}
/**
* Set this object's parent object.
*/
public void set$Parent (XmlObject parent) {
_parent_ = parent;
}
/**
* The default <code>XmlNamespaceManager</code> for this class.
* @since 2.5
*/
protected static XmlNamespaceManager _nsm_ = null;
/**
* Get the <code>XmlNamespaceManager</code> for this class.
* This will be null if no namespaces on this class or if
* namespace support is disabled during code generation.
*
* @since 2.5
*/
public XmlNamespaceManager get$NamespaceManager () {
return (_nsm_);
}
/**
* Storage for namespaces declared in the input document.
* @since 2.5
*/
protected Vector _doc_declared_namespaces_ = null;
/**
* Get the Vector holding the namespaces declared in the element
* that this instance was unmarshalled from.
*
* @since 2.5
*/
public Vector get$DocumentNamespaces () {
return (_doc_declared_namespaces_);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -