File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed 
modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2424import  java .util .List ;
2525
2626import  org .codehaus .modello .ModelloRuntimeException ;
27+ import  org .codehaus .modello .model .Model ;
2728import  org .codehaus .modello .model .ModelAssociation ;
2829import  org .codehaus .modello .model .ModelClass ;
2930import  org .codehaus .modello .model .ModelField ;
3233import  org .codehaus .modello .plugins .xml .metadata .XmlAssociationMetadata ;
3334import  org .codehaus .modello .plugins .xml .metadata .XmlClassMetadata ;
3435import  org .codehaus .modello .plugins .xml .metadata .XmlFieldMetadata ;
36+ import  org .codehaus .modello .plugins .xml .metadata .XmlModelMetadata ;
3537import  org .codehaus .plexus .util .StringUtils ;
3638
3739/** 
@@ -86,6 +88,13 @@ public List<ModelClass> ancestors(ModelClass clazz) {
8688        return  ancestors ;
8789    }
8890
91+     /** 
92+      * Returns the {@code XmlClassMetadata} for the given {@code ModelClass}. 
93+      */ 
94+     public  XmlModelMetadata  xmlModelMetadata (Model  model ) {
95+         return  (XmlModelMetadata ) model .getMetadata (XmlModelMetadata .ID );
96+     }
97+ 
8998    /** 
9099     * Returns the {@code XmlClassMetadata} for the given {@code ModelClass}. 
91100     */ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments