public interface Parser
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERR_BAD_URL |
static java.lang.String |
ERR_EXCEL_NO_URL |
static java.lang.String |
ERR_EXPORT_ERROR |
static java.lang.String |
ERR_EXPORT_FILE_NAME |
static java.lang.String |
ERR_FILE_OPEN |
static java.lang.String |
ERR_FILE_READ_ERROR |
static java.lang.String |
ERR_INVALID_ACCESSOR |
static java.lang.String |
ERR_INVALID_OMNICLASS_STUCT |
static java.lang.String |
ERR_INVALID_XLS_FILE_ERROR |
static java.lang.String |
ERR_SHEET_CLASS_NOT_FOUND |
static java.lang.String |
ERR_SHEET_INVALID_CLASS |
static java.lang.String |
ERR_UNSUPPORTED_FILE_TYPE |
static long |
FLAG_ALL_CONTACTS_ARE_COMPANIES
Causes the parser to generate Companies for all contacts regardless
of how they are referenced
|
static long |
FLAG_CONVERT_EXTENSION_COLS
Convert unrecognized columns which are usually COBie extension columns
to attributes
|
static long |
FLAG_CONVERT_GUID
Determines if the parser attempts to convert the value found in ExtIdentifier
from a base 64 number to a GUID format
|
static long |
FLAG_CONVERT_UNIQUE_IDs
Identify and convert Revit UniqueIds to Revit export GUIDs
|
static long |
FLAG_INFER_LEVELS
IF this flag is set, the parser looks for the level attribute and uses its value
to set the floor reference in components if it is unset.
|
static long |
FLAG_INFER_SYSTEMS
The System Name attribute may contain system definition
that are not reflected in the COBie data, If this flag is
set the parse processes the SystemName attribute and tries to
build systems
|
static long |
FLAG_PROMOTE_COMPONENTS
The COBie spec associates components with spaces, but the modeling tools only
require a model item to be associated with a level.
|
static long |
FLAG_PROMOTE_SPACES
The COBie spec assumes that ever space will reference a level.
|
static long |
FLAG_SKIP_ON_NO_VALUE
Objects that don't have a meaningful value are skipped on load.
|
static long |
FLAG_SKIP_ON_NULL
Objects that have a null value are skipped.
|
static java.lang.String |
ITEM_CLASS_PREFIX |
static java.lang.String |
MSG_FILE_CREATED |
static java.lang.String |
MSG_FILE_NOT_FOUND_ERROR |
static java.lang.String |
MSG_FILE_PARSED |
static java.lang.String |
MSG_LOADING_STYLES |
static java.lang.String |
MSG_VERSION |
static java.lang.String |
SHEET_ASSEMBLY |
static java.lang.String |
SHEET_ATTRIB_TYPE |
static java.lang.String |
SHEET_ATTRIBUTE |
static java.lang.String |
SHEET_COMPANY |
static java.lang.String |
SHEET_COMPONENT |
static java.lang.String |
SHEET_CONTACT |
static java.lang.String |
SHEET_DOCUMENT |
static java.lang.String |
SHEET_EXCEL |
static java.lang.String |
SHEET_FACILITY |
static java.lang.String |
SHEET_FLOOR |
static java.lang.String |
SHEET_ISSUE |
static java.lang.String |
SHEET_JOB |
static java.lang.String |
SHEET_RESOURCE |
static java.lang.String |
SHEET_SPACE |
static java.lang.String |
SHEET_SPARE |
static java.lang.String |
SHEET_SYSTEM |
static java.lang.String |
SHEET_TYPE |
static java.lang.String |
SHEET_VALUE_LIST |
static java.lang.String |
SHEET_ZONE |
static java.lang.String |
VALIDATE_ATTRIB_VALUE_IS_NAME |
static java.lang.String |
VALIDATE_DUPLICATE_ITEM |
static java.lang.String |
VALIDATE_MISSING_CHILD_REF |
static java.lang.String |
VALIDATE_MISSING_PARENT_REF |
static java.lang.String |
VALIDATE_MISSING_REF |
static java.lang.String |
VALIDATE_MISSING_ROW_REF |
static java.lang.String |
VALIDATE_MISSING_SHEET_REF |
static java.lang.String |
VALIDATE_SPACE_LIST |
static java.lang.String |
VALIDATE_TASK_NUMBER |
static java.lang.String |
VALIDATE_TASK_PREREQ_MISSING |
static java.lang.String |
VALIDATE_UNRESOLVED_REF |
static java.lang.String |
VALIDATE_VALUELIST_MISMATCH |
static java.lang.String |
WRN_INVALID_CELL_VALUE |
static java.lang.String |
WRN_MISSING_COL_NAME |
static java.lang.String |
WRN_MISSING_PROPERTY |
static java.lang.String |
WRN_OPEN_STYLE_TEMPLATE |
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 |
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
|
java.lang.String |
convertCase(java.lang.String s)
Provides a centralized place to control if the parser is case sensitive.
|
void |
export(java.lang.String fileName,
java.lang.String[] pageList,
java.io.InputStream template,
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.
|
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) |
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
|
static final java.lang.String SHEET_ASSEMBLY
static final java.lang.String SHEET_ATTRIBUTE
static final java.lang.String SHEET_COMPONENT
static final java.lang.String SHEET_COMPANY
static final java.lang.String SHEET_CONTACT
static final java.lang.String SHEET_DOCUMENT
static final java.lang.String SHEET_FACILITY
static final java.lang.String SHEET_FLOOR
static final java.lang.String SHEET_ISSUE
static final java.lang.String SHEET_JOB
static final java.lang.String SHEET_RESOURCE
static final java.lang.String SHEET_SPACE
static final java.lang.String SHEET_SPARE
static final java.lang.String SHEET_SYSTEM
static final java.lang.String SHEET_TYPE
static final java.lang.String SHEET_VALUE_LIST
static final java.lang.String SHEET_ZONE
static final java.lang.String SHEET_ATTRIB_TYPE
static final java.lang.String SHEET_EXCEL
static final java.lang.String ITEM_CLASS_PREFIX
static final long FLAG_CONVERT_GUID
http://thebuildingcoder.typepad.com/blog/2009/02/uniqueid-dwf-and-ifc-guid.html
static final long FLAG_PROMOTE_SPACES
static final long FLAG_PROMOTE_COMPONENTS
static final long FLAG_INFER_LEVELS
static final long FLAG_INFER_SYSTEMS
static final long FLAG_SKIP_ON_NULL
static final long FLAG_SKIP_ON_NO_VALUE
static final long FLAG_CONVERT_EXTENSION_COLS
static final long FLAG_CONVERT_UNIQUE_IDs
static final long FLAG_ALL_CONTACTS_ARE_COMPANIES
static final java.lang.String ERR_BAD_URL
static final java.lang.String ERR_EXCEL_NO_URL
static final java.lang.String ERR_EXPORT_ERROR
static final java.lang.String ERR_EXPORT_FILE_NAME
static final java.lang.String ERR_FILE_OPEN
static final java.lang.String ERR_FILE_READ_ERROR
static final java.lang.String ERR_INVALID_ACCESSOR
static final java.lang.String ERR_INVALID_OMNICLASS_STUCT
static final java.lang.String ERR_INVALID_XLS_FILE_ERROR
static final java.lang.String ERR_SHEET_CLASS_NOT_FOUND
static final java.lang.String ERR_SHEET_INVALID_CLASS
static final java.lang.String ERR_UNSUPPORTED_FILE_TYPE
static final java.lang.String WRN_OPEN_STYLE_TEMPLATE
static final java.lang.String WRN_MISSING_COL_NAME
static final java.lang.String WRN_MISSING_PROPERTY
static final java.lang.String WRN_INVALID_CELL_VALUE
static final java.lang.String MSG_FILE_CREATED
static final java.lang.String MSG_FILE_PARSED
static final java.lang.String MSG_FILE_NOT_FOUND_ERROR
static final java.lang.String MSG_LOADING_STYLES
static final java.lang.String MSG_VERSION
static final java.lang.String VALIDATE_ATTRIB_VALUE_IS_NAME
static final java.lang.String VALIDATE_DUPLICATE_ITEM
static final java.lang.String VALIDATE_MISSING_REF
static final java.lang.String VALIDATE_MISSING_ROW_REF
static final java.lang.String VALIDATE_MISSING_SHEET_REF
static final java.lang.String VALIDATE_SPACE_LIST
static final java.lang.String VALIDATE_UNRESOLVED_REF
static final java.lang.String VALIDATE_VALUELIST_MISMATCH
static final java.lang.String VALIDATE_TASK_PREREQ_MISSING
static final java.lang.String VALIDATE_TASK_NUMBER
static final java.lang.String VALIDATE_MISSING_CHILD_REF
static final java.lang.String VALIDATE_MISSING_PARENT_REF
void addSkippedSpace(java.lang.String spaceName)
spaceName
- Name of the skipped pace;void export(java.lang.String fileName, java.lang.String[] pageList, java.io.InputStream template, ExportProgressTracker tracker, Exporter.ExportFormat fileFormat)
fileName
- Name of export filepageList
- List of pages to exporttemplate
- JSOM configuration object describing excel formatingtracker
- Progress trackerfileFormat
- Export file format xls or xlsxjava.util.Iterator<Filter> filters()
MessageLogger getLogger()
ItemCONTACT getCompanyFromContact(java.lang.String companyName)
void addConvertedField(java.lang.String tableName, java.lang.String fieldName, java.lang.String attributeName)
tableName
- fieldName
- attributeName
- COBie attribute name to which the field is convertedjava.lang.String getConvertedField(java.lang.String tableName, java.lang.String fieldName)
java.lang.String getVendorAttribute()
Item getItem(java.lang.String pageName, java.lang.String key)
pageName
- key
- int getItemCount()
java.util.Locale getLocale()
Page getPage(java.lang.String pageName)
boolean isSpaceSkipped(java.lang.String spaceName)
spaceName
- java.lang.String convertCase(java.lang.String s)
s
-