Java Doc for PropertyValue.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » modules » vmd » api » model » 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 » IDE Netbeans » vmd.analyzer » org.netbeans.modules.vmd.api.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.vmd.api.model.PropertyValue

PropertyValue
final public class PropertyValue (Code)
This immutable class represents a property value.

This class holds information about kind, type id, user code, component, value, array. The kind could be user code, null, component reference, non-array value, enum value, array value. This type id represents the type id of the property value for all kinds expect user code and null value. This user code holds the text of the user code in target language. The component is a reference to a component in case of reference kind. The value holds the value of enum or a non-array value property. The array holds a value of an array.


author:
   David Kaspar


Inner Class :public enum Kind



Method Summary
 voidcollectAllComponentReferences(Collection<DesignComponent> references)
    
public static  PropertyValuecreateArray(TypeID componentType, List<PropertyValue> array)
     Creates a property value representing an array value.
public static  PropertyValuecreateComponentReference(DesignComponent component)
     Creates a new property value representing a component reference.
static  PropertyValuecreateComponentReferenceCore(DesignComponent component)
    
public static  PropertyValuecreateEmptyArray(TypeID componentType)
     Create a property value representng an empty array value.
public static  PropertyValuecreateEnumValue(EnumDescriptor descriptor, TypeID type, Object value)
     Creates a property value representing a enum value.
public static  PropertyValuecreateNull()
     Creates a new property value representing a null.
public static  PropertyValuecreateUserCode(String userCode)
     Create a new property value representing a user code.
public static  PropertyValuecreateValue(PrimitiveDescriptor descriptor, TypeID type, Object value)
     Creates a property value representing a primitive value.
public static  PropertyValuecreateValue(String projectType, TypeID type, Object value)
     Creates a property value representing a primitive or an enum value.
public static  PropertyValuedeserialize(String serialized, DesignDocument document, TypeID type)
     Creates a property value from the encoded string that represents the value.
public  List<PropertyValue>getArray()
     Returns a list of property values.
public  DesignComponentgetComponent()
     Returns a component.
public  KindgetKind()
     Returns a kind.
public  ObjectgetPrimitiveValue()
     Returns primitive or enum value (not component, not array).
public  TypeIDgetType()
     Returns a type id.
public  StringgetUserCode()
     Returns a user code.
public  booleanisCompatible(TypeID requiredType)
     Returns whether the required type id is compatible with this type id.
public  booleanisCompatible(PropertyDescriptor propertyDescriptor)
     Returns whether the property value is compatible with a specified property descriptor.
public  Stringserialize()
     Returns an encoded string of the property value.
public  StringtoString()
     Returns the encoded string.



Method Detail
collectAllComponentReferences
void collectAllComponentReferences(Collection<DesignComponent> references)(Code)



createArray
public static PropertyValue createArray(TypeID componentType, List<PropertyValue> array)(Code)
Creates a property value representing an array value.
Parameters:
  componentType - the type id of held objects (not array type id)
Parameters:
  array - the list of property values that represent the array of values in the design time the property value



createComponentReference
public static PropertyValue createComponentReference(DesignComponent component)(Code)
Creates a new property value representing a component reference.
Parameters:
  component - the component the property value



createComponentReferenceCore
static PropertyValue createComponentReferenceCore(DesignComponent component)(Code)



createEmptyArray
public static PropertyValue createEmptyArray(TypeID componentType)(Code)
Create a property value representng an empty array value.
Parameters:
  componentType - the type id of held objects (not array type id) the property value



createEnumValue
public static PropertyValue createEnumValue(EnumDescriptor descriptor, TypeID type, Object value)(Code)
Creates a property value representing a enum value.
Parameters:
  descriptor - the enum descriptor
Parameters:
  type - the non-array type id that is enum
Parameters:
  value - the object that represents the value in the design time the property value



createNull
public static PropertyValue createNull()(Code)
Creates a new property value representing a null. the property value



createUserCode
public static PropertyValue createUserCode(String userCode)(Code)
Create a new property value representing a user code.
Parameters:
  userCode - the user code in target language the propert value



createValue
public static PropertyValue createValue(PrimitiveDescriptor descriptor, TypeID type, Object value)(Code)
Creates a property value representing a primitive value.
Parameters:
  descriptor - the primitive descriptor
Parameters:
  type - the non-array type id that is primitive
Parameters:
  value - the object that represents the value in the design time the property value



createValue
public static PropertyValue createValue(String projectType, TypeID type, Object value)(Code)
Creates a property value representing a primitive or an enum value.
Parameters:
  projectType - the project type
Parameters:
  type - the non-array type id that is primitive
Parameters:
  value - the object that represents the value in the design time the property value



deserialize
public static PropertyValue deserialize(String serialized, DesignDocument document, TypeID type) throws Exception(Code)
Creates a property value from the encoded string that represents the value.
Parameters:
  serialized - the encoded string
Parameters:
  document - the document for resolving component references
Parameters:
  type - the type id of the encoded string the property value



getArray
public List<PropertyValue> getArray()(Code)
Returns a list of property values. the list



getComponent
public DesignComponent getComponent()(Code)
Returns a component. the component



getKind
public Kind getKind()(Code)
Returns a kind. the kind



getPrimitiveValue
public Object getPrimitiveValue()(Code)
Returns primitive or enum value (not component, not array). the value



getType
public TypeID getType()(Code)
Returns a type id. the type id



getUserCode
public String getUserCode()(Code)
Returns a user code. the user code



isCompatible
public boolean isCompatible(TypeID requiredType)(Code)
Returns whether the required type id is compatible with this type id. Compatible means the required type equals to the one stored inside this property value. In Reference case, it checks its compatibility using descriptor registry.
Parameters:
  requiredType - the required type true if compatible



isCompatible
public boolean isCompatible(PropertyDescriptor propertyDescriptor)(Code)
Returns whether the property value is compatible with a specified property descriptor.
Parameters:
  propertyDescriptor - the property descriptor true, if the property value is allowed for the property descriptor



serialize
public String serialize()(Code)
Returns an encoded string of the property value. the encoded string



toString
public String toString()(Code)
Returns the encoded string. the encoded string



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)

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