public class CategoryProfileParser<VALUE_TYPE> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALTERNATIVE_ID |
static String |
BOUNDING |
static String |
CATEGORY_ID |
static String |
CATEGORY_PROFILE |
static String |
CENTRAL |
static String |
LOWER_BOUND |
static String |
UPPER_BOUND |
| Constructor and Description |
|---|
CategoryProfileParser() |
| Modifier and Type | Method and Description |
|---|---|
CategoryProfile<VALUE_TYPE> |
boundingProfileFromXML(XMCDA xmcda,
StartElement startElement,
XMLEventReader eventReader)
Searches within the
<bounding> tag the lower and/or the upper bound(s) --only one of these are required,
but both can be present. |
CategoryProfile<VALUE_TYPE> |
fromXML(XMCDA xmcda,
StartElement startElement,
XMLEventReader eventReader) |
CategoryProfile.Profile<VALUE_TYPE> |
profileFromXML(XMCDA xmcda,
String initialTag,
XMLEventReader eventReader) |
void |
profileToXML(String tag,
CategoryProfile.Profile<VALUE_TYPE> profile,
XMLStreamWriter writer) |
void |
toXML(CategoryProfile<VALUE_TYPE> categoryProfile,
XMLStreamWriter writer) |
public static final String CATEGORY_PROFILE
public static final String CATEGORY_ID
public static final String CENTRAL
public static final String BOUNDING
public static final String ALTERNATIVE_ID
public static final String LOWER_BOUND
public static final String UPPER_BOUND
public CategoryProfile<VALUE_TYPE> fromXML(XMCDA xmcda, StartElement startElement, XMLEventReader eventReader) throws XMLStreamException
XMLStreamExceptionpublic CategoryProfile<VALUE_TYPE> boundingProfileFromXML(XMCDA xmcda, StartElement startElement, XMLEventReader eventReader) throws XMLStreamException
<bounding> tag the lower and/or the upper bound(s) --only one of these are required,
but both can be present.boundingProfile - the bounding profile in which lower and/or upper bounds will be setxmcda - the xmcda objectstartElement - the element starting the definition (corresponding to XMCDA tag 'bounding')eventReader - the XMLEventreader to useXMLStreamExceptionpublic CategoryProfile.Profile<VALUE_TYPE> profileFromXML(XMCDA xmcda, String initialTag, XMLEventReader eventReader) throws XMLStreamException
XMLStreamExceptionpublic void toXML(CategoryProfile<VALUE_TYPE> categoryProfile, XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic void profileToXML(String tag, CategoryProfile.Profile<VALUE_TYPE> profile, XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionCopyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.