persistent class %Studio.Template.HTMLElement
extends %Persistent, %XML.Adaptor
Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information.
This class represents one of a list of HTML Tags.
This list is used by the Cache Studio CSP Tag Template to provide a
list of HTML tags and their associated attributes (which as represented using
the related Template.HTMLAttribute).
The data for this set of objects is provided within an XML file,
htmltags.xml, that is provided with Cache in the /CacheSys/dev/studio/templates directory.
To load this file:
Do ##class(%Studio.Template.HTMLElement).Import()
parameter XMLNAME = "element";
This parameter provides the default XMLNAME for the class. If it is
empty then the class name will be used to construct a default XML name.
The default XMLNAME is used as the top level tag
when exporting objects and the export context
did not provide an XML container name.
relationship Attrs
as HTMLAttribute(XMLITEMNAME="attr",XMLNAME="attrs") [ Inverse = Tag,Cardinality = children ];
Attributes associated with this tag.
property Description
as %String(MAXLEN=4000,XMLNAME="description",XMLPROJECTION="element");
Description of this element.
property IsEmpty
as %Boolean(XMLNAME="empty",XMLPROJECTION="attribute");
Is this an empty tag?
property ShortDescription
as %String(MAXLEN=255,XMLNAME="edesc",XMLPROJECTION="attribute");
Description of this element.
property Tag
as %String(MAXLEN=256,XMLNAME="ename",XMLPROJECTION="attribute");
Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information.
Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information.
Name of an HTML tag
classmethod GetAttrs(tag As %String, ByRef attrs, ByRef cats)
as %Boolean
Get list of attributes used by tag.
Returns true if the element is defined.
classmethod Import(filename As %String = "")
Load an HTML tags definition file into the
HTMLTag extent
index (IdIdx on Tag) [IdKey,Unique];