Java Doc for FxAssignment.java in  » J2EE » fleXive » com » flexive » shared » structure » 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 » J2EE » fleXive » com.flexive.shared.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.structure.FxAssignment

All known Subclasses:   com.flexive.shared.structure.FxGroupAssignment,  com.flexive.shared.structure.FxPropertyAssignment,
FxAssignment
abstract public class FxAssignment implements Serializable,Comparable<FxAssignment>(Code)
Base class for assignments of a group or property to a type or another group/property
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
final public static  longNO_PARENT
    
final public static  longROOT_BASE
    
final public static  intTYPE_GROUP
    
final public static  intTYPE_PROPERTY
    
protected  StringXPath
    
protected  Stringalias
    
protected  intdefaultMultiplicity
    
protected  booleanenabled
    
protected  FxStringhint
    
protected  FxStringlabel
    
protected  FxMultiplicitymultiplicity
    
 List<FxStructureOption>options
    
protected  FxGroupAssignmentparentGroupAssignment
    
protected  intposition
    
protected  Map<FxScriptEvent, long[]>scriptMapping
    

Constructor Summary
protected  FxAssignment(long assignmentId, boolean enabled, FxType assignedType, String alias, String xpath, int position, FxMultiplicity multiplicity, int defaultMultiplicity, FxGroupAssignment parentGroupAssignment, long baseAssignment, FxString label, FxString hint, List<FxStructureOption> options)
    

Method Summary
public  FxAssignment_setSystemInternal()
    
public  intcompareTo(FxAssignment o)
    
abstract public  FxDatacreateEmptyData(FxGroupData parent, int index)
    
abstract public  FxDatacreateRandomData(Random rnd, FxEnvironment env, FxGroupData parent, int index, int maxMultiplicity)
    
public  booleanequals(Object obj)
    
public  StringgetAlias()
     Get the alias of this assignment.
public  FxTypegetAssignedType()
    
public  longgetBaseAssignmentId()
    
public  intgetDefaultMultiplicity()
     Get the default multiplicity (used i.e.
public  FxStringgetDisplayLabel()
     Return a human-readable string to present this assignment to the user.
public  StringgetDisplayName()
     Return a human-readable string to present this assignment to the user.
public  FxStringgetHint()
    
public  longgetId()
    
public  FxStringgetLabel()
    
abstract public  FxMultiplicitygetMultiplicity()
     Get the multiplicity of this assignment.
public  FxStructureOptiongetOption(String key)
     Get an option entry for the given key, if the key is invalid or not found a FxStructureOption object will be returned with set set to false, overrideable set to false and value set to an empty String.
public  FxGroupAssignmentgetParentGroupAssignment()
    
public  intgetPosition()
    
public  long[]getScriptMapping(FxScriptEvent event)
    
public synchronized  StringgetXPath()
    
public  booleanhasOption(String key)
    
public  booleanhasParentGroupAssignment()
    
public  booleanhasScriptMapping(FxScriptEvent event)
    
public  booleanhasScriptMappings()
    
public  inthashCode()
    
public  booleanisDerivedAssignment()
     Returns true if the assignment is derived from a supertype.
public  booleanisEnabled()
    
public  booleanisSystemInternal()
    
public  booleanisValid(Object value)
     Validate the given value for this assignment.
public  voidresolveParentDependencies(List<FxAssignment> assignments)
    
public  voidresolvePreloadDependencies(List<FxAssignment> assignments)
    
public  voidresolveReferences(FxEnvironment environment)
    
public static  List<FxAssignment>sort(List<FxAssignment> assignments)
    
public  StringtoString()
    

Field Detail
NO_PARENT
final public static long NO_PARENT(Code)
parent id value if an assignment has no parent



ROOT_BASE
final public static long ROOT_BASE(Code)
base id value if an assignment belongs to the virtual root type



TYPE_GROUP
final public static int TYPE_GROUP(Code)
Constant to determine type of the assignment in database; group



TYPE_PROPERTY
final public static int TYPE_PROPERTY(Code)
Constant to determine type of the assignment in database; property



XPath
protected String XPath(Code)
Absolute XPath without indices from the base FxType



alias
protected String alias(Code)
(optional) alias, if not defined the name of the assigned element



defaultMultiplicity
protected int defaultMultiplicity(Code)
Default multiplicity, will be auto adjusted if < min or > max



enabled
protected boolean enabled(Code)
Is this assignment enabled at all? Disabled assignments will only show up in the admin area for structure and will be hidden from all other areas



hint
protected FxString hint(Code)
(optional) hint



label
protected FxString label(Code)
(optional) description



multiplicity
protected FxMultiplicity multiplicity(Code)
Multiplicity of this assignment



options
List<FxStructureOption> options(Code)



parentGroupAssignment
protected FxGroupAssignment parentGroupAssignment(Code)
(optional) parent group



position
protected int position(Code)
Position of this assignment within the same XPath hierarchy



scriptMapping
protected Map<FxScriptEvent, long[]> scriptMapping(Code)
Script mapping, is resolved while loading the environment




Constructor Detail
FxAssignment
protected FxAssignment(long assignmentId, boolean enabled, FxType assignedType, String alias, String xpath, int position, FxMultiplicity multiplicity, int defaultMultiplicity, FxGroupAssignment parentGroupAssignment, long baseAssignment, FxString label, FxString hint, List<FxStructureOption> options)(Code)
Constructor
Parameters:
  assignmentId - internal id of this assignment
Parameters:
  enabled - is this assignment enabled?
Parameters:
  assignedType - the FxType this assignment belongs to
Parameters:
  alias - an optional alias, if null the original name will be used
Parameters:
  xpath - absolute XPath without indices from the base FxType
Parameters:
  position - position within the same XPath hierarchy
Parameters:
  multiplicity - multiplicity
Parameters:
  defaultMultiplicity - default multiplicity
Parameters:
  parentGroupAssignment - (optional) parent FxGroupAssignment this assignment belongs to
Parameters:
  baseAssignment - base assignment (if derived the parent, if not the root assignment, if its a root assignment FxAssignment.ROOT_BASE)
Parameters:
  label - (optional) label
Parameters:
  hint - (optional) hint
Parameters:
  options - options




Method Detail
_setSystemInternal
public FxAssignment _setSystemInternal()(Code)
Mark this assignment as system internal - this is a one-way INTERNAL function!!! this



compareTo
public int compareTo(FxAssignment o)(Code)
Compare function
Parameters:
  o - other assignment to compare to compare result



createEmptyData
abstract public FxData createEmptyData(FxGroupData parent, int index) throws FxCreateException(Code)
Create an empty FxData entry for this assignment
Parameters:
  parent - the parent group
Parameters:
  index - the index of the new entry FxData
throws:
  FxCreateException - on errors



createRandomData
abstract public FxData createRandomData(Random rnd, FxEnvironment env, FxGroupData parent, int index, int maxMultiplicity) throws FxCreateException(Code)
Create a random FxData entry for this assignment
Parameters:
  rnd - the Random to use
Parameters:
  env - environment
Parameters:
  parent - the parent group
Parameters:
  index - the index of the new entry
Parameters:
  maxMultiplicity - the maximum multiplicity FxData
throws:
  FxCreateException - on errors



equals
public boolean equals(Object obj)(Code)



getAlias
public String getAlias()(Code)
Get the alias of this assignment. Groups and properties may define an alias to allow multiple use of the same group or property but using a different name. An alias is always defined, if not explicitly it is the properties/groups name. alias of this assignment



getAssignedType
public FxType getAssignedType()(Code)
The FxType this assignment is associated with FxType this assignment is associated with



getBaseAssignmentId
public long getBaseAssignmentId()(Code)
base assignment (if derived the parent, if not the root assignment, if its a root assignment FxAssignment.ROOT_BASE) base assignment
See Also:   FxAssignment.ROOT_BASE



getDefaultMultiplicity
public int getDefaultMultiplicity()(Code)
Get the default multiplicity (used i.e. in user interfaces editors and determines the amount of values that will be initialized when creating an empty element).

If the set value is < min or > max multiplicity of this assignment it will be auto adjusted to the next valid value without throwing an exception default multiplicity




getDisplayLabel
public FxString getDisplayLabel()(Code)
Return a human-readable string to present this assignment to the user. the assignment's name as it should be displayed to the user



getDisplayName
public String getDisplayName()(Code)
Return a human-readable string to present this assignment to the user. the assignment's name as it should be displayed to the user



getHint
public FxString getHint()(Code)
Get the optional hint hint



getId
public long getId()(Code)
The internal id of this assignment as stored in the database internal id of this assignment



getLabel
public FxString getLabel()(Code)
Get the assignment label the localized label of this assignment



getMultiplicity
abstract public FxMultiplicity getMultiplicity()(Code)
Get the multiplicity of this assignment. Depending on if the assigned element allows overriding of its base multiplicity the base elements multiplicity is returned or the multiplicity of the assignment multiplicity of this assignment



getOption
public FxStructureOption getOption(String key)(Code)
Get an option entry for the given key, if the key is invalid or not found a FxStructureOption object will be returned with set set to false, overrideable set to false and value set to an empty String.
Parameters:
  key - option key the found option or an object that indicates that the option is not set



getParentGroupAssignment
public FxGroupAssignment getParentGroupAssignment()(Code)
If this assignment is assigned to a group, the assignment of the parent group (in the context of the current type) parent group assignment of this assignment



getPosition
public int getPosition()(Code)
Get the position within the current XPath hierarchy position within the current XPath hierarchy



getScriptMapping
public long[] getScriptMapping(FxScriptEvent event)(Code)
Get the mapped script ids for the requested script type
Parameters:
  event - requested script event mapped script ids or null if mappings do not exist for this assignment



getXPath
public synchronized String getXPath()(Code)
Get the XPath of this assignment without indices XPath of this assignment without indices



hasOption
public boolean hasOption(String key)(Code)
Check if an option is set for the requested key
Parameters:
  key - option key if an option is set for the requested key



hasParentGroupAssignment
public boolean hasParentGroupAssignment()(Code)
Returns if this assignment is the child of another assignment or if it is directly attached to a FxType parent assignment



hasScriptMapping
public boolean hasScriptMapping(FxScriptEvent event)(Code)
Does this assignment have mappings for the requested script event?
Parameters:
  event - requested script event if mappings exist



hasScriptMappings
public boolean hasScriptMappings()(Code)
Does this assignment have mappings for any script type? if mappings exist



hashCode
public int hashCode()(Code)



isDerivedAssignment
public boolean isDerivedAssignment()(Code)
Returns true if the assignment is derived from a supertype. true if the assignment is derived from a supertype.



isEnabled
public boolean isEnabled()(Code)
Is this assignment enabled? enabled



isSystemInternal
public boolean isSystemInternal()(Code)
Is this a system internal assignment? system internal



isValid
public boolean isValid(Object value)(Code)
Validate the given value for this assignment.
Parameters:
  value - the value to be checked true if it is valid for this assignment, false otherwise



resolveParentDependencies
public void resolveParentDependencies(List<FxAssignment> assignments)(Code)
Resolve parent dependecies after initial loading
Parameters:
  assignments - all known assignments



resolvePreloadDependencies
public void resolvePreloadDependencies(List<FxAssignment> assignments)(Code)
Resolve preload dependecies after initial loading
Parameters:
  assignments - all known assignment



resolveReferences
public void resolveReferences(FxEnvironment environment) throws FxNotFoundException(Code)
Resolve references after initial loading
Parameters:
  environment - environment for references
throws:
  FxNotFoundException - on errors



sort
public static List<FxAssignment> sort(List<FxAssignment> assignments)(Code)
Sort FxAssignments by their position
Parameters:
  assignments - FxAssignments to sort sorted List with the assignments



toString
public String toString()(Code)



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.