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 StringANNOTATIONSConstant indicating the name of the Annotations node (JSON) that Boomi annotation resides instatic StringBOOMI_ANNOTATION_DATAFORMATConstant indicating the name of the Data Format elementstatic StringBOOMI_ANNOTATION_DATATYPEConstant indicating the name of the dataType attributestatic StringBOOMI_ANNOTATION_FIELDConstant indicating the name of the Field elementstatic StringBOOMI_ANNOTATION_FIELD_FILTERABLEConstant indicating the name of the filterable attributestatic StringBOOMI_ANNOTATION_FIELD_NAMEConstant indicating the name of the name attributestatic StringBOOMI_ANNOTATION_FIELD_SELECTABLEConstant indicating the name of the selectable attributestatic StringBOOMI_ANNOTATION_FIELD_SELECTEDConstant indicating the name of the selected attributestatic StringBOOMI_ANNOTATION_FIELD_SORTABLEConstant indicating the name of the sortable attributestatic StringBOOMI_ANNOTATION_FIELD_TYPEConstant indicating the name of the type attributestatic StringBOOMI_ANNOTATION_FIELD_TYPE_NSConstant indicating the name of the type namespace attributestatic StringBOOMI_ANNOTATION_FIELDSPECConstant indicating the name of the Field Specification elementstatic StringBOOMI_ANNOTATION_FILTERConstant indicating the name of the Filter elementstatic StringBOOMI_ANNOTATION_FILTER_IGNOREConstant indicating the name of the ignore attributestatic StringBOOMI_ANNOTATION_FORMATConstant indicating the name of the format attributestatic StringBOOMI_ANNOTATION_IGNORE_FOR_FILTERSConstant indicating the name of the ignore filters attributestatic StringBOOMI_ANNOTATION_IGNORE_FOR_SELECTIONConstant indicating the name of the ignore filters attributestatic StringBOOMI_ANNOTATION_IGNORE_FOR_SORTConstant indicating the name of the ignore filters attributestatic StringBOOMI_ANNOTATION_JSON_DATAFORMATConstant indicating the name of the Data Format node (JSON)static StringBOOMI_ANNOTATION_JSON_FIELDSConstant indicating the name of the Fields node (JSON)static StringBOOMI_ANNOTATION_JSON_FIELDSPECConstant indicating the name of the Field Specification node (JSON)static StringBOOMI_ANNOTATION_NAMESPACEConstant indicating the namespace of the Filter annotationstatic StringBOOMI_FIELD_DELIMITERConstant indicating the delimiter in for field namesstatic Comparator<ObjectType>OBJECT_TYPE_COMPARATORA 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 ElementbuildFilterElement(Document doc, boolean ignore)Constructs aFilterelementstatic ElementbuildFilterElement(Document doc, boolean ignore, Collection<String> extraFilterFields)Constructs aFilterelementstatic ElementgenerateFieldElement(Document doc, String name)Constructs aFieldelement
-
-
-
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 aFilterelement- Parameters:
doc- theDocumentused to construct theElementignore- whether to ignore child elements or not
-
buildFilterElement
public static Element buildFilterElement(Document doc, boolean ignore, Collection<String> extraFilterFields)
Constructs aFilterelement- Parameters:
doc- theDocumentused to construct theElementignore- whether to ignore child elements or notextraFilterFields- aCollectionofStrings indicating additional filter field names that should be made available during browsing
-
-