Author: mes
Date: 2010-10-04 15:36:36 -0700 (Mon, 04 Oct 2010)
New Revision: 22141
Added:
core3/property-api/trunk/
core3/property-api/trunk/osgi.bnd
core3/property-api/trunk/pom.xml
core3/property-api/trunk/src/
core3/property-api/trunk/src/main/
core3/property-api/trunk/src/main/java/
core3/property-api/trunk/src/main/java/org/
core3/property-api/trunk/src/main/java/org/cytoscape/
core3/property-api/trunk/src/main/java/org/cytoscape/property/
core3/property-api/trunk/src/main/java/org/cytoscape/property/CyProperty.java
core3/property-api/trunk/src/main/java/org/cytoscape/property/bookmark/
core3/property-api/trunk/src/main/java/org/cytoscape/property/bookmark/BookmarksUtil.java
core3/property-api/trunk/src/main/javadoc/
core3/property-api/trunk/src/main/javadoc/org/
core3/property-api/trunk/src/main/javadoc/org/cytoscape/
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/bookmark/
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/bookmark/package.html
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/package.html
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/session/
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/session/package.html
core3/property-api/trunk/src/main/resources/
core3/property-api/trunk/src/main/resources/xsd/
core3/property-api/trunk/src/main/resources/xsd/bookmarks.xsd
core3/property-api/trunk/src/main/resources/xsd/cysession.xsd
core3/property-api/trunk/src/main/resources/xsd/xlinks-2001.xsd
Log:
initial import
Added: core3/property-api/trunk/osgi.bnd
===================================================================
--- core3/property-api/trunk/osgi.bnd (rev 0)
+++ core3/property-api/trunk/osgi.bnd 2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,5 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Export-Package: ${bundle.namespace}, ${bundle.namespace}.bookmark,
${bundle.namespace}.session
Added: core3/property-api/trunk/pom.xml
===================================================================
--- core3/property-api/trunk/pom.xml (rev 0)
+++ core3/property-api/trunk/pom.xml 2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+
<bundle.symbolicName>org.cytoscape.property</bundle.symbolicName>
+ <bundle.namespace>org.cytoscape.property</bundle.namespace>
+ </properties>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>property-api</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <name>${bundle.symbolicName}</name>
+
+ <packaging>bundle</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.ops4j</groupId>
+ <artifactId>maven-pax-plugin</artifactId>
+ <version>1.4</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.3</version>
+ <configuration>
+ <instructions>
+
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+
<Bundle-Version>${pom.version}</Bundle-Version>
+ <_include>-osgi.bnd</_include>
+ </instructions>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.jvnet.jaxb2.maven2</groupId>
+ <artifactId>maven-jaxb2-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>session</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
+ <schemaIncludes>
+
<include>cysession.xsd</include>
+ </schemaIncludes>
+
<generatePackage>org.cytoscape.property.session</generatePackage>
+ <verbose>true</verbose>
+
<removeOldOutput>false</removeOldOutput>
+
<forceRegenerate>true</forceRegenerate>
+ </configuration>
+ </execution>
+ <execution>
+ <id>bookmarks</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
+ <schemaIncludes>
+
<include>bookmarks.xsd</include>
+
<include>xlinks-2001.xsd</include>
+ </schemaIncludes>
+
<generatePackage>org.cytoscape.property.bookmark</generatePackage>
+ <verbose>true</verbose>
+
<removeOldOutput>false</removeOldOutput>
+
<forceRegenerate>true</forceRegenerate>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Maven 2 Repository</name>
+ <url>http://download.java.net/maven/2</url>
+ </repository>
+ <repository>
+ <id>maven-repository.dev.java.net</id>
+ <name>Java.net Maven 1 Repository (legacy)</name>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Maven 2 Repository</name>
+ <url>http://download.java.net/maven/2</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>maven-repository.dev.java.net</id>
+ <name>Java.net Maven 1 Repository (legacy)</name>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </pluginRepository>
+ </pluginRepositories>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.osgi</groupId>
+ <artifactId>spring-osgi-test</artifactId>
+ <version>${spring.osgi.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+</project>
+
Added:
core3/property-api/trunk/src/main/java/org/cytoscape/property/CyProperty.java
===================================================================
---
core3/property-api/trunk/src/main/java/org/cytoscape/property/CyProperty.java
(rev 0)
+++
core3/property-api/trunk/src/main/java/org/cytoscape/property/CyProperty.java
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,17 @@
+package org.cytoscape.property;
+
+/**
+ * A general property service interface for providing access to different types
+ * of property objects as OSGi services. The type P is generally one of three
types:
+ * {...@link java.util.Properties},
+ * {...@link org.cytoscape.property.bookmark.Bookmarks}, or
+ * {...@link org.cytoscape.property.session.Cysession}, although it is
possible for
+ * property objects of other types to be registered in this way as well.
+ */
+public interface CyProperty<P> {
+
+ /**
+ * @return A property object to type P.
+ */
+ public P getProperties();
+}
Added:
core3/property-api/trunk/src/main/java/org/cytoscape/property/bookmark/BookmarksUtil.java
===================================================================
---
core3/property-api/trunk/src/main/java/org/cytoscape/property/bookmark/BookmarksUtil.java
(rev 0)
+++
core3/property-api/trunk/src/main/java/org/cytoscape/property/bookmark/BookmarksUtil.java
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,81 @@
+package org.cytoscape.property.bookmark;
+
+import java.util.List;
+
+public interface BookmarksUtil {
+
+ /**
+ * Traverse bookmark tree and get a list of data sources from the
specified
+ * category.
+ *
+ * @param categoryName
+ * @return
+ */
+ public List<DataSource> getDataSourceList(String categoryName,
+ List<Category> categoryList);
+
+ /**
+ * Select specific category from a list of categories.
+ *
+ * @param categoryName
+ * @param categoryList
+ * @return
+ */
+ public Category getCategory(String categoryName, List<Category>
categoryList);
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param source
+ * DOCUMENT ME!
+ * @param attrName
+ * DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public String getAttribute(DataSource source, String attrName);
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param pBookmarks
+ * DOCUMENT ME!
+ * @param pCategoryName
+ * DOCUMENT ME!
+ * @param pDataSource
+ * DOCUMENT ME!
+ */
+ public void saveBookmark(Bookmarks pBookmarks, String pCategoryName,
+ DataSource pDataSource);
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param pBookmarks
+ * DOCUMENT ME!
+ * @param pCategoryName
+ * DOCUMENT ME!
+ * @param pDataSource
+ * DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public boolean deleteBookmark(Bookmarks pBookmarks, String
pCategoryName,
+ DataSource pDataSource);
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param pBookmarks
+ * DOCUMENT ME!
+ * @param pCategoryName
+ * DOCUMENT ME!
+ * @param pDataSource
+ * DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public boolean isInBookmarks(Bookmarks pBookmarks, String pCategoryName,
+ DataSource pDataSource);
+
+}
\ No newline at end of file
Added:
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/bookmark/package.html
===================================================================
---
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/bookmark/package.html
(rev 0)
+++
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/bookmark/package.html
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,8 @@
+<html>
+<body>
+This package defines a type of specialized
+property file for bookmarks. Bookmark objects are
+generated from XML Schema files. This allows bookmark objects to be
+easily serialized using JAXB to XML files.
+</body>
+</html>
Added:
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/package.html
===================================================================
---
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/package.html
(rev 0)
+++
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/package.html
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,7 @@
+<html>
+<body>
+This package contains a basic service interface for accessing different types
of
+property objects as OSGi services.
+</body>
+</html>
+
Added:
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/session/package.html
===================================================================
---
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/session/package.html
(rev 0)
+++
core3/property-api/trunk/src/main/javadoc/org/cytoscape/property/session/package.html
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,15 @@
+<html>
+<body>
+This package defines a type of specialized
+property file for sessions. Session objects are
+generated from XML Schema files. This allows session objects to be
+easily serialized using JAXB to XML files.
+<br/>
+Please note that the session objects defined in this package
+are distinct from {...@link org.cytoscape.session.CySession} objects.
+These session objects simply reflect the XML property files describing
+the state of the user interface for individual sessions, whereas
+...@link org.cytoscape.session.CySession} objects actually define
+the state of the session in Cytoscape.
+</body>
+</html>
Added: core3/property-api/trunk/src/main/resources/xsd/bookmarks.xsd
===================================================================
--- core3/property-api/trunk/src/main/resources/xsd/bookmarks.xsd
(rev 0)
+++ core3/property-api/trunk/src/main/resources/xsd/bookmarks.xsd
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <xs:import namespace="http://www.w3.org/1999/xlink"
schemaLocation="xlinks-2001.xsd" />
+ <xs:element name="bookmarks">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="description" />
+ <xs:element maxOccurs="unbounded" ref="category" />
+ </xs:sequence>
+ <xs:attribute name="version" use="required" type="xs:decimal" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="description" type="xs:string" />
+ <xs:element name="category">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="category" />
+ <xs:element ref="dataSource" />
+ </xs:choice>
+ <xs:attribute name="name" use="required" type="xs:NCName" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="dataSource">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="attribute" />
+ </xs:sequence>
+ <xs:attribute name="format" />
+ <xs:attribute name="name" use="required" />
+ <xs:attribute ref="xlink:href" use="required" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="attribute">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required" type="xs:NCName" />
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
Property changes on:
core3/property-api/trunk/src/main/resources/xsd/bookmarks.xsd
___________________________________________________________________
Added: svn:executable
+
Added: core3/property-api/trunk/src/main/resources/xsd/cysession.xsd
===================================================================
--- core3/property-api/trunk/src/main/resources/xsd/cysession.xsd
(rev 0)
+++ core3/property-api/trunk/src/main/resources/xsd/cysession.xsd
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
+ elementFormDefault="qualified">
+ <!-- get access to the xlink: attribute groups for xlink:type (simple) -->
+ <xs:import namespace="http://www.w3.org/1999/xlink"
schemaLocation="xlinks-2001.xsd"/>
+ <xs:element name="cysession">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="sessionNote"/>
+ <xs:element ref="sessionState"/>
+ <xs:element ref="networkTree"/>
+ </xs:sequence>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ <xs:attribute name="documentVersion" use="optional" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sessionNote" type="xs:string"/>
+ <xs:element name="sessionState">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="plugins"/>
+ <xs:element minOccurs="0" ref="desktop"/>
+ <xs:element minOccurs="0" ref="server"/>
+ <xs:element ref="cytopanels"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="plugins">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="plugin"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="plugin">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ <xs:attribute name="stateLocation" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="server">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="ontologyServer"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="ontologyServer">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="ontology"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ontology">
+ <xs:complexType>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:attribute ref="xlink:href" use="required"/>
+ <xs:attribute name="ontologyType" use="optional" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="desktop">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="desktopSize"/>
+ <xs:element minOccurs="0" ref="networkFrames"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="desktopSize">
+ <xs:complexType>
+ <xs:attribute name="width" use="required" type="xs:integer"/>
+ <xs:attribute name="height" use="required" type="xs:integer"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="networkFrames">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="networkFrame"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="networkFrame">
+ <xs:complexType>
+ <xs:attribute name="frameID" use="required" type="xs:NCName"/>
+ <xs:attribute name="width" use="required" type="xs:integer"/>
+ <xs:attribute name="height" use="required" type="xs:integer"/>
+ <xs:attribute name="x" use="required" type="xs:integer"/>
+ <xs:attribute name="y" use="required" type="xs:integer"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="cytopanels">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="cytopanel"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="cytopanel">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="panelState"/>
+ <xs:element ref="selectedPanel"/>
+ <xs:element ref="panels"/>
+ </xs:sequence>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="panelState" type="xs:NCName"/>
+ <xs:element name="selectedPanel" type="xs:NCName"/>
+ <xs:element name="panels">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="panel"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="panel">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="networkTree">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="network"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="network">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" ref="parent"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="child"/>
+ <xs:element minOccurs="0" ref="selectedNodes"/>
+ <xs:element minOccurs="0" ref="hiddenNodes"/>
+ <xs:element minOccurs="0" ref="selectedEdges"/>
+ <xs:element minOccurs="0" ref="hiddenEdges"/>
+ <xs:element minOccurs="0" ref="viewableNodes"/>
+ </xs:sequence>
+ <xs:attribute name="filename" use="required" type="xs:NCName"/>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ <xs:attribute name="viewAvailable" use="optional" type="xs:boolean"/>
+ <xs:attribute name="visualStyle" use="optional" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parent">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="child">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="selectedNodes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="node"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hiddenNodes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="node"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="selectedEdges">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="edge"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hiddenEdges">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="edge"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="viewableNodes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="node"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="node">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="edge">
+ <xs:complexType>
+ <xs:attribute name="id" use="required" type="xs:NCName"/>
+ <xs:attribute name="source" use="optional" type="xs:NCName"/>
+ <xs:attribute name="target" use="optional" type="xs:NCName"/>
+ <xs:attribute name="interaction" use="optional" type="xs:NCName"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
Added: core3/property-api/trunk/src/main/resources/xsd/xlinks-2001.xsd
===================================================================
--- core3/property-api/trunk/src/main/resources/xsd/xlinks-2001.xsd
(rev 0)
+++ core3/property-api/trunk/src/main/resources/xsd/xlinks-2001.xsd
2010-10-04 22:36:36 UTC (rev 22141)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- File: xlinks-2001.xsd
+ Updated version of http://www.opengis.net/namespaces/gml/core/xlinks.xsd
-->
+<schema targetNamespace="http://www.w3.org/1999/xlink"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns="http://www.w3.org/2001/XMLSchema">
+ <annotation>
+ <appinfo>xlinks-2001.xsd 2001-06</appinfo>
+ <documentation xml:lang="en">
+ This schema provides the XLink attributes for general use.
+ </documentation>
+ </annotation>
+<!-- ==============================================================
+ global declarations
+ =============================================================== -->
+ <!-- locator attribute -->
+ <attribute name="href" type="anyURI"/>
+ <!-- semantic attributes -->
+ <attribute name="role" type="anyURI"/>
+ <attribute name="arcrole" type="anyURI"/>
+ <attribute name="title" type="string"/>
+ <!-- behavior attributes -->
+ <attribute name="show">
+ <annotation>
+ <documentation>
+ The 'show' attribute is used to communicate the desired presentation
+ of the ending resource on traversal from the starting resource; it's
+ value should be treated as follows:
+ new - load ending resource in a new window, frame, pane, or other
+ presentation context
+ replace - load the resource in the same window, frame, pane, or
+ other presentation context
+ embed - load ending resource in place of the presentation of the
+ starting resource
+ other - behavior is unconstrained; examine other markup in the
+ link for hints
+ none - behavior is unconstrained
+ </documentation>
+ </annotation>
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="new"/>
+ <enumeration value="replace"/>
+ <enumeration value="embed"/>
+ <enumeration value="other"/>
+ <enumeration value="none"/>
+ </restriction>
+ </simpleType>
+ </attribute>
+ <attribute name="actuate">
+ <annotation>
+ <documentation>
+ The 'actuate' attribute is used to communicate the desired timing
+ of traversal from the starting resource to the ending resource;
+ it's value should be treated as follows:
+ onLoad - traverse to the ending resource immediately on loading
+ the starting resource
+ onRequest - traverse from the starting resource to the ending
+ resource only on a post-loading event triggered for
+ this purpose
+ other - behavior is unconstrained; examine other markup in link
+ for hints
+ none - behavior is unconstrained
+ </documentation>
+ </annotation>
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="onLoad"/>
+ <enumeration value="onRequest"/>
+ <enumeration value="other"/>
+ <enumeration value="none"/>
+ </restriction>
+ </simpleType>
+ </attribute>
+ <!-- traversal attributes -->
+ <attribute name="label" type="string"/>
+ <attribute name="from" type="string"/>
+ <attribute name="to" type="string"/>
+ <!-- ==============================================================
+ Attributes grouped by XLink type, as specified in the W3C
+ Recommendation (dated 2000-06-27)
+ =================================================================== -->
+ <attributeGroup name="simpleLink">
+ <attribute name="type" type="string" fixed="simple"
form="qualified"/>
+ <attribute ref="xlink:href" use="optional"/>
+ <attribute ref="xlink:role" use="optional"/>
+ <attribute ref="xlink:arcrole" use="optional"/>
+ <attribute ref="xlink:title" use="optional"/>
+ <attribute ref="xlink:show" use="optional"/>
+ <attribute ref="xlink:actuate" use="optional"/>
+ </attributeGroup>
+ <attributeGroup name="extendedLink">
+ <attribute name="type" type="string" fixed="extended"
form="qualified"/>
+ <attribute ref="xlink:role" use="optional"/>
+ <attribute ref="xlink:title" use="optional"/>
+ </attributeGroup>
+ <attributeGroup name="locatorLink">
+ <attribute name="type" type="string" fixed="locator"
form="qualified"/>
+ <attribute ref="xlink:href" use="required"/>
+ <attribute ref="xlink:role" use="optional"/>
+ <attribute ref="xlink:title" use="optional"/>
+ <attribute ref="xlink:label" use="optional"/>
+ </attributeGroup>
+ <attributeGroup name="arcLink">
+ <attribute name="type" type="string" fixed="arc"
form="qualified"/>
+ <attribute ref="xlink:arcrole" use="optional"/>
+ <attribute ref="xlink:title" use="optional"/>
+ <attribute ref="xlink:show" use="optional"/>
+ <attribute ref="xlink:actuate" use="optional"/>
+ <attribute ref="xlink:from" use="optional"/>
+ <attribute ref="xlink:to" use="optional"/>
+ </attributeGroup>
+ <attributeGroup name="resourceLink">
+ <attribute name="type" type="string" fixed="resource"
form="qualified"/>
+ <attribute ref="xlink:role" use="optional"/>
+ <attribute ref="xlink:title" use="optional"/>
+ <attribute ref="xlink:label" use="optional"/>
+ </attributeGroup>
+ <attributeGroup name="titleLink">
+ <attribute name="type" type="string" fixed="title"
form="qualified"/>
+ </attributeGroup>
+ <attributeGroup name="emptyLink">
+ <attribute name="type" type="string" fixed="none"
form="qualified"/>
+ </attributeGroup>
+</schema>
+
+
Property changes on:
core3/property-api/trunk/src/main/resources/xsd/xlinks-2001.xsd
___________________________________________________________________
Added: svn:executable
+
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.