
com.tectonica.jonix.onix2.Conference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jonix-onix2 Show documentation
Show all versions of jonix-onix2 Show documentation
Collection of classes for processing Onix-2 sources
/*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at [email protected]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tectonica.jonix.onix2;
import java.io.Serializable;
import java.util.List;
import com.tectonica.jonix.JPU;
import com.tectonica.jonix.OnixComposite.OnixSuperComposite;
import com.tectonica.jonix.codelist.LanguageCodes;
import com.tectonica.jonix.codelist.RecordSourceTypes;
import com.tectonica.jonix.codelist.TextCaseFlags;
import com.tectonica.jonix.codelist.TextFormats;
import com.tectonica.jonix.codelist.TransliterationSchemes;
/*
* NOTE: THIS IS AN AUTO-GENERATED FILE, DON'T EDIT MANUALLY
*/
/**
* Conference composite
*
* A group of data elements which together describe a conference to which the product is related. Repeatable if the
* product contains material from two or more conferences.
*
*
*
* Reference name
* <Conference>
*
*
* Short tag
* <conference>
*
*
*/
public class Conference implements OnixSuperComposite, Serializable
{
private static final long serialVersionUID = 1L;
public static final String refname = "Conference";
public static final String shortname = "conference";
// ///////////////////////////////////////////////////////////////////////////////
// ATTRIBUTES
// ///////////////////////////////////////////////////////////////////////////////
public TextFormats textformat;
public TextCaseFlags textcase;
public LanguageCodes language;
public TransliterationSchemes transliteration;
/**
* (type: DateOrDateTime)
*/
public String datestamp;
public RecordSourceTypes sourcetype;
public String sourcename;
// ///////////////////////////////////////////////////////////////////////////////
// MEMBERS
// ///////////////////////////////////////////////////////////////////////////////
/**
* (this field is optional)
*/
public ConferenceRole conferenceRole;
/**
* (this field is required)
*/
public ConferenceName conferenceName;
/**
* (this field is optional)
*/
public ConferenceAcronym conferenceAcronym;
/**
* (this field is optional)
*/
public ConferenceNumber conferenceNumber;
/**
* (this field is optional)
*/
public ConferenceTheme conferenceTheme;
/**
* (this field is optional)
*/
public ConferenceDate conferenceDate;
/**
* (this field is optional)
*/
public ConferencePlace conferencePlace;
/**
* (this list may be empty)
*/
public List conferenceSponsors;
/**
* (this list may be empty)
*/
public List websites;
// ///////////////////////////////////////////////////////////////////////////////
// SERVICES
// ///////////////////////////////////////////////////////////////////////////////
public Conference()
{}
public Conference(org.w3c.dom.Element element)
{
textformat = TextFormats.byCode(JPU.getAttribute(element, "textformat"));
textcase = TextCaseFlags.byCode(JPU.getAttribute(element, "textcase"));
language = LanguageCodes.byCode(JPU.getAttribute(element, "language"));
transliteration = TransliterationSchemes.byCode(JPU.getAttribute(element, "transliteration"));
datestamp = JPU.getAttribute(element, "datestamp");
sourcetype = RecordSourceTypes.byCode(JPU.getAttribute(element, "sourcetype"));
sourcename = JPU.getAttribute(element, "sourcename");
JPU.forElementsOf(element, new JPU.ElementListener()
{
@Override
public void onElement(org.w3c.dom.Element element)
{
final String name = element.getNodeName();
if (name.equals(ConferenceRole.refname) || name.equals(ConferenceRole.shortname))
conferenceRole = new ConferenceRole(element);
else if (name.equals(ConferenceName.refname) || name.equals(ConferenceName.shortname))
conferenceName = new ConferenceName(element);
else if (name.equals(ConferenceAcronym.refname) || name.equals(ConferenceAcronym.shortname))
conferenceAcronym = new ConferenceAcronym(element);
else if (name.equals(ConferenceNumber.refname) || name.equals(ConferenceNumber.shortname))
conferenceNumber = new ConferenceNumber(element);
else if (name.equals(ConferenceTheme.refname) || name.equals(ConferenceTheme.shortname))
conferenceTheme = new ConferenceTheme(element);
else if (name.equals(ConferenceDate.refname) || name.equals(ConferenceDate.shortname))
conferenceDate = new ConferenceDate(element);
else if (name.equals(ConferencePlace.refname) || name.equals(ConferencePlace.shortname))
conferencePlace = new ConferencePlace(element);
else if (name.equals(ConferenceSponsor.refname) || name.equals(ConferenceSponsor.shortname))
conferenceSponsors = JPU.addToList(conferenceSponsors, new ConferenceSponsor(element));
else if (name.equals(Website.refname) || name.equals(Website.shortname))
websites = JPU.addToList(websites, new Website(element));
}
});
}
/**
* Raw Format: Fixed-length, two numeric digits
*/
public String getConferenceRoleValue()
{
return (conferenceRole == null) ? null : conferenceRole.value;
}
/**
* Raw Format: Variable-length text, suggested maximum length 200 characters.
*/
public String getConferenceNameValue()
{
return (conferenceName == null) ? null : conferenceName.value;
}
/**
* Raw Format: Variable-length text, suggested maximum length 20 characters
*/
public String getConferenceAcronymValue()
{
return (conferenceAcronym == null) ? null : conferenceAcronym.value;
}
/**
* Raw Format: Variable-length integer, suggested maximum length 4 characters
*/
public String getConferenceNumberValue()
{
return (conferenceNumber == null) ? null : conferenceNumber.value;
}
/**
* Raw Format: Variable-length text, suggested maximum length 200 characters
*/
public String getConferenceThemeValue()
{
return (conferenceTheme == null) ? null : conferenceTheme.value;
}
/**
* Raw Format: Date as year (YYYY) or month and year (YYYYMM).
*/
public String getConferenceDateValue()
{
return (conferenceDate == null) ? null : conferenceDate.value;
}
/**
* Raw Format: Variable-length text, suggested maximum length 100 characters
*/
public String getConferencePlaceValue()
{
return (conferencePlace == null) ? null : conferencePlace.value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy