[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-cvs
Subject: [Jibx-cvs] core/build/src/org/jibx/schema SchemaUtils.java, 1.8, 1.9
From: Dennis Sosnoski <dsosnoski () users ! sourceforge ! net>
Date: 2008-02-18 3:55:06
Message-ID: E1JQx5v-0005OF-QX () mail ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/jibx/core/build/src/org/jibx/schema
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv3979/src/org/jibx/schema
Modified Files:
SchemaUtils.java
Log Message:
More enhancements to code generation from schema.
Index: SchemaUtils.java
===================================================================
RCS file: /cvsroot/jibx/core/build/src/org/jibx/schema/SchemaUtils.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** SchemaUtils.java 22 Nov 2007 20:38:01 -0000 1.8
--- SchemaUtils.java 18 Feb 2008 03:55:04 -0000 1.9
***************
*** 1,4 ****
/*
! * Copyright (c) 2007, Dennis M. Sosnoski All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the
--- 1,4 ----
/*
! * Copyright (c) 2007-2008, Dennis M. Sosnoski All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, \
are permitted provided that the
***************
*** 134,137 ****
--- 134,151 ----
}
+ /**
+ * Check if a definition component has a name.
+ *
+ * @param comp
+ * @return <code>true</code> if named, <code>false</code> if not
+ */
+ public static boolean isNamed(OpenAttrBase comp) {
+ if (comp instanceof INamed) {
+ return ((INamed)comp).getName() != null;
+ } else {
+ return false;
+ }
+ }
+
//
// Logging support
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jibx-cvs mailing list
Jibx-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic