
org.structr.web.entity.html.A Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structr-ui Show documentation
Show all versions of structr-ui Show documentation
Structr is an open source framework based on the popular Neo4j graph database.
The newest version!
/**
* Copyright (C) 2010-2016 Structr GmbH
*
* This file is part of Structr .
*
* Structr is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Structr is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Structr. If not, see .
*/
package org.structr.web.entity.html;
import org.apache.commons.lang3.ArrayUtils;
import org.structr.core.property.Property;
import org.structr.common.PropertyView;
import org.structr.common.View;
import org.structr.web.common.HtmlProperty;
import org.structr.web.entity.LinkSource;
//~--- classes ----------------------------------------------------------------
/**
*
*/
public class A extends LinkSource {
public static final Property _href = new HtmlProperty("href");
public static final Property _target = new HtmlProperty("target");
public static final Property _ping = new HtmlProperty("ping");
public static final Property _rel = new HtmlProperty("rel");
public static final Property _media = new HtmlProperty("media");
public static final Property _hreflang = new HtmlProperty("hreflang");
public static final Property _type = new HtmlProperty("type");
// public static final Property> contents = new EndNodes<>("contents", Content.class, RelType.CONTAINS, false);
// public static final Property> spans = new EndNodes<>("spans", Span.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> imgs = new EndNodes<>("imgs", Img.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> div = new EndNodes<>("div", Div.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> sections = new EndNodes<>("sections", Section.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property > ps = new EndNodes<>("ps", P.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h1s = new EndNodes<>("h1s", H1.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h2s = new EndNodes<>("h2s", H2.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h3s = new EndNodes<>("h3s", H3.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h4s = new EndNodes<>("h4s", H4.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h5s = new EndNodes<>("h5s", H5.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> h6s = new EndNodes<>("h6s", H6.class, RelType.CONTAINS, Direction.OUTGOING, false);
// public static final Property> lis = new EndNodes<>("lis", Li.class, RelType.CONTAINS, Direction.INCOMING, false);
//
// public static final EndNodes divParents = new EndNodes("divParents", Div.class, RelType.CONTAINS, Direction.INCOMING, false);
// public static final EndNodes pParents = new EndNodes
("pParents", P.class, RelType.CONTAINS, Direction.INCOMING, false);
//
public static final View uiView = new View(A.class, PropertyView.Ui,
linkableId, linkable
);
public static final View htmlView = new View(A.class, PropertyView.Html,
_href, _target, _ping, _rel, _media, _hreflang, _type
);
//~--- methods --------------------------------------------------------
@Override
public boolean avoidWhitespace() {
return true;
}
@Override
public Property[] getHtmlAttributes() {
return (Property[]) ArrayUtils.addAll(super.getHtmlAttributes(), htmlView.properties());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy