Package org.fao.geonet.kernel.schema

Examples of org.fao.geonet.kernel.schema.MetadataAttribute


       
        //-----------------------------------------------------------------------
        //--- handle attributes if mandatory or suggested
        //
        for(int i=0; i<type.getAttributeCount(); i++) {
            MetadataAttribute attr = type.getAttributeAt(i);
           
            if(Log.isDebugEnabled(Geonet.EDITORFILLELEMENT)) {
                Log.debug(Geonet.EDITORFILLELEMENT,"####   - " + i + " attribute = " + attr.name);
                Log.debug(Geonet.EDITORFILLELEMENT,"####     - required = " + attr.required);
                Log.debug(Geonet.EDITORFILLELEMENT,"####     - suggested = "+sugg.isSuggested(elemName, attr.name));
View Full Code Here


     * @param md
     * @param schema
     */
  private void addAttribs(MetadataType type, Element md, MetadataSchema schema) {
    for(int i=0; i<type.getAttributeCount(); i++) {
      MetadataAttribute attr = type.getAttributeAt(i);

      Element attribute = new Element(Edit.RootChild.ATTRIBUTE, Edit.NAMESPACE);

      attribute.setAttribute(new Attribute(Edit.Attribute.Attr.NAME, attr.name));
      //--- add default value (if any)
View Full Code Here

TOP

Related Classes of org.fao.geonet.kernel.schema.MetadataAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.