Java Doc for XSComponent.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » xml » xsom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jaxb xjc » com.sun.xml.xsom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.xsom.XSComponent

All known Subclasses:   com.sun.xml.xsom.impl.ComponentImpl,
XSComponent
public interface XSComponent (Code)
Base interface for all the schema components.
author:
   Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)




Method Summary
 Tapply(XSFunction<T> function)
     Accepts a functor.
 XSAnnotationgetAnnotation()
     Gets the annotation associated to this component, if any.
 XSAnnotationgetAnnotation(boolean createIfNotExist)
     Works like XSComponent.getAnnotation() , but allow a new empty XSAnnotation to be created if not exist.
 StringgetForeignAttribute(String nsUri, String localName)
     Gets the foreign attribute of the given name, or null if not found.
 List<? extends ForeignAttributes>getForeignAttributes()
     Gets the foreign attributes on this schema component.
 LocatorgetLocator()
     Gets the locator that indicates the source location where this component is created from, or null if no information is available.
 XSSchemagetOwnerSchema()
     Gets a reference to the XSSchema object to which this component belongs.
 XSSchemaSetgetRoot()
     Gets the root schema set that includes this component.
 SchemaDocumentgetSourceDocument()
     Gets the SchemaDocument that indicates which document this component was defined in. null for components that are built-in to XML Schema, suchas anyType, or "empty" XSContentType.
 Collection<XSComponent>select(String scd, NamespaceContext nsContext)
     Evaluates a schema component designator against this schema component and returns the resulting schema components.
throws:
  IllegalArgumentException - if SCD is syntactically incorrect.
Parameters:
  scd - Schema component designator.
 XSComponentselectSingle(String scd, NamespaceContext nsContext)
     Evaluates a schema component designator against this schema component and returns the first resulting schema component.
throws:
  IllegalArgumentException - if SCD is syntactically incorrect.
Parameters:
  scd - Schema component designator.
 voidvisit(XSVisitor visitor)
     Accepts a visitor.



Method Detail
apply
T apply(XSFunction<T> function)(Code)
Accepts a functor.



getAnnotation
XSAnnotation getAnnotation()(Code)
Gets the annotation associated to this component, if any.



getAnnotation
XSAnnotation getAnnotation(boolean createIfNotExist)(Code)
Works like XSComponent.getAnnotation() , but allow a new empty XSAnnotation to be created if not exist.
Parameters:
  createIfNotExist - true to create a new XSAnnotation if it doesn't exist already.false to make this method behavel like XSComponent.getAnnotation().null if createIfNotExist==false and annotation didn't exist.Otherwise non-null.



getForeignAttribute
String getForeignAttribute(String nsUri, String localName)(Code)
Gets the foreign attribute of the given name, or null if not found.

If multiple occurences of the same attribute is found, this method returns the first one.
See Also:   XSComponent.getForeignAttributes()




getForeignAttributes
List<? extends ForeignAttributes> getForeignAttributes()(Code)
Gets the foreign attributes on this schema component.

In general, a schema component may match multiple elements in a schema document, and those elements can individually carry foreign attributes.

This method returns a list of ForeignAttributes , where each ForeignAttributes object represent foreign attributes on one element. can be an empty list but never be null.




getLocator
Locator getLocator()(Code)
Gets the locator that indicates the source location where this component is created from, or null if no information is available.



getOwnerSchema
XSSchema getOwnerSchema()(Code)
Gets a reference to the XSSchema object to which this component belongs.

In case of XSEmpty component, this method returns null since there is no owner component.




getRoot
XSSchemaSet getRoot()(Code)
Gets the root schema set that includes this component.

In case of XSEmpty component, this method returns null since there is no owner component.




getSourceDocument
SchemaDocument getSourceDocument()(Code)
Gets the SchemaDocument that indicates which document this component was defined in. null for components that are built-in to XML Schema, suchas anyType, or "empty" XSContentType. This method alsoreturns null for XSSchema.For all other user-definedcomponents this method returns non-null, even if they are local.



select
Collection<XSComponent> select(String scd, NamespaceContext nsContext)(Code)
Evaluates a schema component designator against this schema component and returns the resulting schema components.
throws:
  IllegalArgumentException - if SCD is syntactically incorrect.
Parameters:
  scd - Schema component designator. See SCD for more details.
Parameters:
  nsContext - The namespace context in which SCD is evaluated. Cannot be null.Can be empty but never null.



selectSingle
XSComponent selectSingle(String scd, NamespaceContext nsContext)(Code)
Evaluates a schema component designator against this schema component and returns the first resulting schema component.
throws:
  IllegalArgumentException - if SCD is syntactically incorrect.
Parameters:
  scd - Schema component designator. See SCD for more details.
Parameters:
  nsContext - The namespace context in which SCD is evaluated. Cannot be null.null if the SCD didn't match anything. If the SCD matched more than one node,the first one will be returned.



visit
void visit(XSVisitor visitor)(Code)
Accepts a visitor.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.