|
formatting
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray
|
|
fullname
|
|
|
Access
|
read-write
|
|
Returns
|
String
|
|
Set throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
isProtected
|
|
|
Access
|
read-only
|
|
Returns
|
boolean
|
|
linkPath
|
|
|
Access
|
read-only
|
|
Returns
|
fPath
|
|
linkType
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
name
|
|
|
Access
|
read-write
|
|
Returns
|
String
|
|
Set throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
|
|
namespace
|
|
|
Access
|
read-write
|
|
Returns
|
fNamespace
|
|
readonly
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray
|
|
tagClass
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
temp
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray
|
|
type
|
|
|
Access
|
read-write
|
|
Returns
|
int
|
|
Set throws
|
fContentException
INVALID_TYPE: The type of tag is not suitable for the available content.
|
|
user
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray
|
|
copyTag name ns
|
|
|
Parameters
|
String name
The name of the tag to copy into, including LD namespaces if required. This tag must not already exist, otherwise an exception will be raised.
fNamespace ns
The LD namespace to create the new tag in. If not provided, the root namespace will be used.
|
|
Returns
|
fTag. Returns the newly created fStream, fGraphic, fRaster or fNamespace object (depending on type).
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: The type of tag is not suitable for the available content.
|
|
deleteTag updateText replaceText keepFrame
|
|
|
Parameters
|
boolean updateText
If true, a search and replace will automatically be performed, replacing any references to the name of this tag with the text in the replace parameter. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
String replaceText
The text to use if updateText is true.
boolean keepFrame
If true, and the tag is either a frame or namespace containing frame tags, any frames that use this tag will be preserved on the page as an anonymous frame.
|
|
Returns
|
void. None
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
|
|
link filename type
|
|
|
Parameters
|
fPath filename
The full name and path of the file to link to. If this is left blank, the link will be broken.
int type
The type of link to create. This value is one of fTag.TagLinkFormat. Unless the contents of the tag were loaded into LD using the import methods, this will be set to fTag.LINKFORMAT_APP.
|
|
Returns
|
void. None
|
|
Throws
|
fApplicationException
FILE_WRITE_ERROR: An error occurred creating the file.
fContentException
INVALID_TYPE: This type of tag is not suitable for linking.
|
|
readResolve obj
|
|
|
Parameters
|
Object obj
The serialized representation.
|
|
Returns
|
fTag. The tag corresponding to the serialized representation.
|
|
renameTag name ns updateText
|
|
|
Parameters
|
String name
The new name of the tag.
fNamespace ns
The LD namespace to create the new tag in. If not provided, the root namespace will be used.
boolean updateText
If true, a search and replace will automatically be performed, replacing any references to the old name of this tag with the new name. Note that this action may not always be accurate, depending on the complexity of the template. This property defaults to false.
|
|
Returns
|
fTag. Returns the newly created fStream, fGraphic, fRaster or fNamespace object (depending on type).
|
|
Throws
|
fContentException
TEMPLATE_READONLY: The template is read only and cannot be changed.
TAG_EXISTS: A tag of the same name already exists.
INVALID_TYPE: The type of tag is not suitable for the available content.
|
|
saveLink force noCheck
|
|
|
Parameters
|
boolean force
If false, only save the content if it has been changed inside LD. Otherwise, save the content regardless.
boolean noCheck
If false, the content will only be saved if the content is less recent than the linked file. Otherwise, save the content regardless.
|
|
Returns
|
void. None
|
|
Throws
|
fContentException
TAG_NOT_LINKED: The tag is not linked to a file.
LINK_TOO_OLD: The contents of the tag are more recent than the link, and noCheck was false.
fApplicationException
FILE_WRITE_ERROR: An error occurred writing to the file.
|
|
updateLink force noCheck breakLink
|
|
|
Parameters
|
boolean force
If false, only reload the content if the file has been changed after the last load. Otherwise, load the content regardless.
boolean noCheck
If false, the content will only be loaded if the content is less recent than the linked file. Otherwise, load the content regardless.
boolean breakLink
If false, the link will remain after updating. Otherwise, the link will be broken.
|
|
Returns
|
void. None
|
|
Throws
|
fContentException
TAG_NOT_LINKED: The tag is not linked to a file.
LINK_TOO_OLD: The contents of the tag are more recent than the link, and noCheck was false.
fApplicationException
FILE_READ_ERROR: An error occurred reading from the file.
|
|
writeReplace
|
|
|
Parameters
|
None
|
|
Returns
|
Object. A serializable representation of this tag.
|