2012-04-20 23:34:47 +00:00
|
|
|
/**
|
2012-05-01 00:36:22 +00:00
|
|
|
* DataModel node for a document.
|
2012-04-20 23:34:47 +00:00
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.dm.LeafNode}
|
|
|
|
* @param {Integer} [length] Length of content data in document
|
|
|
|
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
|
|
|
*/
|
|
|
|
ve.dm.AlienNode = function( length, attributes ) {
|
|
|
|
// Inheritance
|
2012-04-30 20:23:46 +00:00
|
|
|
ve.dm.LeafNode.call( this, 'alien', 0, attributes );
|
2012-04-20 23:34:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Static Members */
|
|
|
|
|
2012-04-30 22:47:54 +00:00
|
|
|
/**
|
|
|
|
* @see ve.dm.NodeFactory
|
|
|
|
*/
|
2012-04-20 23:34:47 +00:00
|
|
|
ve.dm.AlienNode.rules = {
|
|
|
|
'canHaveChildren': false,
|
|
|
|
'canHaveGrandchildren': false,
|
|
|
|
'childNodeTypes': [],
|
|
|
|
'parentNodeTypes': null
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.factory.register( 'alien', ve.dm.AlienNode );
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.extendClass( ve.dm.AlienNode, ve.dm.LeafNode );
|