Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
_pageNames
List of supported COBie Sheet names in the order to be processed
|
ERR_BAD_URL, ERR_EXCEL_NO_URL, ERR_EXPORT_ERROR, ERR_EXPORT_FILE_NAME, ERR_FILE_OPEN, ERR_FILE_READ_ERROR, ERR_INVALID_ACCESSOR, ERR_INVALID_OMNICLASS_STUCT, ERR_INVALID_XLS_FILE_ERROR, ERR_SHEET_CLASS_NOT_FOUND, ERR_SHEET_INVALID_CLASS, ERR_UNSUPPORTED_FILE_TYPE, FLAG_ALL_CONTACTS_ARE_COMPANIES, FLAG_CONVERT_EXTENSION_COLS, FLAG_CONVERT_GUID, FLAG_CONVERT_UNIQUE_IDs, FLAG_INFER_LEVELS, FLAG_INFER_SYSTEMS, FLAG_PROMOTE_COMPONENTS, FLAG_PROMOTE_SPACES, FLAG_SKIP_ON_NO_VALUE, FLAG_SKIP_ON_NULL, ITEM_CLASS_PREFIX, MSG_FILE_CREATED, MSG_FILE_NOT_FOUND_ERROR, MSG_FILE_PARSED, MSG_LOADING_STYLES, MSG_VERSION, SHEET_ASSEMBLY, SHEET_ATTRIB_TYPE, SHEET_ATTRIBUTE, SHEET_COMPANY, SHEET_COMPONENT, SHEET_CONTACT, SHEET_DOCUMENT, SHEET_EXCEL, SHEET_FACILITY, SHEET_FLOOR, SHEET_ISSUE, SHEET_JOB, SHEET_RESOURCE, SHEET_SPACE, SHEET_SPARE, SHEET_SYSTEM, SHEET_TYPE, SHEET_VALUE_LIST, SHEET_ZONE, VALIDATE_ATTRIB_VALUE_IS_NAME, VALIDATE_DUPLICATE_ITEM, VALIDATE_MISSING_CHILD_REF, VALIDATE_MISSING_PARENT_REF, VALIDATE_MISSING_REF, VALIDATE_MISSING_ROW_REF, VALIDATE_MISSING_SHEET_REF, VALIDATE_SPACE_LIST, VALIDATE_TASK_NUMBER, VALIDATE_TASK_PREREQ_MISSING, VALIDATE_UNRESOLVED_REF, VALIDATE_VALUELIST_MISMATCH, WRN_INVALID_CELL_VALUE, WRN_MISSING_COL_NAME, WRN_MISSING_PROPERTY, WRN_OPEN_STYLE_TEMPLATE
Constructor and Description |
---|
BIMProjectParser(IdFactory idFactory,
MessageLogger logger,
java.util.Locale locale,
long flags) |
BIMProjectParser(long flags) |
Modifier and Type | Method and Description |
---|---|
void |
addConvertedField(java.lang.String tableName,
java.lang.String fieldName,
java.lang.String attributeName)
Fields in this list are converted to COBie attributes instead of treated
as standard parts of the COBie table.
|
void |
addFile(InputFile cobieFile)
Specify the file name for a single sheet from a COBie spread sheet to
loading
|
void |
addFilter(Filter filter) |
void |
addPage(Page page) |
void |
addSkippedSpace(java.lang.String spaceName)
The parser tracks all spaces that are skipped so that things that reference a skipped space can also be skipped
|
void |
areaFromAttribute(java.lang.String areaAttribute) |
void |
associateCategoriesWithAttributeTypes(java.lang.String[] pageList) |
void |
caculateItemCount() |
void |
categoryFromAttribute(java.lang.String omniClassAttribute)
Populate the COBie category field from the specified attribute
|
void |
clenup() |
java.lang.String |
convertCase(java.lang.String s)
Provides a centralized place to control if the parser is case sensitive.
|
void |
deleteFiles(java.lang.String workingDirRoot) |
void |
execute() |
void |
export(java.lang.String fileName,
java.lang.String[] pageList,
java.io.InputStream templateStream,
ExportProgressTracker tracker,
Exporter.ExportFormat fileFormat)
Parsers should implement this method to support export functionality
|
java.util.Iterator<Filter> |
filters()
List of filters to restrict value on input.
|
ItemAttributeType |
getAttributeType(java.lang.String typeName) |
AttributeTypeMap |
getCategoryMap() |
ItemCONTACT |
getCompanyFromContact(java.lang.String companyName) |
java.lang.String |
getConvertedField(java.lang.String tableName,
java.lang.String fieldName) |
Item |
getItem(java.lang.String pageName,
java.lang.String key)
Retrieves an item from the parse tree
|
int |
getItemCount()
This is set by resolveReferences, and is used to show a % complete
|
java.util.Locale |
getLocale() |
MessageLogger |
getLogger() |
Page |
getPage(java.lang.String pageName) |
ItemValueList |
getValueList(java.util.HashSet<java.lang.String> valueSet) |
java.lang.String |
getVendorAttribute()
An attribute name can be specified for components that has company reference for
the supplier/vendor of the component.
|
boolean |
isSpaceSkipped(java.lang.String spaceName)
Test if spaceName is in the skipped spaces list
|
void |
levelsFromAttribute(java.lang.String levelAttrib) |
static void |
main(java.lang.String[] args) |
static java.lang.String |
messageFromException(java.lang.Throwable t) |
void |
perimeterFromAttribute(java.lang.String perimeterAttribute) |
void |
printAll() |
void |
printPage(Page page) |
void |
resolveReferences()
Walk the parse tree and call resolve reference on every item found Must be
called after all data is loaded.
|
void |
setLogger(MessageLogger logger) |
void |
setVendorAttribute(java.lang.String vendorAttribute) |
void |
spacesFromAttribute(java.lang.String spaceAttrib) |
void |
systemsFromAttribute(java.lang.String systemNameAttrib) |
public static final java.lang.String[] _pageNames
public BIMProjectParser(long flags)
public BIMProjectParser(IdFactory idFactory, MessageLogger logger, java.util.Locale locale, long flags)
public void addConvertedField(java.lang.String tableName, java.lang.String fieldName, java.lang.String attributeName)
addConvertedField
in interface Parser
tableName
- fieldName
- attributeName
- COBie attribute name to which the field is convertedpublic java.lang.String getConvertedField(java.lang.String tableName, java.lang.String fieldName)
getConvertedField
in interface Parser
public void addFile(InputFile cobieFile) throws ParseException
fileName
- sheetName
- ParseException
public void addSkippedSpace(java.lang.String spaceName)
Parser
addSkippedSpace
in interface Parser
spaceName
- Name of the skipped pace;public boolean isSpaceSkipped(java.lang.String spaceName)
Parser
isSpaceSkipped
in interface Parser
public void addFilter(Filter filter)
public java.util.Iterator<Filter> filters()
Parser
public void execute()
public void deleteFiles(java.lang.String workingDirRoot)
public void addPage(Page page)
public void clenup()
public void resolveReferences()
public void categoryFromAttribute(java.lang.String omniClassAttribute)
omniClassAttribute
- public void spacesFromAttribute(java.lang.String spaceAttrib)
public void levelsFromAttribute(java.lang.String levelAttrib)
public void areaFromAttribute(java.lang.String areaAttribute)
public void perimeterFromAttribute(java.lang.String perimeterAttribute)
public void systemsFromAttribute(java.lang.String systemNameAttrib)
public void associateCategoriesWithAttributeTypes(java.lang.String[] pageList)
public ItemValueList getValueList(java.util.HashSet<java.lang.String> valueSet)
public void caculateItemCount()
public Item getItem(java.lang.String pageName, java.lang.String key)
Parser
public ItemAttributeType getAttributeType(java.lang.String typeName)
public ItemCONTACT getCompanyFromContact(java.lang.String companyName)
getCompanyFromContact
in interface Parser
public java.lang.String convertCase(java.lang.String s)
convertCase
in interface Parser
s
- public AttributeTypeMap getCategoryMap()
public int getItemCount()
Parser
getItemCount
in interface Parser
public java.lang.String getVendorAttribute()
Parser
getVendorAttribute
in interface Parser
public void printPage(Page page)
public void printAll()
public MessageLogger getLogger()
public void setLogger(MessageLogger logger)
public void setVendorAttribute(java.lang.String vendorAttribute)
public void export(java.lang.String fileName, java.lang.String[] pageList, java.io.InputStream templateStream, ExportProgressTracker tracker, Exporter.ExportFormat fileFormat)
Parser
public static java.lang.String messageFromException(java.lang.Throwable t)
public static void main(java.lang.String[] args)