public class BrowseUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATIONS
Constant indicating the name of the Annotations node (JSON) that Boomi annotation resides in
|
static String |
BOOMI_ANNOTATION_DATAFORMAT
Constant indicating the name of the Data Format element
|
static String |
BOOMI_ANNOTATION_DATATYPE
Constant indicating the name of the dataType attribute
|
static String |
BOOMI_ANNOTATION_FIELD
Constant indicating the name of the Field element
|
static String |
BOOMI_ANNOTATION_FIELD_FILTERABLE
Constant indicating the name of the filterable attribute
|
static String |
BOOMI_ANNOTATION_FIELD_NAME
Constant indicating the name of the name attribute
|
static String |
BOOMI_ANNOTATION_FIELD_SELECTABLE
Constant indicating the name of the selectable attribute
|
static String |
BOOMI_ANNOTATION_FIELD_SELECTED
Constant indicating the name of the selected attribute
|
static String |
BOOMI_ANNOTATION_FIELD_SORTABLE
Constant indicating the name of the sortable attribute
|
static String |
BOOMI_ANNOTATION_FIELD_TYPE
Constant indicating the name of the type attribute
|
static String |
BOOMI_ANNOTATION_FIELD_TYPE_NS
Constant indicating the name of the type namespace attribute
|
static String |
BOOMI_ANNOTATION_FIELDSPEC
Constant indicating the name of the Field Specification element
|
static String |
BOOMI_ANNOTATION_FILTER
Constant indicating the name of the Filter element
|
static String |
BOOMI_ANNOTATION_FILTER_IGNORE
Constant indicating the name of the ignore attribute
|
static String |
BOOMI_ANNOTATION_FORMAT
Constant indicating the name of the format attribute
|
static String |
BOOMI_ANNOTATION_IGNORE_FOR_FILTERS
Constant indicating the name of the ignore filters attribute
|
static String |
BOOMI_ANNOTATION_IGNORE_FOR_SELECTION
Constant indicating the name of the ignore filters attribute
|
static String |
BOOMI_ANNOTATION_IGNORE_FOR_SORT
Constant indicating the name of the ignore filters attribute
|
static String |
BOOMI_ANNOTATION_JSON_DATAFORMAT
Constant indicating the name of the Data Format node (JSON)
|
static String |
BOOMI_ANNOTATION_JSON_FIELDS
Constant indicating the name of the Fields node (JSON)
|
static String |
BOOMI_ANNOTATION_JSON_FIELDSPEC
Constant indicating the name of the Field Specification node (JSON)
|
static String |
BOOMI_ANNOTATION_NAMESPACE
Constant indicating the namespace of the Filter annotation
|
static String |
BOOMI_FIELD_DELIMITER
Constant indicating the delimiter in for field names
|
static Comparator<ObjectType> |
OBJECT_TYPE_COMPARATOR
A Comparator which can be used to sort ObjectType's into lexicographical order.
|
Modifier and Type | Method and Description |
---|---|
static Element |
buildFilterElement(Document doc,
boolean ignore)
Constructs a
Filter element |
static Element |
buildFilterElement(Document doc,
boolean ignore,
Collection<String> extraFilterFields)
Constructs a
Filter element |
static Element |
generateFieldElement(Document doc,
String name)
Constructs a
Field element |
public static final String BOOMI_ANNOTATION_NAMESPACE
public static final String BOOMI_ANNOTATION_FILTER
public static final String BOOMI_ANNOTATION_FIELDSPEC
public static final String BOOMI_ANNOTATION_FILTER_IGNORE
public static final String BOOMI_ANNOTATION_IGNORE_FOR_FILTERS
public static final String BOOMI_ANNOTATION_IGNORE_FOR_SORT
public static final String BOOMI_ANNOTATION_IGNORE_FOR_SELECTION
public static final String BOOMI_ANNOTATION_FIELD
public static final String BOOMI_ANNOTATION_FIELD_NAME
public static final String BOOMI_ANNOTATION_FIELD_TYPE
public static final String BOOMI_ANNOTATION_FIELD_TYPE_NS
public static final String BOOMI_ANNOTATION_FIELD_FILTERABLE
public static final String BOOMI_ANNOTATION_FIELD_SORTABLE
public static final String BOOMI_ANNOTATION_FIELD_SELECTABLE
public static final String BOOMI_ANNOTATION_FIELD_SELECTED
public static final String ANNOTATIONS
public static final String BOOMI_ANNOTATION_JSON_FIELDSPEC
public static final String BOOMI_ANNOTATION_DATAFORMAT
public static final String BOOMI_ANNOTATION_JSON_DATAFORMAT
public static final String BOOMI_ANNOTATION_JSON_FIELDS
public static final String BOOMI_ANNOTATION_DATATYPE
public static final String BOOMI_ANNOTATION_FORMAT
public static final String BOOMI_FIELD_DELIMITER
public static final Comparator<ObjectType> OBJECT_TYPE_COMPARATOR
Example usage:
ObjectTypes types = new ObjectTypes(); // ... populate types list ... Collections.sort(types.getTypes(), BrowseUtil.OBJECT_TYPE_COMPARATOR);
public static Element buildFilterElement(Document doc, boolean ignore)
Filter
elementdoc
- the Document
used to construct the Element
ignore
- whether to ignore child elements or notpublic static Element buildFilterElement(Document doc, boolean ignore, Collection<String> extraFilterFields)
Filter
elementdoc
- the Document
used to construct the Element
ignore
- whether to ignore child elements or notextraFilterFields
- a Collection
of String
s indicating additional filter field
names that should be made available during browsing