Package com.boomi.connector.api
Class BrowseUtil
- java.lang.Object
-
- com.boomi.connector.api.BrowseUtil
-
public class BrowseUtil extends Object
Utility methods for browsing
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANNOTATIONS
Constant indicating the name of the Annotations node (JSON) that Boomi annotation resides instatic String
BOOMI_ANNOTATION_DATAFORMAT
Constant indicating the name of the Data Format elementstatic String
BOOMI_ANNOTATION_DATATYPE
Constant indicating the name of the dataType attributestatic String
BOOMI_ANNOTATION_FIELD
Constant indicating the name of the Field elementstatic String
BOOMI_ANNOTATION_FIELD_FILTERABLE
Constant indicating the name of the filterable attributestatic String
BOOMI_ANNOTATION_FIELD_NAME
Constant indicating the name of the name attributestatic String
BOOMI_ANNOTATION_FIELD_SELECTABLE
Constant indicating the name of the selectable attributestatic String
BOOMI_ANNOTATION_FIELD_SELECTED
Constant indicating the name of the selected attributestatic String
BOOMI_ANNOTATION_FIELD_SORTABLE
Constant indicating the name of the sortable attributestatic String
BOOMI_ANNOTATION_FIELD_TYPE
Constant indicating the name of the type attributestatic String
BOOMI_ANNOTATION_FIELD_TYPE_NS
Constant indicating the name of the type namespace attributestatic String
BOOMI_ANNOTATION_FIELDSPEC
Constant indicating the name of the Field Specification elementstatic String
BOOMI_ANNOTATION_FILTER
Constant indicating the name of the Filter elementstatic String
BOOMI_ANNOTATION_FILTER_IGNORE
Constant indicating the name of the ignore attributestatic String
BOOMI_ANNOTATION_FORMAT
Constant indicating the name of the format attributestatic String
BOOMI_ANNOTATION_IGNORE_FOR_FILTERS
Constant indicating the name of the ignore filters attributestatic String
BOOMI_ANNOTATION_IGNORE_FOR_SELECTION
Constant indicating the name of the ignore filters attributestatic String
BOOMI_ANNOTATION_IGNORE_FOR_SORT
Constant indicating the name of the ignore filters attributestatic 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 annotationstatic String
BOOMI_FIELD_DELIMITER
Constant indicating the delimiter in for field namesstatic Comparator<ObjectType>
OBJECT_TYPE_COMPARATOR
A Comparator which can be used to sort ObjectType's into lexicographical order.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Element
buildFilterElement(Document doc, boolean ignore)
Constructs aFilter
elementstatic Element
buildFilterElement(Document doc, boolean ignore, Collection<String> extraFilterFields)
Constructs aFilter
elementstatic Element
generateFieldElement(Document doc, String name)
Constructs aField
element
-
-
-
Field Detail
-
BOOMI_ANNOTATION_NAMESPACE
public static final String BOOMI_ANNOTATION_NAMESPACE
Constant indicating the namespace of the Filter annotation- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FILTER
public static final String BOOMI_ANNOTATION_FILTER
Constant indicating the name of the Filter element- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELDSPEC
public static final String BOOMI_ANNOTATION_FIELDSPEC
Constant indicating the name of the Field Specification element- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FILTER_IGNORE
public static final String BOOMI_ANNOTATION_FILTER_IGNORE
Constant indicating the name of the ignore attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_IGNORE_FOR_FILTERS
public static final String BOOMI_ANNOTATION_IGNORE_FOR_FILTERS
Constant indicating the name of the ignore filters attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_IGNORE_FOR_SORT
public static final String BOOMI_ANNOTATION_IGNORE_FOR_SORT
Constant indicating the name of the ignore filters attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_IGNORE_FOR_SELECTION
public static final String BOOMI_ANNOTATION_IGNORE_FOR_SELECTION
Constant indicating the name of the ignore filters attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD
public static final String BOOMI_ANNOTATION_FIELD
Constant indicating the name of the Field element- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_NAME
public static final String BOOMI_ANNOTATION_FIELD_NAME
Constant indicating the name of the name attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_TYPE
public static final String BOOMI_ANNOTATION_FIELD_TYPE
Constant indicating the name of the type attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_TYPE_NS
public static final String BOOMI_ANNOTATION_FIELD_TYPE_NS
Constant indicating the name of the type namespace attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_FILTERABLE
public static final String BOOMI_ANNOTATION_FIELD_FILTERABLE
Constant indicating the name of the filterable attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_SORTABLE
public static final String BOOMI_ANNOTATION_FIELD_SORTABLE
Constant indicating the name of the sortable attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_SELECTABLE
public static final String BOOMI_ANNOTATION_FIELD_SELECTABLE
Constant indicating the name of the selectable attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FIELD_SELECTED
public static final String BOOMI_ANNOTATION_FIELD_SELECTED
Constant indicating the name of the selected attribute- See Also:
- Constant Field Values
-
ANNOTATIONS
public static final String ANNOTATIONS
Constant indicating the name of the Annotations node (JSON) that Boomi annotation resides in- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_JSON_FIELDSPEC
public static final String BOOMI_ANNOTATION_JSON_FIELDSPEC
Constant indicating the name of the Field Specification node (JSON)- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_DATAFORMAT
public static final String BOOMI_ANNOTATION_DATAFORMAT
Constant indicating the name of the Data Format element- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_JSON_DATAFORMAT
public static final String BOOMI_ANNOTATION_JSON_DATAFORMAT
Constant indicating the name of the Data Format node (JSON)- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_JSON_FIELDS
public static final String BOOMI_ANNOTATION_JSON_FIELDS
Constant indicating the name of the Fields node (JSON)- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_DATATYPE
public static final String BOOMI_ANNOTATION_DATATYPE
Constant indicating the name of the dataType attribute- See Also:
- Constant Field Values
-
BOOMI_ANNOTATION_FORMAT
public static final String BOOMI_ANNOTATION_FORMAT
Constant indicating the name of the format attribute- See Also:
- Constant Field Values
-
BOOMI_FIELD_DELIMITER
public static final String BOOMI_FIELD_DELIMITER
Constant indicating the delimiter in for field names- See Also:
- Constant Field Values
-
OBJECT_TYPE_COMPARATOR
public static final Comparator<ObjectType> OBJECT_TYPE_COMPARATOR
A Comparator which can be used to sort ObjectType's into lexicographical order. Uses the label for the ObjectType if defined, otherwise uses the id.Example usage:
ObjectTypes types = new ObjectTypes(); // ... populate types list ... Collections.sort(types.getTypes(), BrowseUtil.OBJECT_TYPE_COMPARATOR);
-
-
Method Detail
-
buildFilterElement
public static Element buildFilterElement(Document doc, boolean ignore)
Constructs aFilter
element- Parameters:
doc
- theDocument
used to construct theElement
ignore
- whether to ignore child elements or not
-
buildFilterElement
public static Element buildFilterElement(Document doc, boolean ignore, Collection<String> extraFilterFields)
Constructs aFilter
element- Parameters:
doc
- theDocument
used to construct theElement
ignore
- whether to ignore child elements or notextraFilterFields
- aCollection
ofString
s indicating additional filter field names that should be made available during browsing
-
-