/** * Creates a new XML content definition.<p> * * @param outerName the outer element name to use for the content definition * @param innerName the inner element name to use for the content definition * @param schemaLocation the location from which the XML schema was read (system id) */ public CmsXmlContentDefinition(String outerName, String innerName, String schemaLocation) { // TODO: this constructor can be removed or made 'protected', schemas should be only created from files m_outerName = outerName; m_innerName = innerName; setInnerName(innerName); m_typeSequence = new ArrayList<I_CmsXmlSchemaType>(); m_types = new HashMap<String, I_CmsXmlSchemaType>(); m_includes = new HashSet<CmsXmlContentDefinition>(); m_schemaLocation = schemaLocation; m_contentHandler = new CmsDefaultXmlContentHandler(); }
/** * Creates a new XML content definition.<p> * * @param outerName the outer element name to use for the content definition * @param innerName the inner element name to use for the content definition * @param schemaLocation the location from which the XML schema was read (system id) */ public CmsXmlContentDefinition(String outerName, String innerName, String schemaLocation) { m_outerName = outerName; m_innerName = innerName; setInnerName(innerName); m_typeSequence = new ArrayList<I_CmsXmlSchemaType>(); m_types = new HashMap<String, I_CmsXmlSchemaType>(); m_includes = new HashSet<CmsXmlContentDefinition>(); m_schemaLocation = schemaLocation; m_contentHandler = new CmsDefaultXmlContentHandler(); m_sequenceType = SequenceType.SEQUENCE; m_elementTypes = new ConcurrentHashMap<String, I_CmsXmlSchemaType>(); }