|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.designer.domino.scripting.api.published.DesignerPublishedObject
public class DesignerPublishedObject
A default implementation of IScriptData.PublishedObject
. Clients should
extend this implementation rather than directly implementing IScriptData.PublishedObject
.
IScriptData.PublishedObject
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_DEFAULTBINDING
PROPERTY_DEFAULTBINDING - When this property is requested the tooling
typically expects the name of the language that is used as the default databinding 'language' for this
particular data source type. |
static java.lang.String |
PROPERTY_JAVASCRIPT_TYPE
JAVASCRIPT_TYPE . |
static java.lang.String |
PROPERTY_METHODS
PROPERTY_METHODS . |
static java.lang.String |
PROPERTY_NODE
String PROPERTY_NODE . |
static java.lang.String |
PROPERTY_PROJECT
PROPERTY_PROJECT - When this property is requested the tooling
typically expects an instance of
com.ibm.designer.domino.ide.resources.extensions.DesignerProject
to be returned. |
static java.lang.String |
PROPERTY_TAGLOCALNAME
PROPERTY_TAGLOCALNAME - When this property is requested the tooling
typically expects the Element's local tag name to be returned. |
static java.lang.String |
PROPERTY_TAGNAMESPACEURI
PROPERTY_TAGNAMESPACEURI - When this property is requested the tooling
typically expects the Elements namespace URI to be returned. |
static java.lang.String |
PROPERTY_XMLDEFINITION
PROPERTY_XMLDEFINITION . |
Constructor Summary | |
---|---|
DesignerPublishedObject(java.lang.String name)
Constructs a new instance of this class. |
Method Summary | |
---|---|
java.lang.String |
getName()
|
org.w3c.dom.Node |
getNode()
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Used to retrieve information about the data source. |
XmlDefinition |
getXmlDefinition()
returns an XmlDefinition object that is the xml representation of this data source. |
boolean |
isAdvanced()
Indicates to the tooling that this is an advanced data source |
void |
setName(java.lang.String name)
Sets the name of the current PublishedObject. |
void |
setNode(org.w3c.dom.Node node)
|
void |
setProject(DesignerProject project)
Utility method that inserts the current DesignerProject into the property map associated with this data source. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Adds properties to a map, these properties can later be retrieved by calling getProperty(String) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_PROJECT
PROPERTY_PROJECT
- When this property is requested the tooling
typically expects an instance of
com.ibm.designer.domino.ide.resources.extensions.DesignerProject
to be returned.
public static final java.lang.String PROPERTY_TAGLOCALNAME
PROPERTY_TAGLOCALNAME
- When this property is requested the tooling
typically expects the Element's local tag name to be returned. e.g. if the current tag name
is xp:dominoView, the tooling would expect 'dominoView' to be returned as the local name.
public static final java.lang.String PROPERTY_TAGNAMESPACEURI
PROPERTY_TAGNAMESPACEURI
- When this property is requested the tooling
typically expects the Elements namespace URI to be returned.
public static final java.lang.String PROPERTY_DEFAULTBINDING
PROPERTY_DEFAULTBINDING
- When this property is requested the tooling
typically expects the name of the language that is used as the default databinding 'language' for this
particular data source type. e.g 'xpath'
public static final java.lang.String PROPERTY_NODE
PROPERTY_NODE
. When this property is requested the tooling typically
expects a Node
to be returned. The Node
returned should
be the node representation of the tag that defines this data source.
public static final java.lang.String PROPERTY_XMLDEFINITION
PROPERTY_XMLDEFINITION
. When this property is requested the tooling typically
expects an instance of com.ibm.commons.xsd.xml.XmlDefinition
to be returned.
com.ibm.designer.domino.scripting.api.IScriptData#XML_DOCUMENT} {@link com.ibm.commons.xsd.xml.XmlDefinition}
,
Constant Field Valuespublic static final java.lang.String PROPERTY_JAVASCRIPT_TYPE
JAVASCRIPT_TYPE
. When this property is requested the tooling expect an instance
of com.ibm.jscript.types.FBSType
to be returned. FBSType
is a javascript wrapper
for an object.
IScriptData.JAVASCRIPT_TYPE
,
Constant Field Valuespublic static final java.lang.String PROPERTY_METHODS
PROPERTY_METHODS
. When this property is requested the tooling typically expects a map
of type Map
returned. The map should contain method name and method signature pairs.
The methods will be displayed in the reference view of the script editor when the current data source is selected.
Constructor Detail |
---|
public DesignerPublishedObject(java.lang.String name)
name
- the name of the data sourceMethod Detail |
---|
public org.w3c.dom.Node getNode()
public void setNode(org.w3c.dom.Node node)
node
- sets the DOM node that corresponds to the data source that this PublishedObject represents.public java.lang.String getName()
getName
in interface IScriptData.PublishedObject
public java.lang.Object getProperty(java.lang.String propertyName)
IScriptData.PublishedObject
DesignerPublishedObject
for a list of properties that are normally published about the data source.
Clients should not implement this interface directly but should instead use the default
Domino Designer implementation of the interface.
DesignerPublishedObject
getProperty
in interface IScriptData.PublishedObject
propertyName
- a string that is used as a key to look up a map of objects.
DesignerPublishedObject
public XmlDefinition getXmlDefinition()
com.ibm.designer.domino.scripting.api.com.ibm.designer.domino.scripting.api.IScriptData.PublishedObject#getProperty(IScriptData.XML_DOCUMENT)
XmlDefinition
public boolean isAdvanced()
IScriptData.PublishedObject
isAdvanced
in interface IScriptData.PublishedObject
public void setProperty(java.lang.String key, java.lang.Object value)
getProperty(String)
.
key
- the key used to add the property to the map.value
- a object that the consumer of the DesignerPublishedObject class wishes to retrieve later.public void setProject(DesignerProject project)
project
- the current DesignerProjectpublic void setName(java.lang.String name)
name
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |