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


java.lang.Object
   com.flexive.shared.content.FxData
      com.flexive.shared.content.FxGroupData

FxGroupData
public class FxGroupData extends FxData implements Cloneable(Code)
FxData extension for groups
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)



Constructor Summary
public  FxGroupData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, List<FxData> data, boolean systemInternal)
    

Method Summary
public synchronized  FxDataaddChild(FxData child)
    
public  FxDataaddEmptyChild(String xPath, int pos)
     Add an and FxData entry with the given XPath to this group (must be a direct child of this group, no nesting allowed!).
public  voidaddGroup(String xPath, FxGroupAssignment fxGroupAssignment, int pos)
     Add a group entry at the given XPath.
public  voidaddProperty(String xPath, FxPropertyAssignment assignment, FxValue value, int pos)
     Add a property at the given XPath location, removing eventually existing properties.
protected  voidapplyIndices()
    
public  voidcompactPositions(boolean includeSubGroups)
    
public  FxDatacontainsChild(XPathElement check)
     Check if a child with the same alias and multiplicity that is not empty exists.
protected  FxGroupDatacopy(FxGroupData parent)
    
public static  FxGroupDatacreateVirtualRootGroup(String xpPrefix)
    
public  voidexplode(boolean explodeChildGroups)
    
public  voidfixChildIndices()
    
public  List<FxData>getChildren()
    
public  List<String>getCreateableChildren(boolean includeExisting)
     Get a list of child FxData instances (as XPath with full indices) that can be created as children for this group.
public  FxGroupDatagetGroup(String xPath)
    
public  List<FxPropertyData>getPropertyData(long propertyId, boolean includeEmpty)
    
protected  List<FxReference>getReferences(boolean includeSubGroups)
    
public  booleanisEmpty()
    
public  booleanisGroup()
    
public  booleanisProperty()
    
public  booleanisRootGroup()
    
public  voidmoveChild(XPathElement xp, int delta)
     Move a child element identified by its alias and multiplicity by delta positions within this group If delta is Integer.MAX_VALUE the data will always be placed at the bottom, Integer.MIN_VALUE will always place it at the top.
public  voidremoveChild(FxData data)
    
public  voidremoveEmptyEntries()
    
public  voidremoveEmptyEntries(boolean includeRequired)
    
public  voidreplaceChild(XPathElement xpath, FxData data)
    


Constructor Detail
FxGroupData
public FxGroupData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, List<FxData> data, boolean systemInternal) throws FxInvalidParameterException(Code)




Method Detail
addChild
public synchronized FxData addChild(FxData child)(Code)
Add a child FxData at the correct position
Parameters:
  child - FxData to add the child



addEmptyChild
public FxData addEmptyChild(String xPath, int pos) throws FxInvalidParameterException, FxNoAccessException, FxNotFoundException, FxCreateException(Code)
Add an and FxData entry with the given XPath to this group (must be a direct child of this group, no nesting allowed!). Empty groups consist of empty but preinitialized elements!
Parameters:
  xPath - XPath to add to this group (must be a direct child of this group, no nesting allowed!)
Parameters:
  pos - position in same hierarchy level the added data element
throws:
  FxInvalidParameterException - on errors
throws:
  FxNoAccessException - on errors
throws:
  FxNotFoundException - on errors
throws:
  FxCreateException - on errors



addGroup
public void addGroup(String xPath, FxGroupAssignment fxGroupAssignment, int pos) throws FxInvalidParameterException, FxNotFoundException, FxCreateException(Code)
Add a group entry at the given XPath. Existing entries will stay untouched but position adjusted. If parent groups of this group do not exist, they will be created as well.
Parameters:
  xPath - requested XPath
Parameters:
  fxGroupAssignment - the assignment of the group
Parameters:
  pos - position
throws:
  FxInvalidParameterException - on errors
throws:
  FxNotFoundException - on errors
throws:
  FxCreateException - on errors



addProperty
public void addProperty(String xPath, FxPropertyAssignment assignment, FxValue value, int pos) throws FxInvalidParameterException, FxNotFoundException(Code)
Add a property at the given XPath location, removing eventually existing properties. The group for this property has to exist already!
Parameters:
  xPath - requested XPath
Parameters:
  assignment - assignment of the property
Parameters:
  value - value
Parameters:
  pos - position
throws:
  FxInvalidParameterException - if the XPath is invalid
throws:
  FxNotFoundException - if the parent group does not exist



applyIndices
protected void applyIndices()(Code)
Apply the multiplicity to XPath and children if its a group



compactPositions
public void compactPositions(boolean includeSubGroups)(Code)
Synchronize positions closing gaps optionally including sub groups
Parameters:
  includeSubGroups - close gaps for subgroups as well?



containsChild
public FxData containsChild(XPathElement check)(Code)
Check if a child with the same alias and multiplicity that is not empty exists. No elements of subgroups are checked, just direct childs!
Parameters:
  check - XPathElement to check FxData or null



copy
protected FxGroupData copy(FxGroupData parent)(Code)



createVirtualRootGroup
public static FxGroupData createVirtualRootGroup(String xpPrefix) throws FxInvalidParameterException(Code)
Helper to create a virtual root group
Parameters:
  xpPrefix - XPath prefix like "FxType name[@pk=..]" virtual root group
throws:
  FxInvalidParameterException - on errors



explode
public void explode(boolean explodeChildGroups)(Code)
"Explode" this group by adding all createable assignments at the bottom
Parameters:
  explodeChildGroups - recursively explode all existing child groups?



fixChildIndices
public void fixChildIndices()(Code)
'Fix' the indices of children after they have been added to reflect the parent groups index in their XPath



getChildren
public List<FxData> getChildren()(Code)
Get all child entries for this group child entries



getCreateableChildren
public List<String> getCreateableChildren(boolean includeExisting)(Code)
Get a list of child FxData instances (as XPath with full indices) that can be created as children for this group. Readonly or no access properties or groups will not be returned!
Parameters:
  includeExisting - include entries for children that already exist but with a new (higher) multiplicity? List of XPaths



getGroup
public FxGroupData getGroup(String xPath) throws FxNotFoundException, FxInvalidParameterException(Code)
Get the group denoted by the given XPath
Parameters:
  xPath - requested XPath for the group FxGroupData
throws:
  FxNotFoundException - if no group with this XPath is found
throws:
  FxInvalidParameterException - if the XPath is invalid



getPropertyData
public List<FxPropertyData> getPropertyData(long propertyId, boolean includeEmpty)(Code)
Get a list of all FxPropertyData entries that are assigned to propertyId
Parameters:
  propertyId - the property id requested
Parameters:
  includeEmpty - include empty data instances? list of all FxPropertyData entries that are assigned to propertyId



getReferences
protected List<FxReference> getReferences(boolean includeSubGroups)(Code)
Get a list of all FxReference values in this group and optionally all sub groups
Parameters:
  includeSubGroups - collect FxReferences from sub groups as well? list of all FxReference values in this group and optionally all sub groups



isEmpty
public boolean isEmpty()(Code)



isGroup
public boolean isGroup()(Code)



isProperty
public boolean isProperty()(Code)



isRootGroup
public boolean isRootGroup()(Code)
Is this group the root group? if this group is the root group



moveChild
public void moveChild(XPathElement xp, int delta)(Code)
Move a child element identified by its alias and multiplicity by delta positions within this group If delta is Integer.MAX_VALUE the data will always be placed at the bottom, Integer.MIN_VALUE will always place it at the top.
Parameters:
  xp - element to move
Parameters:
  delta - delta positions to move



removeChild
public void removeChild(FxData data) throws FxInvalidParameterException, FxNoAccessException(Code)
Remove the requested child data and compact indices and positions
Parameters:
  data - FxData to remove
throws:
  FxInvalidParameterException - on errors
throws:
  FxNoAccessException - on errors



removeEmptyEntries
public void removeEmptyEntries()(Code)
Remove all empty entries of this group that are not required
See Also:   FxGroupData.removeEmptyEntries(boolean)



removeEmptyEntries
public void removeEmptyEntries(boolean includeRequired)(Code)
Remove all empty entries of this group
Parameters:
  includeRequired - include entries that are required?



replaceChild
public void replaceChild(XPathElement xpath, FxData data)(Code)



Fields inherited from com.flexive.shared.content.FxData
final public static int POSITION_BOTTOM(Code)(Java Doc)
final public static int POSITION_TOP(Code)(Java Doc)
protected String XPathFull(Code)(Java Doc)
protected int[] indices(Code)(Java Doc)
protected XPathElement xp(Code)(Java Doc)
protected String xpPrefix(Code)(Java Doc)

Methods inherited from com.flexive.shared.content.FxData
abstract protected void applyIndices()(Code)(Java Doc)
public void compact()(Code)(Java Doc)
abstract FxData copy(FxGroupData parent)(Code)(Java Doc)
public synchronized FxData createNew(int insertPosition) throws FxNotFoundException, FxInvalidParameterException, FxCreateException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public String getAlias()(Code)(Java Doc)
public FxAssignment getAssignment()(Code)(Java Doc)
public long getAssignmentId()(Code)(Java Doc)
public FxMultiplicity getAssignmentMultiplicity()(Code)(Java Doc)
public int getCreateableElements()(Code)(Java Doc)
public List<FxData> getElements()(Code)(Java Doc)
public int getIndex()(Code)(Java Doc)
public int[] getIndices()(Code)(Java Doc)
public int getOccurances()(Code)(Java Doc)
public FxGroupData getParent()(Code)(Java Doc)
public int getPos()(Code)(Java Doc)
public int getRemoveableElements()(Code)(Java Doc)
public String getXPath()(Code)(Java Doc)
public XPathElement getXPathElement()(Code)(Java Doc)
public String getXPathFull()(Code)(Java Doc)
public String getXPathPrefix()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
abstract public boolean isGroup()(Code)(Java Doc)
abstract public boolean isProperty()(Code)(Java Doc)
public boolean isRemoveable()(Code)(Java Doc)
public boolean isSystemInternal()(Code)(Java Doc)
public boolean mayCreateMore()(Code)(Java Doc)
public FxData setPos(int pos)(Code)(Java Doc)
public String toString()(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)

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