Constructor
new EMLAttribute()
- Source:
- See:
-
Members
nodeNameMap :object
The map of lower case to camel case node names
needed to deal with parsing issues with $.parseHTML().
Use this until we can figure out issues with $.parseXML().
Type:
- Source:
Methods
createID()
Set a new UUID on the xmlID property
- Source:
defaults() → {object}
Attributes of an EML attribute object
Properties:
Name |
Type |
Description |
xmlID |
string
|
The XML id of the attribute |
attributeName |
string
|
The name of the attribute |
attributeLabel |
Array
|
Zero or more human readable labels |
attributeDefinition |
string
|
The definition of the attribute |
storageType |
Array
|
Zero or more storage types |
typeSystem |
Array
|
Zero or more system types for storage type |
measurementScale |
EMLMeasurementScale
|
An EML{Non}NumericDomain
or EMLDateTimeDomain object |
missingValueCodes |
EMLMissingValueCodes
|
An EMLMissingValueCodes
collection |
accuracy |
EMLAccuracy
|
An EMLAccuracy object |
coverage |
EMLCoverage
|
An EMLCoverage object |
methods |
Array
|
Zero or more EMLMethods objects |
references |
string
|
A reference to another EMLAttribute by id |
annotation |
Array
|
Zero or more EMLAnnotation objects |
type |
string
|
The element type in the DOM |
parentModel |
EML211
|
The parent model this attribute belongs to |
objectXML |
Element
|
The serialized XML of this EML attribute |
objectDOM |
Element
|
The DOM of this EML attribute |
nodeOrder |
Array
|
The order of the top level XML element nodes |
- Source:
Returns:
- The EMLAttribute attributes
-
Type
-
object
Format the given XML string
Parameters:
Name |
Type |
Description |
xmlString |
string
|
The XML string to format |
- Source:
Returns:
The formatted XML string
-
Type
-
string
getEMLPosition(objectDOM, nodeName) → {Element}
Get the DOM node preceding the given nodeName to find what position in
the EML document the named node should be appended
Parameters:
Name |
Type |
Description |
objectDOM |
Element
|
The DOM of the EML document |
nodeName |
string
|
The name of the node to find the position of |
- Source:
Returns:
The DOM node to insert the named node after
or undefined if the node should be appended to the end of the objectDOM
-
Type
-
Element
getParentEML() → {EML211|false}
Climbs up the model heirarchy until it finds the EML model
- Source:
Returns:
- Returns the EML 211 Model or false if not
found
-
Type
-
EML211
|
false
initialize()
- Source:
isEmpty() → {boolean}
Checks whether the model is just an empty shell
- Source:
Returns:
- True if the model is empty, false if it has data
-
Type
-
boolean
listenToMissingValueCodes()
Listen to changes on the missingValueCodes collection and trigger a
change on this model and the collection
- Source:
parse()
- Source:
trickleUpChange()
Let the top level package know of attribute changes from this object
- Source:
updateDOM(domopt) → {Element}
Copy the original XML and update fields in a DOM object
with the current model values
Parameters:
Name |
Type |
Attributes |
Description |
dom |
Element
|
<optional>
|
The original DOM object to update |
- Source:
Returns:
The updated DOM object
-
Type
-
Element
validate()
- Source:
validateAnnotations() → {Array}
Validates each of the EMLAnnotation models on this model
- Source:
Returns:
- Returns an array of error messages for all the
EMLAnnotation models
-
Type
-
Array