public Schema profile(Set<Name> profile) { return new ProfileImpl(this, profile); } }
public boolean containsValue(Object value) { return values().contains(value); }
public Collection<AttributeType> values() { return contents().values(); }
ProfileImpl profile = (ProfileImpl) p.next(); for (Iterator i = profile.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); AttributeType type = (AttributeType) entry.getValue();
/** * Profile of GMLSchema capturing a unique mapping of Java classes. * * <p>This profile mostly matches to JTS Geometry classes. * * @return Subset of GMLSchema capturing a unique mapping of Java classes */ public ProfileImpl profile() { Set<Name> profile = new LinkedHashSet<Name>(); profile.add(new NameImpl(GML.PointPropertyType)); profile.add(new NameImpl(GML.MultiPointPropertyType)); profile.add(new NameImpl(GML.LineStringPropertyType)); profile.add(new NameImpl(GML.MultiLineStringPropertyType)); profile.add(new NameImpl(GML.PolygonPropertyType)); profile.add(new NameImpl(GML.MultiPolygonPropertyType)); profile.add(new NameImpl(GML.GeometryPropertyType)); return new ProfileImpl(this, profile); } }
public boolean containsValue(Object value) { return values().contains( value ); }
public Set<Entry<Name, AttributeType>> entrySet() { return contents().entrySet(); }
/** * Profile of GMLSchema capturing a unique mapping of Java classes. * * <p>This profile mostly matches to JTS Geometry classes. * * @return Subset of GMLSchema capturing a unique mapping of Java classes */ public ProfileImpl profile() { Set<Name> profile = new LinkedHashSet<Name>(); profile.add(new NameImpl(GML.MeasureType)); profile.add(new NameImpl(GML.PointPropertyType)); profile.add(new NameImpl(GML.MultiPointPropertyType)); profile.add(new NameImpl(GML.LineStringPropertyType)); profile.add(new NameImpl(GML.MultiLineStringPropertyType)); profile.add(new NameImpl(GML.CurvePropertyType)); profile.add(new NameImpl(GML.MultiCurvePropertyType)); profile.add(new NameImpl(GML.SurfacePropertyType)); profile.add(new NameImpl(GML.MultiSurfacePropertyType)); profile.add(new NameImpl(GML.PolygonPropertyType)); profile.add(new NameImpl(GML.MultiPolygonPropertyType)); profile.add(new NameImpl(GML.GeometryPropertyType)); profile.add(new NameImpl(GML.MultiGeometryPropertyType)); return new ProfileImpl(this, profile); } }
public boolean containsValue(Object value) { return values().contains( value ); }
public Set<Entry<Name, AttributeType>> entrySet() { return contents().entrySet(); }
profile.add(new NameImpl(XS.DECIMAL)); // BigDecimal.class profile.add(new NameImpl(XS.ANYURI)); // URI.class return new ProfileImpl(this, profile);
ProfileImpl profile = (ProfileImpl) p.next(); for (Iterator i = profile.values().iterator(); i.hasNext(); ) { AttributeType type = (AttributeType) i.next();
public Set entrySet() { return contents().entrySet(); } private synchronized Map contents(){
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to start Profile myProfile = new ProfileImpl(); // create the main container myContainer = myRuntime.createMainContainer(myProfile);
public Collection<AttributeType> values() { return contents().values(); }
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to connect to Profile myProfile = new ProfileImpl(); myProfile.setParameter(Profile.MAIN_HOST, "myhost"); myProfile.setParameter(Profile.MAIN_PORT, "1099"); // create the agent container myContainer = myRuntime.createAgentContainer(myProfile);
public Collection values() { return contents().values(); }
public Schema profile(Set<Name> profile) { return new ProfileImpl(this, profile); } }
import jade.core.Runtime; import jade.core.Profile; import jade.core.ProfileImpl; ... Runtime myRuntime = Runtime.instance(); // prepare the settings for the platform that we're going to connect to Profile myProfile = new ProfileImpl(); myProfile.setParameter(Profile.MAIN_HOST, "myhost"); myProfile.setParameter(Profile.MAIN_PORT, "1099"); // create the agent container ContainerController myContainer = myRuntime.createAgentContainer(myProfile);
public Schema profile(Namespace profile) { return new ProfileImpl(this, profile); } }