public boolean validateNodeType ( ) { boolean hasValidated = false ; if ( primaryItemName != null ) { if ( primaryItemName . length ( ) <= 0 ) { primaryItemName = null ; hasValidated = true ; } } if ( declaredSupertypeNames == null ) { declaredSupertypeNames = new ArrayList < String > ( ) ; hasValidated = true ; } else { int prevSize = declaredSupertypeNames . size ( ) ; fixStringsList ( declaredSupertypeNames ) ; hasValidated = prevSize != declaredSupertypeNames . size ( ) ; } if ( declaredPropertyDefinitionValues == null ) { declaredPropertyDefinitionValues = new ArrayList < PropertyDefinitionValue > ( ) ; hasValidated = true ; } else { int prevSize = declaredPropertyDefinitionValues . size ( ) ; fixPropertyDefinitionValuesList ( declaredPropertyDefinitionValues ) ; hasValidated = prevSize != declaredPropertyDefinitionValues . size ( ) ; } if ( declaredChildNodeDefinitionValues == null ) { declaredChildNodeDefinitionValues = new ArrayList < NodeDefinitionValue > ( ) ; hasValidated = true ; } else { int prevSize = declaredChildNodeDefinitionValues . size ( ) ; fixNodeDefinitionValuesList ( declaredChildNodeDefinitionValues ) ; hasValidated = prevSize != declaredChildNodeDefinitionValues . size ( ) ; } return hasValidated ; }
validateNodeType method checks the value bean for each valid filed