Java Doc for BIProperty.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » tools » xjc » reader » xmlschema » bindinfo » 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.tools.xjc.reader.xmlschema.bindinfo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
      com.sun.tools.xjc.reader.xmlschema.bindinfo.BIProperty

BIProperty
final public class BIProperty extends AbstractDeclarationImpl (Code)
Property customization. This customization turns an arbitrary schema component into a Java property (some restrictions apply.)

All the getter methods (such as getBaseType or getBindStyle) honors the delegation chain of property customization specified in the spec. Namely, if two property customizations are attached to an attribute use and an attribute decl, then anything unspecified in the attribute use defaults to attribute decl.

Property customizations are acknowledged (1) when they are actually used, and (2) when they are given at the component, which is mapped to a class. (so-called "point of declaration" customization)
author:
   Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)



Field Summary
final public static  QNameNAME
     Name of this declaration.

Constructor Summary
public  BIProperty(Locator loc, String _propName, String _javadoc, BaseTypeBean _baseType, CollectionTypeAttribute collectionType, Boolean isConst, OptionalPropertyMode optionalProperty, Boolean genElemProp)
    
protected  BIProperty()
    

Method Summary
public  CAttributePropertyInfocreateAttributeProperty(XSAttributeUse use, TypeUse tu)
    
public  CPropertyInfocreateElementOrReferenceProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)
    
public  CElementPropertyInfocreateElementProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)
    
Parameters:
  defaultName - If the name is not customized, this name will be usedas the default.
public  CReferencePropertyInfocreateReferenceProperty(String defaultName, boolean forConstant, XSComponent source, RawTypeSet types, boolean isMixed)
    
public  CValuePropertyInfocreateValueProperty(String defaultName, boolean forConstant, XSComponent source, TypeUse tu, QName typeName)
    
public  JTypegetBaseType()
    
public  Collection<BIDeclaration>getChildren()
    
 CollectionTypeAttributegetCollectionType()
     Gets the realization of this field.
public  BIConversiongetConv()
    
public static  BIPropertygetCustomization(XSComponent c)
     Finds a property customization that describes how the given component should be mapped to a property (if it's mapped to a property at all.)

Consider an attribute use that does NOT carry a property customization.

protected  BIPropertygetDefault()
     Finds a BIProperty which this object should delegate to.
public  StringgetJavadoc()
     Gets the associated javadoc.
public  QNamegetName()
    
public  OptionalPropertyModegetOptionalPropertyMode()
    
public  StringgetPropertyName(boolean forConstant)
     Returns the customized property name. This method honors the "enableJavaNamingConvention" customization and formats the property name accordingly if necessary. Thus the caller should NOT apply the XML-to-Java name conversion algorithm to the value returned from this method.
Parameters:
  forConstant - If the property name is intended for a constant property name,set to true.
public  booleanisConstantProperty()
     Gets the inherited value of the "fixedAttrToConstantProperty" customization.
public  voidmarkAsAcknowledged()
    
 voidsetGenerateIsSetMethod(boolean b)
    
public  voidsetParent(BindInfo parent)
    

Field Detail
NAME
final public static QName NAME(Code)
Name of this declaration.




Constructor Detail
BIProperty
public BIProperty(Locator loc, String _propName, String _javadoc, BaseTypeBean _baseType, CollectionTypeAttribute collectionType, Boolean isConst, OptionalPropertyMode optionalProperty, Boolean genElemProp)(Code)



BIProperty
protected BIProperty()(Code)




Method Detail
createAttributeProperty
public CAttributePropertyInfo createAttributeProperty(XSAttributeUse use, TypeUse tu)(Code)



createElementOrReferenceProperty
public CPropertyInfo createElementOrReferenceProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)(Code)



createElementProperty
public CElementPropertyInfo createElementProperty(String defaultName, boolean forConstant, XSParticle source, RawTypeSet types)(Code)

Parameters:
  defaultName - If the name is not customized, this name will be usedas the default. Note that the name conversion MUSTbe applied before this method is called if necessary.
Parameters:
  source - Source schema component from which a field is built.



createReferenceProperty
public CReferencePropertyInfo createReferenceProperty(String defaultName, boolean forConstant, XSComponent source, RawTypeSet types, boolean isMixed)(Code)



createValueProperty
public CValuePropertyInfo createValueProperty(String defaultName, boolean forConstant, XSComponent source, TypeUse tu, QName typeName)(Code)



getBaseType
public JType getBaseType()(Code)



getChildren
public Collection<BIDeclaration> getChildren()(Code)



getCollectionType
CollectionTypeAttribute getCollectionType()(Code)
Gets the realization of this field. Always return non-null.



getConv
public BIConversion getConv()(Code)



getCustomization
public static BIProperty getCustomization(XSComponent c)(Code)
Finds a property customization that describes how the given component should be mapped to a property (if it's mapped to a property at all.)

Consider an attribute use that does NOT carry a property customization. This schema component is nonetheless considered to carry a (sort of) implicit property customization, whose values are defaulted.

This method can be think of the method that returns this implied property customization.

Note that this doesn't mean the given component needs to be mapped to a property. But if it does map to a property, it needs to follow this customization. I think this semantics is next to non-sense but I couldn't think of any other way to follow the spec.
Parameters:
  c - A customization effective on this component will be returned.Can be null just to get the global customization.Always return non-null valid object.




getDefault
protected BIProperty getDefault()(Code)
Finds a BIProperty which this object should delegate to. always return non-null for normal BIProperties.If this object is contained in the BIGlobalBinding, thenthis method returns null to indicate that there's no more default.



getJavadoc
public String getJavadoc()(Code)
Gets the associated javadoc. null if none is specfieid.



getName
public QName getName()(Code)



getOptionalPropertyMode
public OptionalPropertyMode getOptionalPropertyMode()(Code)



getPropertyName
public String getPropertyName(boolean forConstant)(Code)
Returns the customized property name. This method honors the "enableJavaNamingConvention" customization and formats the property name accordingly if necessary. Thus the caller should NOT apply the XML-to-Java name conversion algorithm to the value returned from this method.
Parameters:
  forConstant - If the property name is intended for a constant property name,set to true. This will change the resultThis method can return null if the customization doesn'tspecify the name.



isConstantProperty
public boolean isConstantProperty()(Code)
Gets the inherited value of the "fixedAttrToConstantProperty" customization.

Note that returning true from this method doesn't necessarily mean that a property needs to be mapped to a constant property. It just means that it's mapped to a constant property if an attribute use carries a fixed value.

I don't like this semantics but that's what the spec implies.




markAsAcknowledged
public void markAsAcknowledged()(Code)



setGenerateIsSetMethod
void setGenerateIsSetMethod(boolean b)(Code)



setParent
public void setParent(BindInfo parent)(Code)



Fields inherited from com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
Locator loc(Code)(Java Doc)
protected BindInfo parent(Code)(Java Doc)

Methods inherited from com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl
final protected BGMBuilder getBuilder()(Code)(Java Doc)
public Collection<BIDeclaration> getChildren()(Code)(Java Doc)
final protected JCodeModel getCodeModel()(Code)(Java Doc)
public Locator getLocation()(Code)(Java Doc)
final protected XSComponent getOwner()(Code)(Java Doc)
final public boolean isAcknowledged()(Code)(Java Doc)
public void markAsAcknowledged()(Code)(Java Doc)
public void onSetOwner()(Code)(Java Doc)
public void setParent(BindInfo p)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w__w_.jav_a2__s___._c_o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.